CoolFace
Apppublic

opusdev/vector-similarity-api

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes
eslint.config.mjs57 linesDownload Raw Back to qs
1import ljharbConfig from '@ljharb/eslint-config/flat';2 3export default [4    {5        ignores: ['dist/'],6    },7 8    ...ljharbConfig,9 10    {11        rules: {12            complexity: 'off',13            'consistent-return': 'warn',14            'func-name-matching': 'off',15            'id-length': [16                'error',17                {18                    max: 25,19                    min: 1,20                    properties: 'never',21                },22            ],23            indent: ['error', 4],24            'max-lines': 'off',25            'max-lines-per-function': [26                'error',27                { max: 150 },28            ],29            'max-params': ['error', 18],30            'max-statements': ['error', 100],31            'multiline-comment-style': 'off',32            'no-continue': 'warn',33            'no-magic-numbers': 'off',34            'no-restricted-syntax': [35                'error',36                'BreakStatement',37                'DebuggerStatement',38                'ForInStatement',39                'LabeledStatement',40                'WithStatement',41            ],42        },43    },44 45    {46        files: ['test/**'],47        rules: {48            'function-paren-newline': 'off',49            'max-lines-per-function': 'off',50            'max-statements': 'off',51            'no-buffer-constructor': 'off',52            'no-extend-native': 'off',53            'no-throw-literal': 'off',54        },55    },56];57