-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.js
69 lines (68 loc) · 1.47 KB
/
eslint.config.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
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
import ashNazg from 'eslint-config-ash-nazg';
export default [
{
ignores: [
'resources/vendor',
'dist/**',
'!dist/sw-helper.js'
]
},
...ashNazg(['sauron', 'browser']),
{
files: ['resources/user-sample.js'],
rules: {
'n/no-missing-import': 0,
'import/no-unresolved': 0
}
},
{
files: ['sw-sample.js'],
rules: {
'import/no-unresolved': 0,
'import/unambiguous': 0,
strict: 0
}
},
{
files: ['test/index.html', 'test/textbrowserTests.js'],
languageOptions: {
globals: {
assert: false,
mocha: false
}
},
rules: {
'import/unambiguous': 0
}
},
{
settings: {
polyfills: [
'navigator.serviceWorker',
'Notification.requestPermission'
]
},
rules: {
// Disable for now
'array-bracket-newline': 0,
'no-console': 0,
'require-unicode-regexp': 0,
'@stylistic/max-len': 0,
'no-shadow': 0,
'implicit-arrow-linebreak': 0,
'function-paren-newline': 0,
'class-methods-use-this': 0,
'callback-return': 0,
'multiline-ternary': 0,
'consistent-return': 0,
'arrow-parens': 0,
'require-await': 0,
'prefer-named-capture-group': 0,
'jsdoc/require-jsdoc': 0,
'promise/avoid-new': 0,
'promise/prefer-await-to-callbacks': 0,
'import/no-anonymous-default-export': 0,
'unicorn/no-array-callback-reference': 0
}
}
];