forked from w3c/aria-practices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
76 lines (76 loc) · 1.58 KB
/
.eslintrc.json
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
{
"extends": [
"eslint:recommended",
"plugin:jsdoc/recommended",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"jsdoc/no-undefined-types": 0,
"jsdoc/require-jsdoc": 0,
"jsdoc/require-param-description": 0,
"jsdoc/require-param-type": 0,
"jsdoc/require-returns-description": 0,
"strict": [2, "global"],
"no-console": "error"
},
"overrides": [
{
"files": "test/**/*.js",
"parserOptions": {
"ecmaVersion": 8
},
"extends": ["plugin:ava/recommended"],
"env": {
"node": true
},
"rules": {
"no-restricted-properties": [
2,
{
"property": "findElements",
"message": "Please use t.context.queryElements()."
}
]
}
},
{
"files": "scripts/*.js",
"env": {
"node": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false
},
"rules": {
"no-console": 0
}
},
{
"files": ["**/*.html"],
"plugins": ["html"],
"globals": {
"sourceCode": true
},
"rules": {
"strict": 0,
"no-unused-vars": ["error", { "varsIgnorePattern": "SkipToConfig" }]
}
},
{
"files": ["content/shared/js/app.js"],
"parserOptions": { "ecmaVersion": 11 }
},
{
"files": ["content/shared/js/specLinks.mjs"],
"parserOptions": { "sourceType": "module" }
}
]
}