-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 适配 eslint v9 更新, 兼容低版本 node (#1930)
* fix: eslint v9 版本配置文件更新
- Loading branch information
1 parent
d8e36ab
commit fae6f41
Showing
4 changed files
with
29 additions
and
24 deletions.
There are no files selected for viewing
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,25 @@ | ||
import js from '@eslint/js' | ||
import pluginVue from 'eslint-plugin-vue' | ||
import globals from "globals" | ||
|
||
export default [ | ||
js.configs.recommended, | ||
...pluginVue.configs['flat/essential'], | ||
{ | ||
name: 'app/files-to-lint', | ||
files: ['**/*.{js,mjs,jsx,vue}'], | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: "module", | ||
globals: globals.node | ||
}, | ||
rules: { | ||
"vue/max-attributes-per-line" : 0, | ||
"vue/no-v-model-argument" : 0 | ||
}, | ||
}, | ||
{ | ||
name: 'app/files-to-ignore', | ||
ignores: ['**/dist/**', '**/build/*.js', '**/src/assets/**', '**/public/**'], | ||
}, | ||
] |
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