-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade ESLint, vuejs/eslint-config-typescript
Closes #355
- Loading branch information
Showing
61 changed files
with
1,078 additions
and
752 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
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
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
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# https://taskfile.dev | ||
|
||
version: '3' | ||
|
||
tasks: | ||
|
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,52 @@ | ||
import pluginVue from 'eslint-plugin-vue'; | ||
import vueTsEslintConfig from '@vue/eslint-config-typescript'; | ||
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'; | ||
import vueI18n from '@intlify/eslint-plugin-vue-i18n'; | ||
|
||
export default [ | ||
{ | ||
name: 'app/files-to-lint', | ||
files: ['**/*.{ts,mts,tsx,vue,js,jsx,cjs,mjs,cts}'], | ||
}, | ||
|
||
{ | ||
name: 'app/files-to-ignore', | ||
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**', 'translations/**', 'Taskfile.yml'], | ||
}, | ||
|
||
...vueI18n.configs['flat/recommended'], | ||
{ | ||
rules: { | ||
'@intlify/vue-i18n/no-raw-text': 'off', | ||
'@intlify/vue-i18n/no-unused-keys': [ | ||
'error', | ||
{ | ||
extensions: ['.ts', '.js', '.vue'], | ||
}, | ||
], | ||
}, | ||
settings: { | ||
'vue-i18n': { | ||
localeDir: { | ||
pattern: './translations/ui/*.yml', // extension is glob formatting! | ||
localeKey: 'file', // or 'path' or 'key' | ||
}, | ||
// Specify the version of `vue-i18n` you are using. | ||
// If not specified, the message will be parsed twice. | ||
messageSyntaxVersion: '^10.0.1', | ||
}, | ||
}, | ||
}, | ||
|
||
...pluginVue.configs['flat/essential'], | ||
...vueTsEslintConfig(), | ||
skipFormatting, | ||
|
||
{ | ||
files: ['**/*.json'], | ||
rules: { | ||
// Turn off rules | ||
'@typescript-eslint/no-unused-expressions': 'off', | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.