-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
47 lines (47 loc) · 1.46 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
module.exports = {
env: {
browser: true,
commonjs:true,
es6: true,
jest: true
},
globals:{ 'react': true, 'react-dom': true},
extends: ['eslint-config-airbnb', 'prettier'],
parser: "babel-eslint",
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true
},
ecmaVersion: 8,
sourceType: 'module'
},
plugins: ['react', 'eslint-plugin-jsx-a11y', 'import','prettier'],
rules: {
indent: 'off',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'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',
semi: ['error', 'always'],
'prettier/prettier': 'error',
'import/prefer-default-export':'off',
'react/jsx-wrap-multilines':'off',
'radix':["error", "as-needed"],
"func-names":["error", "never"],
// followiong part jsut 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','@jay.wang/fundamental-react']
},
root: true
};