Skip to content

Commit 53a61a8

Browse files
committed
build: update linters
1 parent a9f200d commit 53a61a8

File tree

4 files changed

+24
-27
lines changed

4 files changed

+24
-27
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
/_gh_pages/
55
/js/coverage/
66
/js/tests/integration/
7+
/docs/content/_index.html
78
/docs/static/sw.js
9+
/docs/layouts/

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"error",
4747
"after"
4848
],
49+
"prefer-template": "error",
4950
"semi": [
5051
"error",
5152
"never"

.stylelintrc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@
2626
"ignore": "local"
2727
}
2828
],
29-
"scss/selector-no-union-class-name": true,
30-
"value-keyword-case": [
31-
"lower",
32-
{
33-
"camelCaseSvgKeywords": true
34-
}
35-
]
29+
"scss/selector-no-union-class-name": true
3630
}
3731
}

docs/.eslintrc.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
{
2+
"extends": "../.eslintrc.json",
23
"env": {
34
"browser": true,
45
"node": false
56
},
7+
"parserOptions": {
8+
"sourceType": "script"
9+
},
610
"plugins": [
711
"markdown"
812
],
13+
"rules": {
14+
"no-new": "off",
15+
"strict": "error",
16+
"unicorn/no-array-for-each": "off",
17+
"unicorn/numeric-separators-style": "off",
18+
"unicorn/prefer-node-protocol": "off"
19+
},
920
"overrides": [
1021
{
1122
// 2. Enable the Markdown processor for all .md files.
12-
"files": ["./**/*.md"],
23+
"files": [
24+
"./**/*.md"
25+
],
1326
"processor": "markdown/markdown"
1427
},
1528
{
@@ -22,34 +35,21 @@
2235
// Configuration for fenced code blocks goes with the override for
2336
// the code block's virtual filename, for example:
2437
"parserOptions": {
25-
"sourceType": "module",
2638
"ecmaFeatures": {
2739
"impliedStrict": true
2840
}
2941
},
3042
"rules": {
31-
"import/no-unresolved": "off",
3243
"no-array-for-each": "off",
44+
"no-labels": "off",
45+
"no-redeclare": "off",
3346
"no-undef": "off",
34-
"no-unused-vars": "off",
35-
"unicorn/no-array-for-each": "off",
36-
"unicorn/numeric-separators-style": "off",
3747
"no-unused-expressions": "off",
3848
"no-unused-labels": "off",
39-
"no-labels": "off",
40-
"no-redeclare": "off"
49+
"no-unused-vars": "off",
50+
"unicorn/no-array-for-each": "off",
51+
"unicorn/numeric-separators-style": "off"
4152
}
4253
}
43-
],
44-
"parserOptions": {
45-
"sourceType": "script"
46-
},
47-
"extends": "../.eslintrc.json",
48-
"rules": {
49-
"no-new": "off",
50-
"prefer-template": "error",
51-
"strict": "error",
52-
"unicorn/no-array-for-each": "off",
53-
"unicorn/numeric-separators-style": "off"
54-
}
54+
]
5555
}

0 commit comments

Comments
 (0)