Skip to content

Commit

Permalink
chore(deps-dev): migrate to ESLint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinfreund committed Oct 19, 2024
1 parent 7c72543 commit 2e14de4
Show file tree
Hide file tree
Showing 10 changed files with 4,918 additions and 1,627 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

41 changes: 0 additions & 41 deletions .eslintrc.cjs

This file was deleted.

49 changes: 49 additions & 0 deletions eslint.config.js
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',
},
},
)
Loading

0 comments on commit 2e14de4

Please sign in to comment.