Skip to content

Commit

Permalink
chore: upgrade eslint to version 9
Browse files Browse the repository at this point in the history
  • Loading branch information
xfsnowind committed Dec 27, 2024
1 parent 9a52c38 commit e402782
Show file tree
Hide file tree
Showing 5 changed files with 1,072 additions and 1,141 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintrc.js

This file was deleted.

25 changes: 25 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import tsParser from '@typescript-eslint/parser'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

export default [
{
ignores: ['**/dist', '**/node_modules'],
},
...compat.extends('eslint-config-prettier'),
{
languageOptions: {
parser: tsParser,
},
},
]
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,32 +24,34 @@
"webpack-merge": "^5.10.0"
},
"devDependencies": {
"@babel/core": "^7.24.4",
"@babel/preset-env": "^7.24.4",
"@babel/preset-typescript": "^7.24.1",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.17.0",
"@jest/globals": "^29.7.0",
"@rspack/core": "1.1.8",
"@rspack/dev-server": "1.0.10",
"@types/debug": "^4.1.12",
"@types/fs-extra": "^11.0.4",
"@types/jest": "^29.5.12",
"@types/lodash": "^4.17.0",
"@typescript-eslint/parser": "^6.21.0",
"@typescript-eslint/parser": "^8.18.2",
"babel-jest": "^29.7.0",
"cross-env": "^7.0.3",
"cypress": "^13.17.0",
"debug": "^4.3.4",
"eslint": "^8.57.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.0.0",
"fs-extra": "9.1.0",
"jest": "^29.7.0",
"lodash": "^4.17.21",
"path": "^0.12.7",
"prettier": "^3.1.0",
"prettier": "^3.4.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"webpack": "5.76.0",
"typescript": "^5.7.2"
"typescript": "^5.7.2",
"webpack": "5.76.0"
},
"files": [
"dist"
Expand Down
Loading

0 comments on commit e402782

Please sign in to comment.