Skip to content

Commit 2e14de4

Browse files
committed
chore(deps-dev): migrate to ESLint v9
1 parent 7c72543 commit 2e14de4

10 files changed

+4918
-1627
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 41 deletions
This file was deleted.

eslint.config.js

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import eslint from '@eslint/js'
2+
import stylistic from '@stylistic/eslint-plugin'
3+
import vueTsEslintConfig from '@vue/eslint-config-typescript'
4+
import pluginVue from 'eslint-plugin-vue'
5+
import globals from 'globals'
6+
import tseslint from 'typescript-eslint'
7+
8+
export default tseslint.config(
9+
{
10+
ignores: ['coverage/', 'dist/', 'temp/'],
11+
},
12+
eslint.configs.recommended,
13+
...tseslint.configs.strict,
14+
...tseslint.configs.stylistic,
15+
...pluginVue.configs['flat/recommended'],
16+
...vueTsEslintConfig(),
17+
{
18+
files: ['**/*.{js,ts,vue}'],
19+
languageOptions: {
20+
globals: {
21+
...globals.browser,
22+
},
23+
},
24+
plugins: {
25+
'@stylistic': stylistic,
26+
},
27+
rules: {
28+
// Interferes with `get [Symbol.toStringTag]`.
29+
'@typescript-eslint/class-literal-property-style': 'off',
30+
// Don't care.
31+
'@typescript-eslint/no-non-null-assertion': 'off',
32+
// Intereferes with assigning Color* object types to `Record<string, unknown>`.
33+
'@typescript-eslint/consistent-type-definitions': 'off',
34+
35+
'@stylistic/comma-dangle': ['error', 'always-multiline'],
36+
'@stylistic/indent': ['error', 'tab'],
37+
'vue/html-indent': ['error', 'tab'],
38+
'@stylistic/semi': ['error', 'never'],
39+
'@stylistic/space-before-function-paren': ['error', 'always'],
40+
'@stylistic/quotes': ['error', 'single'],
41+
},
42+
},
43+
{
44+
files: ['**/*.test.{js,ts}'],
45+
rules: {
46+
'@typescript-eslint/ban-ts-comment': 'off',
47+
},
48+
},
49+
)

0 commit comments

Comments
 (0)