Skip to content

Commit

Permalink
Update to eslint 9
Browse files Browse the repository at this point in the history
- Update eslint
- Update webpack and eslint-webpack-plugin
- Update the eslint config file to the new format

Signed-off-by: David Thompson <davthomp@redhat.com>
  • Loading branch information
datho7561 committed Dec 2, 2024
1 parent 7192ffa commit 606a76a
Show file tree
Hide file tree
Showing 12 changed files with 920 additions and 786 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

38 changes: 0 additions & 38 deletions .eslintrc.json

This file was deleted.

44 changes: 44 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// @ts-check

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import globals from "globals";

export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
{
ignores: [
"node_modules/**",
"dist/**",
"server/**",
"out/**",
],
},
{
files: [ "src/**/*" ],
rules: {
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-explicit-any": "warn",
}
}, {
files: [
"gulpfile.js",
"webpack.config.js"
],
languageOptions: {
sourceType: "commonjs",
globals: globals.node
},
rules: {
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-require-imports": "off"
}
}
);
4 changes: 0 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ function isMac() {
return /^darwin/.test(process.platform);
}

function isLinux() {
return /^linux/.test(process.platform);
}

function mvnw() {
return isWin() ? "mvnw.cmd" : server_dir + "/mvnw";
}
Expand Down
Loading

0 comments on commit 606a76a

Please sign in to comment.