-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to eslint flat config file (#8)
- Loading branch information
1 parent
f2ea88a
commit dcfee27
Showing
5 changed files
with
1,767 additions
and
1,813 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}] | ||
charset = utf-8 | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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,30 @@ | ||
import pluginVue from 'eslint-plugin-vue' | ||
import vueTsEslintConfig from '@vue/eslint-config-typescript' | ||
import pluginVitest from '@vitest/eslint-plugin' | ||
|
||
export default [ | ||
{ | ||
name: 'app/files-to-lint', | ||
files: ['**/*.{ts,mts,tsx,vue}'], | ||
}, | ||
|
||
{ | ||
name: 'app/files-to-ignore', | ||
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'], | ||
}, | ||
|
||
...pluginVue.configs['flat/essential'], | ||
...vueTsEslintConfig(), | ||
|
||
{ | ||
...pluginVitest.configs.recommended, | ||
files: [ | ||
'tests/**/*.{j,t}s?(x)', | ||
'src/**/__tests__/*' | ||
], | ||
rules: { | ||
'@typescript-eslint/no-unused-expressions': 'off' | ||
}, | ||
}, | ||
|
||
] |
Oops, something went wrong.