-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps-dev): migrate to ESLint v9
- Loading branch information
1 parent
7c72543
commit 2e14de4
Showing
10 changed files
with
4,918 additions
and
1,627 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import eslint from '@eslint/js' | ||
import stylistic from '@stylistic/eslint-plugin' | ||
import vueTsEslintConfig from '@vue/eslint-config-typescript' | ||
import pluginVue from 'eslint-plugin-vue' | ||
import globals from 'globals' | ||
import tseslint from 'typescript-eslint' | ||
|
||
export default tseslint.config( | ||
{ | ||
ignores: ['coverage/', 'dist/', 'temp/'], | ||
}, | ||
eslint.configs.recommended, | ||
...tseslint.configs.strict, | ||
...tseslint.configs.stylistic, | ||
...pluginVue.configs['flat/recommended'], | ||
...vueTsEslintConfig(), | ||
{ | ||
files: ['**/*.{js,ts,vue}'], | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
}, | ||
}, | ||
plugins: { | ||
'@stylistic': stylistic, | ||
}, | ||
rules: { | ||
// Interferes with `get [Symbol.toStringTag]`. | ||
'@typescript-eslint/class-literal-property-style': 'off', | ||
// Don't care. | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
// Intereferes with assigning Color* object types to `Record<string, unknown>`. | ||
'@typescript-eslint/consistent-type-definitions': 'off', | ||
|
||
'@stylistic/comma-dangle': ['error', 'always-multiline'], | ||
'@stylistic/indent': ['error', 'tab'], | ||
'vue/html-indent': ['error', 'tab'], | ||
'@stylistic/semi': ['error', 'never'], | ||
'@stylistic/space-before-function-paren': ['error', 'always'], | ||
'@stylistic/quotes': ['error', 'single'], | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.test.{js,ts}'], | ||
rules: { | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
}, | ||
}, | ||
) |
Oops, something went wrong.