-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
42 lines (42 loc) · 1019 Bytes
/
.eslintrc
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
{
"parser": "babel-eslint",
"plugins": ["import", "prettier", "react"],
"settings": {
"import/resolver": "webpack",
"react": { "version": "16" }
},
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"extends": [
"airbnb/base",
"eslint:recommended",
"plugin:react/recommended",
"prettier"
],
"globals": {
"document": true,
"window": true,
"btoa": true
},
"rules": {
"consistent-return": 0,
"curly": [1, "all"],
"import/no-amd": 2,
"import/no-commonjs": 2,
"import/no-nodejs-modules": 2,
"no-debugger": 1,
"no-param-reassign": [1, { "props": false }],
"no-unused-vars": [
1,
{ "args": "all", "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }
],
"no-use-before-define": [2, { "functions": false, "variables": false }],
"prettier/prettier": 1,
"react/display-name": 0,
"react/jsx-no-undef": [2, { "allowGlobals": true }],
"react/prop-types": 0,
"vars-on-top": 0
}
}