-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade to eslint v9
- Loading branch information
Showing
97 changed files
with
1,317 additions
and
1,272 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -3,7 +3,6 @@ dist | |
.git | ||
.github | ||
.gitignore | ||
.eslintrc | ||
.prettierrc | ||
.eslint.config.mjs | ||
.data | ||
*.md |
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 |
---|---|---|
|
@@ -27,3 +27,4 @@ dist-ssr | |
# Misc | ||
.env | ||
.data | ||
.eslintcache |
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,51 @@ | ||
import js from '@eslint/js'; | ||
import vueI18n from '@intlify/eslint-plugin-vue-i18n'; | ||
import vuePrettier from '@vue/eslint-config-prettier'; | ||
import prettier from 'eslint-plugin-prettier/recommended'; | ||
import vue from 'eslint-plugin-vue'; | ||
import ts from 'typescript-eslint'; | ||
import importX from 'eslint-plugin-import-x'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
|
||
export default [ | ||
prettier, | ||
js.configs.recommended, | ||
...ts.configs.recommended, | ||
...vue.configs['flat/recommended'], | ||
...vueI18n.configs['flat/recommended'], | ||
vuePrettier, | ||
importX.flatConfigs.recommended, | ||
importX.flatConfigs.typescript, | ||
{ | ||
files: ['**/*.{vue,ts,js,mjs}'], | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
parserOptions: { | ||
extraFileExtensions: ['.vue'], | ||
parser: tsParser | ||
} | ||
}, | ||
settings: { | ||
'vue-i18n': { | ||
localeDir: 'src/i18n/locales/*.json' | ||
} | ||
}, | ||
rules: { | ||
'vue/multi-word-component-names': 'off', | ||
'vue/require-default-prop': 'off', | ||
'vue/no-v-html': 'off', | ||
'import-x/no-unresolved': 'off', | ||
'no-console': 'error', | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
jsonRecursiveSort: true, | ||
printWidth: 120, | ||
singleQuote: true, | ||
trailingComma: 'none' | ||
} | ||
] | ||
} | ||
} | ||
]; |
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
Oops, something went wrong.