-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.js
49 lines (49 loc) · 1.29 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
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": [
"plugin:react/recommended",
"airbnb"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"React": "writable"
},
//config cho Absolute import
"settings": {
"import/resolver": {
"node": {
"paths": ["./"]
}
},
},
"parser": 'babel-eslint',
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module",
"allowImportExportEverywhere": true
},
"plugins": [
"react"
],
"rules": {
"jsx-a11y/anchor-is-valid": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": 0,
"react/jsx-props-no-spreading": "off",
"react/require-default-props": 0,
"linebreak-style": 0,
"import/order": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true, "optionalDependencies": false, "peerDependencies": false }],
"react/default-props-match-prop-types":"off",
"react/forbid-prop-types":"off",
"no-plusplus":"off"
}
};