-
Notifications
You must be signed in to change notification settings - Fork 58
/
.eslintrc.js
52 lines (52 loc) · 1.44 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
42
43
44
45
46
47
48
49
50
51
52
export default {
env: {
browser: true,
es2021: true,
},
extends: [
'plugin:react/recommended',
'airbnb-typescript',
'plugin:prettier/recommended',
'plugin:storybook/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
project: 'tsconfig.eslint.json',
},
plugins: ['react', '@typescript-eslint', 'import'],
settings: {
react: {
version: 'detect',
},
},
rules: {
'import/no-extraneous-dependencies': 'off',
'import/no-anonymous-default-export': 'off',
'prettier/prettier': 'warn',
'import/order': ['warn', { 'newlines-between': 'always' }],
'@typescript-eslint/no-use-before-define': 'off',
'react/jsx-uses-react': 'off',
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'import/prefer-default-export': 'off',
'import/extensions': 'off',
'react/require-default-props': 'off',
'react/jsx-props-no-spreading': 'off',
'no-nested-ternary': 'off',
'no-console': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'react/no-unused-prop-types': 'off',
'no-param-reassign': 'off',
'class-methods-use-this': 'off',
'prefer-promise-reject-errors': 'off',
'react/prefer-stateless-function': 'off',
'@typescript-eslint/no-implied-eval': 'off',
'import/no-cycle': 'off',
'react/no-array-index-key': 'off',
},
}