Skip to content

Commit

Permalink
chore(deps): migrate eslint to v9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Oct 3, 2024
1 parent 0508840 commit 886242d
Show file tree
Hide file tree
Showing 4 changed files with 1,089 additions and 1,149 deletions.
23 changes: 0 additions & 23 deletions .eslintrc.cjs

This file was deleted.

41 changes: 41 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import tseslint from 'typescript-eslint';
import eslintConfigPrettier from "eslint-config-prettier";

import { includeIgnoreFile } from "@eslint/compat";
import path from "node:path";
import { fileURLToPath } from "node:url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
import eslint from "@eslint/js";
const gitignorePath = path.resolve(__dirname, ".gitignore");

export default tseslint.config(
includeIgnoreFile(gitignorePath),
eslintConfigPrettier,
{
ignores: [
"**/test/*",
"commitlint.config.cjs",
"gulpfile.cjs"
],
},{
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
tseslint.configs.eslintRecommended,
],
rules: {
'@typescript-eslint/no-explicit-any': ['warn'],
'@typescript-eslint/no-unused-vars': [
'warn',
{
args: 'after-used',
argsIgnorePattern: '_',
ignoreRestSiblings: false,
vars: 'all',
},
],
},
},
);
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"prettier": "prettier --check .",
"prettier:fix": "prettier --cache --write .",
"lint": "eslint --ignore-path .gitignore lib test",
"lint": "eslint",
"test": "jasmine --config=jasmine.json \"test/unit/**/*.ts\"",
"test:e2e": "jasmine --config=jasmine.json \"test/e2e/**/*.ts\"",
"build": "rm -rf dist && rollup -c",
Expand Down Expand Up @@ -40,26 +40,28 @@
"@babel/register": "^7.25.7",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@eslint/compat": "^1.1.1",
"@eslint/js": "^9.11.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@types/body-parser": "^1.19.5",
"@types/eslint__js": "^8.42.3",
"@types/express": "^5.0.0",
"@types/jasmine": "^5.1.4",
"@types/js-yaml": "^4.0.9",
"@types/lodash": "^4.17.10",
"@types/node": "^20.16.10",
"@types/verror": "^1.10.10",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"ansi-colors": "^4.1.3",
"body-parser": "^2.0.1",
"conventional-changelog": "^6.0.0",
"eslint": "^8.57.1",
"eslint": "^9.11.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-jest": "^28.8.3",
"express": "^4.21.0",
"globals": "^15.10.0",
"gulp": "^5.0.0",
"gulp-bump": "^3.2.0",
"gulp-cli": "^3.0.0",
Expand All @@ -70,7 +72,8 @@
"minimist": "^1.2.8",
"prettier": "^3.3.3",
"rollup": "^4.24.0",
"typescript": "^5.6.2"
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0"
},
"dependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
Expand Down
Loading

0 comments on commit 886242d

Please sign in to comment.