Skip to content

Commit 18d5eba

Browse files
authored
Extend lint (#631)
1 parent c834bca commit 18d5eba

File tree

4 files changed

+436
-517
lines changed

4 files changed

+436
-517
lines changed

.eslintrc

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
},
66
"env": {
77
"es6": true,
8-
"browser": true,
9-
"node": true
8+
"node": true,
9+
"browser": true
1010
},
11-
"extends": ["eslint:recommended"]
11+
"extends": ["eslint:recommended", "plugin:compat/recommended"]
1212
}

.stylelintrc

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"extends": ["stylelint-config-recommended"]
2+
"extends": [
3+
"stylelint-config-recommended"
4+
],
5+
"plugins": [
6+
"stylelint-no-unsupported-browser-features"
7+
]
38
}

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack-mpa-next",
3-
"version": "3.8.0",
3+
"version": "3.9.0",
44
"description": "Multi page app setup with webpack",
55
"scripts": {
66
"build": "webpack --mode=production",
@@ -46,6 +46,7 @@
4646
"cssnano": "5.0.7",
4747
"eslint": "7.32.0",
4848
"eslint-config-recommended": "4.1.0",
49+
"eslint-plugin-compat": "3.12.0",
4950
"file-loader": "6.2.0",
5051
"mini-css-extract-plugin": "2.2.0",
5152
"postcss": "8.3.6",
@@ -70,6 +71,7 @@
7071
"spritesh": "1.2.1",
7172
"stylelint": "13.13.1",
7273
"stylelint-config-recommended": "5.0.0",
74+
"stylelint-no-unsupported-browser-features": "5.0.1",
7375
"svgo": "2.3.1",
7476
"webpack": "5.49.0",
7577
"webpack-cli": "4.7.2",

0 commit comments

Comments
 (0)