Skip to content

Commit

Permalink
chore(eslint): upgrade typescript eslint v7 (#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon authored Feb 13, 2024
1 parent 9596bb4 commit 0e45dca
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 99 deletions.
12 changes: 3 additions & 9 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import globals from 'globals'
import tsEsLintPlugin from '@typescript-eslint/eslint-plugin'
import tsEsLintParser from '@typescript-eslint/parser'
import tseslint from 'typescript-eslint'
import eslintConfigPrettier from 'eslint-config-prettier'
import { FlatCompat } from '@eslint/eslintrc'
const compat = new FlatCompat()

export default [
// Ignores
Expand Down Expand Up @@ -31,19 +28,16 @@ export default [
files: ['**/*.js', '**/*.ts', '**/*.vue', '**/*.json'],
languageOptions: {
globals: globals.node,
parser: tsEsLintParser,
parserOptions: { sourceType: 'module' }
}
},

// Extends
...compat.extends('plugin:@typescript-eslint/recommended'),
...compat.extends('plugin:@typescript-eslint/eslint-recommended'),
...tseslint.configs.recommended,
eslintConfigPrettier,

// TS Plugin
// Rules
{
plugins: { '@typescript-eslint': tsEsLintPlugin },
rules: { '@typescript-eslint/ban-ts-comment': 'off' }
}
]
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,11 @@
"@nuxt/module-builder": "^0.5.4",
"@nuxt/schema": "^3.7.4",
"@types/debug": "^4.1.9",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"@unhead/vue": "^1.8.8",
"bumpp": "^9.2.0",
"changelogithub": "^0.13.0",
"consola": "^3",
"eslint": "^8.50.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.0.0",
"execa": "^8.0.1",
"get-port-please": "^3.1.1",
Expand All @@ -130,6 +128,7 @@
"prettier": "^3.0.3",
"ts-essentials": "^9.4.0",
"typescript": "^5.2.2",
"typescript-eslint": "^7.0.1",
"unbuild": "^2.0.0",
"undici": "^6.0.1",
"unhead": "^1.8.8",
Expand Down
Loading

0 comments on commit 0e45dca

Please sign in to comment.