forked from import-js/eslint-plugin-import
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
67 lines (64 loc) · 1.66 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"root": true,
"plugins": [
"eslint-plugin",
"import",
],
"extends": [
"eslint:recommended",
"plugin:eslint-plugin/recommended",
"plugin:import/recommended",
],
"env": {
"node": true,
"es6": true,
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
},
"rules": {
"max-len": [1, 99, 2],
"semi": [2, "never"],
"curly": [2, "multi-line"],
"comma-dangle": [2, "always-multiline"],
"eol-last": [2, "always"],
"eqeqeq": [2, "allow-null"],
"no-shadow": 1,
"quotes": [2, "single", {
"allowTemplateLiterals": true,
"avoidEscape": true,
}],
"eslint-plugin/consistent-output": [
"error",
"always",
],
"eslint-plugin/meta-property-ordering": "error",
"eslint-plugin/no-deprecated-context-methods": "error",
"eslint-plugin/no-deprecated-report-api": "off",
"eslint-plugin/prefer-replace-text": "error",
"eslint-plugin/report-message-format": "error",
"eslint-plugin/require-meta-schema": "error",
"eslint-plugin/require-meta-type": "error",
// dog fooding
"import/no-extraneous-dependencies": "error",
"import/unambiguous": "off",
},
"settings": {
"import/resolver": {
"node": {
"paths": [
"src",
],
},
},
},
"overrides": [
{
"files": "scripts/**",
"rules": {
"no-console": "off",
},
},
],
}