forked from yarivluts/firebase-orm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
40 lines (39 loc) · 1.49 KB
/
eslint.config.js
File metadata and controls
40 lines (39 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const tseslint = require('typescript-eslint');
module.exports = tseslint.config(
{
ignores: ['dist/**', 'node_modules/**', '*.js']
},
{
files: ['**/*.ts', '**/*.tsx'],
extends: [
...tseslint.configs.recommended
],
languageOptions: {
parser: tseslint.parser,
parserOptions: {
project: './tsconfig.eslint.json',
ecmaVersion: 2020,
sourceType: 'module'
}
},
rules: {
'no-console': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'quotes': 'off', // Too many changes needed
'max-len': 'off', // Too many changes needed
'no-var': 'off', // Legacy code, too many changes
'prefer-const': 'off', // Legacy code
'@typescript-eslint/ban-ts-comment': 'off', // Legacy code
'@typescript-eslint/no-this-alias': 'off', // Legacy code
'@typescript-eslint/no-unused-vars': 'off', // Too many test-related false positives
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-wrapper-object-types': 'off', // Legacy code using Object/Number types
'@typescript-eslint/no-array-constructor': 'off', // Legacy code
'@typescript-eslint/no-empty-object-type': 'off', // Legacy interfaces
'@typescript-eslint/no-require-imports': 'off' // Test files may use require
}
}
);