-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
50 lines (46 loc) · 1.11 KB
/
Copy path.eslintrc.js
File metadata and controls
50 lines (46 loc) · 1.11 KB
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
50
module.exports = {
env: {
node: true,
es6: true
},
parserOptions: {
ecmaVersion: 2017
},
extends: [
// Use 'eslint:recommended' as a base
"eslint:recommended",
"plugin:react/recommended"
// Turn off all rules that are unnecessary or might conflict with prettier
"prettier"
],
plugins: [
// Use prettier for code format
"eslint-plugin-prettier"
],
rules: {
"no-unused-vars": [
"error",
{
vars: "all",
args: "none",
ignoreRestSiblings: true
}
],
// Prettier settings
"prettier/prettier": [
"error",
{
printWidth: 80,
tabWidth: 4,
useTabs: false,
semi: true,
singleQuote: true,
trailingComma: "es5",
bracketSpacing: true,
jsxBracketSameLine: false,
rangeStart: 0,
rangeEnd: Infinity
}
]
}
};