forked from GoogleChrome/web.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
61 lines (61 loc) · 1.19 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
54
55
56
57
58
59
60
61
module.exports = {
extends: ['./node_modules/gts/.eslintrc.json', 'plugin:lit-a11y/recommended'],
env: {
es6: true,
node: true,
mocha: true,
browser: true,
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
globals: {
customElements: true,
firebase: true,
ga: true,
},
rules: {
indent: [
'error',
2,
{
SwitchCase: 1,
},
],
'lit-a11y/no-invalid-change-handler': 0,
'new-cap': 0,
'no-case-declarations': 0,
'node/no-extraneous-require': 0,
'node/no-unpublished-import': 0,
'node/no-unpublished-require': 0,
'node/no-unsupported-features/es-syntax': 0,
'node/no-missing-import': [
'error',
{
allowModules: [
'cache-manifest',
'layout-template',
'webdev_analytics',
'webdev_config',
],
},
],
quotes: [
'warn',
'single',
{avoidEscape: true, allowTemplateLiterals: true},
],
'require-jsdoc': 0,
},
overrides: [
{
files: ['test/**/*.js'],
env: {mocha: true},
rules: {
'prefer-arrow-callback': 0,
},
},
],
};