-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.js
53 lines (53 loc) · 1.05 KB
/
.eslintrc.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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
},
extends: ['eslint:recommended', 'google'],
env: {
es6: true,
},
plugins: [
'header',
],
rules: {
// See https://github.com/eslint/typescript-eslint-parser/issues/457
'no-unused-vars': ['off'],
'require-jsdoc': ['off'],
'spaced-comment': ['off'],
'header/header': [2, 'block', {pattern: 'Copyright \\d{4} Google Inc.'}],
},
overrides: [{
files: ['lib/**'],
env: {
serviceworker: true,
browser: true,
},
}, {
files: ['packages/appcache-polyfill-sw/**'],
env: {
serviceworker: true,
},
}, {
files: ['packages/appcache-polyfill-window/**'],
env: {
browser: true,
},
}, {
files: ['tests/**'],
env: {
browser: true,
mocha: true,
node: true,
serviceworker: true,
},
globals: {
appcachePolyfill: 'readonly',
},
rules: {
'max-len': ['off'],
'no-console': ['off'],
},
}],
};