-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc
95 lines (86 loc) · 1.93 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
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
{
"extends": [
"eslint:recommended",
"airbnb-base"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"env": {
"es6": true,
"browser": true,
"jasmine": true,
"node": false
},
"rules": {
"max-len": [2, 120, 2],
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": ["error", {
"devDependencies": [
"sample/**",
"scripts/**",
"test/**",
"gulpfile.js"
]
}],
"quote-props": ["error", "consistent-as-needed"],
"no-plusplus": "off",
"operator-linebreak": "off",
"no-underscore-dangle": "off",
"no-use-before-define": ["error", {
"functions": false,
"classes": true,
"variables": true,
"allowNamedExports": false
}],
"object-curly-newline": ["error", {
"consistent": true,
"multiline": true
}],
"no-console": ["error", {
"allow": ["warn", "error"]
}],
"valid-jsdoc": [2, {
"requireReturn": true,
"requireParamDescription": true,
"requireReturnDescription": true,
"prefer": {
"return": "return",
"arg": "param",
"argument": "param"
},
"preferType": {
"object": "object"
}
}]
},
"overrides": [
{
"files": [
"**/*.ts"
],
"env": {
"browser": true,
"es6": true,
"jasmine": true,
"node": false
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"rules": {
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"comma-dangle": ["error", "always-multiline"],
"@typescript-eslint/no-explicit-any": "off"
}
}
]
}