-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
56 lines (55 loc) · 1.42 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
53
54
55
56
module.exports = {
env: {
browser: true,
es2021: true,
jest: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: [
'react',
'@typescript-eslint',
],
rules: {
'import/extensions': 0,
'import/prefer-default-export': 0,
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'no-use-before-define': 0,
'react/jsx-filename-extension': [2, { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
'no-plusplus': 0,
'no-param-reassign': 0,
'max-classes-per-file': 0,
'no-unused-expressions': [2, { allowShortCircuit: true }],
'consistent-return': 0,
'no-underscore-dangle': 0,
'no-unused-vars': [2, { args: 'none' }],
'arrow-body-style': 0,
'space-before-function-paren': 0,
'no-shadow': 0,
'react/destructuring-assignment': 0,
'react/button-has-type': 0,
'arrow-parens': 0,
'react/jsx-one-expression-per-line': 0,
'prefer-template': 0,
'prefer-destructuring': 0,
'class-methods-use-this': 0,
'no-useless-constructor': 0,
'react/jsx-no-bind': 0,
'no-return-assign': 0,
'lines-between-class-members': 0,
'padded-blocks': 0,
'no-continue': 0,
'react/no-this-in-sfc': 0,
},
};