Skip to content

Commit

Permalink
chore(deps): update dependency eslint to v9 (#881)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency eslint to v9

| datasource | package | from   | to     |
| ---------- | ------- | ------ | ------ |
| npm        | eslint  | 8.57.1 | 9.13.0 |

* chore: migration

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
  • Loading branch information
renovate[bot] and viceice authored Nov 8, 2024
1 parent a060887 commit d4f5ed0
Show file tree
Hide file tree
Showing 8 changed files with 313 additions and 267 deletions.
44 changes: 0 additions & 44 deletions .eslintrc.js

This file was deleted.

64 changes: 64 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-argument */
import eslintConfigPrettier from 'eslint-config-prettier';
import globals from 'globals';
import js from '@eslint/js';
import json from 'eslint-plugin-json';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
ignores: [
'**/.git/',
'**/.vscode',
'**/build/',
'**/dist/',
'**/coverage/',
'**/LICENSE.md',
'**/modules/',
'**/node_modules/',
'!**/.*',
],
},
js.configs.recommended,
...tseslint.configs.recommendedTypeChecked.map((config) => ({
...config,
files: ['**/*.{ts,js,mjs,cjs}'],
})),
...tseslint.configs.stylisticTypeChecked.map((config) => ({
...config,
files: ['**/*.{ts,js,mjs,cjs}'],
})),
{
files: ['**/*.{ts,js,mjs,cjs}'],

linterOptions: {
reportUnusedDisableDirectives: true,
},

languageOptions: {
globals: {
...globals.node,
},
ecmaVersion: 'latest',
sourceType: 'module',

parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},

rules: {
'sort-imports': 'error',
},
},
json.configs.recommended,
{
files: ['**/tsconfig.json'],
rules: {
'json/*': ['error', { allowComments: true }],
},
},
eslintConfigPrettier,
);
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,20 @@
"devDependencies": {
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@eslint/js": "9.14.0",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "11.0.0",
"@semantic-release/npm": "12.0.1",
"@tsconfig/node20": "20.1.4",
"@tsconfig/strictest": "2.0.5",
"@types/eslint-config-prettier": "6.11.3",
"@types/node": "20.17.5",
"@typescript-eslint/eslint-plugin": "8.12.2",
"@typescript-eslint/parser": "8.12.2",
"@vercel/ncc": "0.38.2",
"conventional-changelog-conventionalcommits": "8.0.0",
"eslint": "8.57.1",
"eslint": "9.13.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-json": "4.0.1",
"globals": "15.12.0",
"husky": "9.1.6",
"lint-staged": "15.2.10",
"npm-run-all2": "7.0.1",
Expand All @@ -58,7 +60,8 @@
"rimraf": "6.0.1",
"semantic-release": "24.2.0",
"ts-node": "10.9.2",
"typescript": "5.6.3"
"typescript": "5.6.3",
"typescript-eslint": "8.13.0"
},
"packageManager": "pnpm@9.12.3",
"engines": {
Expand Down
Loading

0 comments on commit d4f5ed0

Please sign in to comment.