Skip to content

Commit 9fb382c

Browse files
authored
Update lint (#946)
1 parent 55ff35e commit 9fb382c

File tree

4 files changed

+694
-633
lines changed

4 files changed

+694
-633
lines changed

.eslintrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"browser": true
5+
},
6+
"extends": ["prettier", "plugin:@typescript-eslint/recommended"],
7+
"parser": "@typescript-eslint/parser",
8+
"parserOptions": {
9+
"project": "tsconfig.json",
10+
"sourceType": "module"
11+
},
12+
"plugins": ["@typescript-eslint"],
13+
"rules": {
14+
"@typescript-eslint/no-explicit-any": "off"
15+
}
16+
}

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack-mpa-ts",
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",
@@ -11,7 +11,7 @@
1111
"rm-html": "rm index.html",
1212
"pwa": "create-pwa --icon=\"./assets/images/favicon/icon.png\" --launch=\"./assets/images/favicon/launch.png\"",
1313
"prod": "yarn build && yarn html && yarn critical && yarn rm-html",
14-
"lint:ts": "tslint -p tsconfig.json -c tslint.json 'assets/scripts/**/*.ts'",
14+
"lint:ts": "eslint 'assets/scripts/**/*.ts'",
1515
"lint:scss": "stylelint assets/styles/**/*.scss",
1616
"lint": "yarn lint:ts && yarn lint:scss"
1717
},
@@ -39,13 +39,15 @@
3939
"@types/cssnano": "4.0.1",
4040
"@types/extract-text-webpack-plugin": "3.0.6",
4141
"@types/mini-css-extract-plugin": "2.2.0",
42-
"@types/node": "15.12.5",
42+
"@types/node": "16.4.13",
4343
"@types/postcss-flexbugs-fixes": "4.2.1",
4444
"@types/postcss-url": "8.0.2",
4545
"@types/svgo": "2.3.1",
4646
"@types/webpack": "5.28.0",
4747
"@types/webpack-shell-plugin": "0.5.3",
4848
"@types/yargs": "17.0.2",
49+
"@typescript-eslint/eslint-plugin": "4.29.1",
50+
"@typescript-eslint/parser": "4.29.1",
4951
"autoprefixer": "10.3.1",
5052
"browser-sync": "2.27.5",
5153
"browser-sync-webpack-plugin": "2.3.0",
@@ -55,6 +57,8 @@
5557
"critical": "4.0.1",
5658
"css-loader": "6.2.0",
5759
"cssnano": "5.0.7",
60+
"eslint": "7.32.0",
61+
"eslint-config-prettier": "8.3.0",
5862
"file-loader": "6.2.0",
5963
"mini-css-extract-plugin": "2.2.0",
6064
"node-sass": "6.0.1",
@@ -76,8 +80,6 @@
7680
"stylelint-config-recommended": "5.0.0",
7781
"svgo": "2.3.1",
7882
"ts-loader": "9.2.5",
79-
"tslint": "6.1.3",
80-
"tslint-config-prettier": "1.18.0",
8183
"typescript": "4.3.5",
8284
"webpack": "5.49.0",
8385
"webpack-cli": "4.7.2",

tslint.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)