-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.cjs
40 lines (40 loc) · 1.23 KB
/
.eslintrc.cjs
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
module.exports = {
extends: [
'erb',
'plugin:@typescript-eslint/recommended',
],
rules: {
// A temporary hack related to IDE not resolving correct package.json
'import/no-extraneous-dependencies': 'off',
// console output is fine for a Node.js application
'no-console': 'off',
// cause sometimes concat is more readable
'prefer-template': 'off',
'react-hooks/exhaustive-deps': 'off',
'no-explicit-any': 'off',
'import/no-unresolved': 'off',
'import/extensions': 'off',
'react/function-component-definition': 'off',
'react/jsx-filename-extension': 'off',
'react/no-unstable-nested-components': 'off',
'class-methods-use-this': 'off',
'react/jsx-no-useless-fragment': 'off',
'no-unsafe-optional-chaining': 'off',
'no-promise-executor-return': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-var-requires': 'off',
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.json',
tsconfigRootDir: __dirname,
createDefaultProgram: true,
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
},
};