Skip to content

Commit

Permalink
perf: update eslint to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Aug 6, 2024
1 parent 794ea6c commit 9582418
Show file tree
Hide file tree
Showing 4 changed files with 366 additions and 373 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.cjs

This file was deleted.

23 changes: 23 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// @ts-check
import eslint from '@eslint/js';
import tsEslint from 'typescript-eslint';
import unusedImports from 'eslint-plugin-unused-imports';
import eslintConfigPrettier from 'eslint-config-prettier';

export default tsEslint.config(
eslint.configs.recommended,
...tsEslint.configs.recommended,
eslintConfigPrettier,
{
plugins: {
'unused-imports': unusedImports,
},
rules: {
quotes: ['error', 'single', { allowTemplateLiterals: false }],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': 'error',
},
},
);
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
},
"lint-staged": {
"*.{js,cjs,mjs,ts,jsx,tsx}": [
"prettier --cache --write",
"eslint --cache --fix"
"eslint --cache --fix",
"prettier --cache --write"
],
"*.json": [
"prettier --cache --write"
Expand All @@ -34,27 +34,27 @@
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@commitlint/types": "19.0.3",
"@eslint/js": "9.8.0",
"@gkd-kit/api": "0.3.3",
"@gkd-kit/define": "0.0.1",
"@gkd-kit/tools": "0.5.0",
"@types/node": "20.14.10",
"@typescript-eslint/eslint-plugin": "7.16.1",
"@typescript-eslint/parser": "7.16.1",
"eslint": "8.57.0",
"@types/eslint__js": "8.42.3",
"@types/node": "22.1.0",
"eslint": "9.8.0",
"eslint-config-prettier": "9.1.0",
"eslint-define-config": "2.1.0",
"eslint-plugin-unused-imports": "3.2.0",
"eslint-plugin-unused-imports": "4.0.1",
"json5": "2.2.3",
"lint-staged": "15.2.7",
"lint-staged": "15.2.8",
"prettier": "3.3.3",
"simple-git-hooks": "2.11.1",
"tsx": "4.16.2",
"typescript": "5.5.3"
"tsx": "4.16.5",
"typescript": "5.5.4",
"typescript-eslint": "8.0.1"
},
"volta": {
"node": "22.4.0"
},
"packageManager": "pnpm@9.5.0",
"packageManager": "pnpm@9.6.0",
"engineStrict": true,
"engines": {
"node": ">=22"
Expand Down
Loading

0 comments on commit 9582418

Please sign in to comment.