-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
60 lines (59 loc) · 1.81 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
57
58
59
60
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
jest: true,
'cypress/globals': true
},
extends: [
'airbnb-typescript',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
'plugin:jsx-a11y/strict',
'plugin:jest/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
warnOnUnsupportedTypeScriptVersion: false,
experimentalObjectRestSpread: true,
jsx: true
},
ecmaVersion: 8,
sourceType: 'module'
},
plugins: ['react', 'eslint-plugin-jsx-a11y', 'import', '@typescript-eslint', 'prettier', 'jest', 'cypress'],
rules: {
indent: 'off',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx', 'ts', 'tsx'] }],
'comma-dangle': ['error', 'never'],
'arrow-parens': ['error', 'as-needed'],
'no-plusplus': 'off',
'no-underscore-dangle': [0],
'class-methods-use-this': 'off',
'import/no-extraneous-dependencies': 'off',
'react/forbid-prop-types': 'off',
'global-require': 'off',
'consistent-return': 'off',
semi: ['error', 'always'],
'prettier/prettier': 'error',
'import/prefer-default-export': 'off',
'react/jsx-wrap-multilines': 'off',
'react/no-array-index-key': 'off',
radix: ['error', 'as-needed'],
'func-names': ['error', 'never'],
'@typescript-eslint/no-use-before-define': 'off',
'no-debugger': 'off',
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
// followiong part just because too many errors incurrent phase
'react/require-default-props': 'off',
// 'react/no-unused-prop-types':'off',
// 'react/destructuring-assignment':'off',
'react/prop-types': 'off'
},
settings: {
'import/core-modules': ['react', 'react-dom']
},
root: true
};