migrate to eslint 9
This commit is contained in:
parent
da48e1ecbf
commit
bb2de0f567
5 changed files with 45 additions and 31 deletions
37
eslint.config.mjs
Normal file
37
eslint.config.mjs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
import vue from "eslint-plugin-vue";
|
||||
import js from "@eslint/js";
|
||||
import globals from "globals";
|
||||
|
||||
|
||||
export default [
|
||||
...vue.configs['flat/recommended'],
|
||||
js.configs.recommended,
|
||||
{
|
||||
files: ["**/*.js", "**/*.mjs", "**/*.vue"],
|
||||
ignores: ["build/*.js", "config/*.js"],
|
||||
|
||||
languageOptions: {
|
||||
ecmaVersion: 2024,
|
||||
sourceType: "module",
|
||||
|
||||
parserOptions: {
|
||||
parser: "@babel/eslint-parser",
|
||||
},
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.mocha,
|
||||
...globals.chai,
|
||||
...globals.commonjs,
|
||||
...globals.serviceworker
|
||||
}
|
||||
},
|
||||
|
||||
rules: {
|
||||
'arrow-parens': 0,
|
||||
'generator-star-spacing': 0,
|
||||
'no-debugger': 0,
|
||||
'vue/require-prop-types': 0,
|
||||
'vue/multi-word-component-names': 0,
|
||||
}
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue