-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
38 lines (38 loc) · 1.13 KB
/
index.js
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
module.exports = {
extends: ['standard', 'prettier', 'prettier/standard'],
plugins: ['prettier'],
env: {
browser: true,
node: true,
},
// extra globals for the Angular part of the codebase.
globals: {
angular: true,
define: true,
},
rules: {
'max-len': [
'error',
{
code: 110,
ignoreStrings: true,
ignoreUrls: true,
},
],
'prettier/prettier': [
'error',
require('./.prettierrc'),
],
'one-var': 'off',
'spaced-comment': 'off',
'no-useless-escape': 'off', // TODO should probably be on, with our errors fixed
'prefer-promise-reject-errors': 'off', // TODO consider fixing
'no-unneeded-ternary': 'off', // TODO should probably be on, with our errors fixed
'no-useless-return': 'off',
'new-cap': 'off',
'no-path-concat': 'off',
'no-throw-literal': 'off', // TODO should probably be on, with our errors fixed
'no-template-curly-in-string': 'off',
yoda: 'off',
},
};