-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
41 lines (41 loc) · 1.32 KB
/
.eslintrc.js
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
41
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:prettier/recommended' // Displays prettier errors as ESLint errors. This has to be the last in this array (not yet sure why).
],
plugins: ['react-hooks'],
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
// rules options: 0 = off, 1 = warn, 2 = error
rules: {
'no-console': [1, { allow: ['error', 'info', 'warn'] }],
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/interface-name-prefix': 0,
'@typescript-eslint/prefer-interface': 0,
'@typescript-eslint/explicit-function-return-type': 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/no-unused-vars': ['warn', { args: 'after-used' }],
'react/display-name': 0,
'react/prop-types': 0,
'react/no-unescaped-entities': 0,
'react-hooks/rules-of-hooks': 2,
'prettier/prettier': 0,
"no-unused-vars": "off",
'no-unneeded-ternary': 'error',
'eqeqeq': 'error'
},
settings: {
react: {
version: 'detect' // Makes eslint-plugin-react to detect the React version
}
}
};