Skip to content

Commit 83e2b6d

Browse files
authored
Update linting (#947)
1 parent 9fb382c commit 83e2b6d

File tree

4 files changed

+800
-299
lines changed

4 files changed

+800
-299
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"node": true,
44
"browser": true
55
},
6-
"extends": ["prettier", "plugin:@typescript-eslint/recommended"],
6+
"extends": ["prettier", "plugin:@typescript-eslint/recommended", "plugin:compat/recommended"],
77
"parser": "@typescript-eslint/parser",
88
"parserOptions": {
99
"project": "tsconfig.json",

.stylelintrc

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
{
2-
"extends": ["stylelint-config-recommended"],
2+
"extends": [
3+
"stylelint-config-recommended"
4+
],
5+
"plugins": [
6+
"stylelint-no-unsupported-browser-features"
7+
],
38
"rules": {
49
"at-rule-no-unknown": [
510
true,
611
{
7-
"ignoreAtRules": ["function", "if", "each", "include", "mixin"]
12+
"ignoreAtRules": [
13+
"function",
14+
"if",
15+
"each",
16+
"include",
17+
"mixin",
18+
"for",
19+
"while",
20+
"else",
21+
"return"
22+
]
823
}
924
]
1025
}

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack-mpa-ts",
3-
"version": "3.9.0",
3+
"version": "3.9.1",
44
"description": "Multi page app setup with webpack",
55
"scripts": {
66
"build": "webpack --mode=production",
@@ -59,9 +59,10 @@
5959
"cssnano": "5.0.7",
6060
"eslint": "7.32.0",
6161
"eslint-config-prettier": "8.3.0",
62+
"eslint-config-recommended": "4.1.0",
63+
"eslint-plugin-compat": "3.12.0",
6264
"file-loader": "6.2.0",
6365
"mini-css-extract-plugin": "2.2.0",
64-
"node-sass": "6.0.1",
6566
"node-sass-magic-importer": "5.3.2",
6667
"postcss": "8.3.6",
6768
"postcss-cli": "8.3.1",
@@ -73,11 +74,13 @@
7374
"postcss-url": "10.1.3",
7475
"postcss-utilities": "0.8.4",
7576
"postcss-watch-folder": "1.1.0",
77+
"sass": "1.37.5",
7678
"sass-loader": "12.1.0",
7779
"source-map-loader": "3.0.0",
7880
"spritesh": "1.2.1",
7981
"stylelint": "13.13.1",
8082
"stylelint-config-recommended": "5.0.0",
83+
"stylelint-no-unsupported-browser-features": "5.0.1",
8184
"svgo": "2.3.1",
8285
"ts-loader": "9.2.5",
8386
"typescript": "4.3.5",

0 commit comments

Comments
 (0)