Skip to content

Commit

Permalink
chore: upgrade to eslint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Apr 14, 2024
1 parent 78a0041 commit 8cc9a1b
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 342 deletions.
102 changes: 0 additions & 102 deletions .eslintrc.json

This file was deleted.

10 changes: 10 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @ts-check
import eslint from '@eslint/js'
import tslint from 'typescript-eslint'
import plugin from 'eslint-plugin-eslint-plugin'

export default tslint.config(
eslint.configs.recommended,
...tslint.configs.recommended,
plugin.configs['flat/recommended'],
)
12 changes: 3 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
],
"scripts": {
"generate": "node --loader ts-node/esm/transpile-only ./src/scripts/generate/index.ts",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --fix",
"lint": "eslint . --fix",
"markdownlint": "markdownlint .",
"prepare": "husky install",
"spellcheck": "cspell lint --relative --no-progress '**'",
Expand All @@ -56,21 +56,14 @@
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@commitlint/config-conventional": "^19.2.2",
"@eslint/js": "^9.0.0",
"@masknet/config": "^0.2.1",
"@types/glob": "^8.1.0",
"@types/prettier": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"@typescript-eslint/types": "^7.6.0",
"@typescript-eslint/utils": "^7.6.0",
"commitlint": "^19.2.2",
"cspell": "^8.7.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-plugin": "^6.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-unicorn": "^52.0.0",
"eslint-plugin-unused-imports": "^3.1.0",
"glob": "^10.3.12",
"globals": "^15.0.0",
"husky": "^9.0.11",
Expand All @@ -81,6 +74,7 @@
"ts-dedent": "^2.2.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"typescript-eslint": "^7.6.0",
"vitest": "^1.5.0"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 8cc9a1b

Please sign in to comment.