Skip to content

Commit 0b30585

Browse files
committed
Update to eslint 9
- Update eslint - Update webpack and eslint-webpack-plugin - Update the eslint config file to the new format Signed-off-by: David Thompson <[email protected]>
1 parent 9ac514d commit 0b30585

12 files changed

+920
-786
lines changed

.eslintignore

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

.eslintrc.json

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

eslint.config.mjs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// @ts-check
2+
3+
import eslint from '@eslint/js';
4+
import tseslint from 'typescript-eslint';
5+
import globals from "globals";
6+
7+
export default tseslint.config(
8+
eslint.configs.recommended,
9+
tseslint.configs.recommended,
10+
{
11+
ignores: [
12+
"node_modules/**",
13+
"dist/**",
14+
"server/**",
15+
"out/**",
16+
],
17+
},
18+
{
19+
files: [ "src/**/*" ],
20+
rules: {
21+
"@typescript-eslint/no-unused-vars": [
22+
"warn",
23+
{
24+
"argsIgnorePattern": "^_",
25+
"caughtErrorsIgnorePattern": "^_"
26+
}
27+
],
28+
"@typescript-eslint/no-explicit-any": "warn",
29+
}
30+
}, {
31+
files: [
32+
"gulpfile.js",
33+
"webpack.config.js"
34+
],
35+
languageOptions: {
36+
sourceType: "commonjs",
37+
globals: globals.node
38+
},
39+
rules: {
40+
"@typescript-eslint/no-var-requires": "off",
41+
"@typescript-eslint/no-require-imports": "off"
42+
}
43+
}
44+
);

gulpfile.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ function isMac() {
5353
return /^darwin/.test(process.platform);
5454
}
5555

56-
function isLinux() {
57-
return /^linux/.test(process.platform);
58-
}
59-
6056
function mvnw() {
6157
return isWin() ? "mvnw.cmd" : server_dir + "/mvnw";
6258
}

0 commit comments

Comments
 (0)