-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (35 loc) · 941 Bytes
/
.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
module.exports = {
// Recommended features
"extends": [ "eslint:recommended" ],
//Parser features
parser: "@babel/eslint-parser",
parserOptions: {
requireConfigFile: false,
ecmaVersion: 12,
sourceType: "module",
ecmaFeatures: {
experimentalObjectRestSpread: true
}
},
// Specific rules, 2: err, 1: warn, 0: off
rules: {
"prefer-arrow-callback": 2,
"no-mixed-spaces-and-tabs": 1,
"no-unused-vars": [ 1, { vars: 'all', args: 'none' } ], // All variables, no function arguments
// React specific
"react/prop-types": 0,
"react/display-name": 0
},
// What environment to run in
env:{
node: true,
browser: true,
mocha: true,
jest: false,
es6: true
},
// What global variables should be assumed to exist
globals: {
context: false
}
}