-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
44 lines (43 loc) · 915 Bytes
/
.eslintrc.json
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
// {
// "root": true,//tells eslint that this file is in our root folder
// "extends": [
// "eslint: recommended",
// "plugin: import/errors",
// "plugin: import/warnings"
// ],
// "parserOptions":{
// "ecmaVersion": 7, //specifies the js version we want to use
// "sorceType": "module"
// },
// "env": {
// "browser": true,
// "node": true,
// "mocha": true
// //there are other environments such as jasmine, just check on eslint website and match them to your app
// },
// "rules": {
// "no-console": 1
// //0 = off, 1 = warning, 2 = error
// //this is how you override the custom rules.
// }
// }
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"mocha": true
},
"rules": {
"no-console": 1
}
}