-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
.eslintrc.json
48 lines (48 loc) · 1.04 KB
/
.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
45
46
47
48
{
"root": true,
"parser": "@babel/eslint-parser",
"plugins": [
"@babel",
"prettier"
],
"parserOptions": {
"ecmaVersion": 12,
"requireConfigFile": false
},
"env": {
"es6": true,
"browser": false,
"commonjs": true,
"node": true
},
// Start with rules from eslint recommended setting, and override below.
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
// Linting rules are enforced based on the following levels:
// (Reference: http://eslint.org/docs/user-guide/configuring)
// 0: turn the rule off
// 1: turn the rule on as a warning (doesn't affect exit code)
// 2: turn the rule on as an error (exit code is 1 when triggered)
"rules": {
// Disallow littering with unused variables (except function args).
"no-unused-vars": [
2,
{
"vars": "all",
"args": "none"
}
],
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
},
"ignorePatterns": [
"dist/",
"node_modules/"
]
}