Skip to content

Commit 6855387

Browse files
build: update deps
1 parent bc4f6c0 commit 6855387

File tree

10 files changed

+3891
-2622
lines changed

10 files changed

+3891
-2622
lines changed

.eslintignore

-11
This file was deleted.

.eslintrc.yml

-37
This file was deleted.

eslint.config.mjs

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
import js from '@eslint/js';
2+
import ts from 'typescript-eslint';
3+
import prettier from 'eslint-config-prettier';
4+
5+
export default [
6+
{
7+
ignores: ['dist', 'releases', '*.config.{js,mjs,cjs}', '**/.*.\\{js,ts}', 'node_modules/'],
8+
},
9+
js.configs.recommended,
10+
...ts.configs.recommendedTypeChecked,
11+
...ts.configs.stylisticTypeChecked,
12+
{
13+
languageOptions: {
14+
parserOptions: {
15+
projectService: true,
16+
},
17+
},
18+
rules: {
19+
'@typescript-eslint/consistent-type-definitions': 0,
20+
'@typescript-eslint/array-type': [
21+
1,
22+
{
23+
default: 'array-simple',
24+
},
25+
],
26+
'@typescript-eslint/explicit-function-return-type': [
27+
2,
28+
{
29+
allowExpressions: true,
30+
},
31+
],
32+
'@typescript-eslint/no-extraneous-class': [
33+
1,
34+
{
35+
allowWithDecorator: true,
36+
allowStaticOnly: true,
37+
},
38+
],
39+
'@typescript-eslint/parameter-properties': [
40+
1,
41+
{
42+
allow: ['protected readonly', 'private readonly', 'public readonly', 'readonly'],
43+
},
44+
],
45+
'no-unused-vars': [0],
46+
'@typescript-eslint/no-unused-vars': [
47+
1,
48+
{
49+
varsIgnorePattern: '^_',
50+
argsIgnorePattern: '^_',
51+
},
52+
],
53+
'@typescript-eslint/prefer-for-of': [1],
54+
'@typescript-eslint/prefer-function-type': [1],
55+
'@typescript-eslint/prefer-nullish-coalescing': [1],
56+
'@typescript-eslint/prefer-optional-chain': [1],
57+
'no-void': [
58+
1,
59+
{
60+
allowAsStatement: true,
61+
},
62+
],
63+
eqeqeq: [1, 'smart'],
64+
},
65+
},
66+
prettier,
67+
];

package.json

+10-12
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"engines": {
1212
"node": "^20.15.1"
1313
},
14-
"packageManager": "pnpm@9.6.0",
14+
"packageManager": "pnpm@9.7.0",
1515
"license": "MIT",
1616
"bugs": "https://github.com/EhTagTranslation/EhSyringe/issues",
1717
"homepage": "https://github.com/EhTagTranslation/EhSyringe",
@@ -26,7 +26,7 @@
2626
"build:ext": "pnpm run build --env type=web-ext",
2727
"build:chrome": "pnpm run build:ext --env vendor=chrome && web-ext build -s dist -a releases -n ehsyringe.chrome.zip -o",
2828
"build:firefox": "pnpm run build:ext --env vendor=firefox && web-ext build -s dist -a releases -n ehsyringe.firefox.xpi -o",
29-
"lint": "eslint ./src/**/*.ts",
29+
"lint": "eslint",
3030
"format": "prettier --ignore-path .gitignore --write .",
3131
"clean": "rimraf dist releases"
3232
},
@@ -35,30 +35,28 @@
3535
"@babel/plugin-transform-runtime": "^7.24.7",
3636
"@babel/preset-env": "^7.25.3",
3737
"@babel/runtime-corejs3": "^7.25.0",
38+
"@eslint/js": "^9.8.0",
3839
"@types/chrome": "^0.0.269",
3940
"@types/escape-html": "^1.0.4",
4041
"@types/node": "^22.1.0",
4142
"@types/tampermonkey": "^5.0.3",
4243
"@types/webextension-polyfill": "^0.10.7",
43-
"@typescript-eslint/eslint-plugin": "^7.18.0",
44-
"@typescript-eslint/parser": "^7.18.0",
4544
"@webextension-toolbox/webpack-webextension-plugin": "^3.3.1",
4645
"babel-loader": "^9.1.3",
4746
"copy-webpack-plugin": "^12.0.2",
4847
"css-loader": "^7.1.2",
4948
"cssnano": "^7.0.4",
50-
"eslint": "^8.57.0",
49+
"eslint": "^9.8.0",
5150
"eslint-config-prettier": "^9.1.0",
52-
"eslint-plugin-prettier": "^5.2.1",
5351
"execa": "^9.3.0",
5452
"glob": "^11.0.0",
5553
"html-webpack-plugin": "^5.6.0",
5654
"less": "^4.2.0",
5755
"less-loader": "^12.2.0",
58-
"postcss": "^8.4.40",
56+
"postcss": "^8.4.41",
5957
"postcss-import": "^16.1.0",
6058
"postcss-loader": "^8.1.1",
61-
"postcss-preset-env": "^9.6.0",
59+
"postcss-preset-env": "^10.0.0",
6260
"prettier": "^3.3.3",
6361
"rimraf": "^6.0.1",
6462
"semver": "^7.6.3",
@@ -67,20 +65,20 @@
6765
"tsconfig-paths-webpack-plugin": "^4.1.0",
6866
"type-fest": "^4.23.0",
6967
"typescript": "^5.5.4",
68+
"typescript-eslint": "^8.0.1",
7069
"web-ext": "^8.2.0",
7170
"webpack": "^5.93.0",
7271
"webpack-bundle-analyzer": "^4.10.2",
7372
"webpack-cli": "^5.1.4",
7473
"webpack-dev-server": "^5.0.4",
75-
"webpack-userscript": "^2.5.8",
76-
"yargs": "^17.7.2"
74+
"webpack-userscript": "^2.5.8"
7775
},
7876
"dependencies": {
79-
"core-js": "^3.37.1",
77+
"core-js": "^3.38.0",
8078
"emoji-regex": "^10.3.0",
8179
"escape-html": "^1.0.3",
8280
"idb-keyval": "^6.2.1",
83-
"lit-html": "^3.1.4",
81+
"lit-html": "^3.2.0",
8482
"rxjs": "^7.8.1",
8583
"tslib": "^2.6.3",
8684
"typedi": "^0.10.0",

0 commit comments

Comments
 (0)