-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
112 lines (112 loc) · 3.24 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"angular",
"standard",
"prettier"
],
"overrides": [
{
"files": ["app/assets/javascripts/angular/**/*.spec.js"],
"env": {
"jasmine": true
},
"globals": {
"inject": false
},
"rules": {
"no-restricted-globals": ["error", "fdescribe", "fit"],
"no-undefined": "off"
}
}
],
"plugins": ["import"],
"rules": {
"angular/definedundefined": "off",
"angular/typecheck-string": "off",
"angular/no-service-method": "off",
"angular/window-service": "off",
"block-scoped-var": "error",
"camelcase": "off",
"consistent-this": ["error", "_this", "vm"],
"dot-notation": "error",
"eqeqeq": ["error", "smart"],
"max-len": [
"error",
{
"code": 120,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreTrailingComments": true,
"ignoreUrls": true
}
],
"import/order": [
2,
{
"newlines-between": "always"
}
],
"new-cap": "error",
"new-parens": "error",
"no-alert": "warn",
"no-array-constructor": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-case-declarations": "error",
"no-continue": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-global-assign": "error",
"no-implied-eval": "error",
"no-iterator": "error",
"no-lonely-if": "error",
"no-label-var": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-str": "error",
"no-negated-condition": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-param-reassign": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow-restricted-names": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
"no-unsafe-negation": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-useless-escape": "error",
"no-useless-return": "error",
"no-void": "error",
"no-with": "error",
"prettier/prettier": [
"error",
{ "singleQuote": true, "tabWidth": 2 }
],
"radix": "error",
"strict": ["error", "function"],
"wrap-iife": ["error", "inside"],
"yoda": "error"
}
}