36 lines
822 B
JavaScript
36 lines
822 B
JavaScript
import globals from "globals";
|
|
import pluginJs from "@eslint/js";
|
|
import pluginVue from "eslint-plugin-vue";
|
|
|
|
export default [
|
|
{
|
|
files: ["**/*.{js,mjs,cjs,vue}"],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
describe: "readonly",
|
|
beforeEach: "readonly",
|
|
it: "readonly",
|
|
expect: "readonly",
|
|
jest: "readonly"
|
|
},
|
|
},
|
|
},
|
|
pluginJs.configs.recommended,
|
|
...pluginVue.configs['flat/essential'],
|
|
{
|
|
rules: {
|
|
"no-unused-vars": ["warn", {
|
|
"varsIgnorePattern": "^_",
|
|
"argsIgnorePattern": "^_"
|
|
}],
|
|
"vue/no-unused-vars": "warn",
|
|
"vue/valid-v-slot": "off",
|
|
"vue/no-deprecated-v-bind-sync": "warn",
|
|
"no-undef": ["error", {
|
|
"typeof": false
|
|
}]
|
|
}
|
|
}
|
|
]; |