-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
30 lines (30 loc) · 934 Bytes
/
.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
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'react-app', 'prettier'],
plugins: ['@typescript-eslint', 'simple-import-sort'],
rules: {
'no-shadow': 'error',
'react/self-closing-comp': ['error', { component: true, html: true }],
'react/jsx-boolean-value': 'error',
'@typescript-eslint/explicit-member-accessibility': 'error',
'simple-import-sort/imports': 'error',
'import/first': 'warn',
'import/newline-after-import': 'warn',
'import/no-duplicates': 'warn',
'import/no-webpack-loader-syntax': 'warn',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
},
overrides: [
{
files: ['*.{jsx,tsx}'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
},
},
],
settings: {
react: {
version: '999.999.999',
},
},
}