-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
31 lines (30 loc) · 1.09 KB
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import withNuxt from "./.nuxt/eslint.config.mjs";
import globals from "globals";
import pluginJs from "@eslint/js";
import pluginVue from "eslint-plugin-vue";
import stylistic from "@stylistic/eslint-plugin";
export default withNuxt([
stylistic.configs["recommended-flat"],
pluginJs.configs.recommended,
...pluginVue.configs["flat/recommended"],
{ "files": ["**/*.{js,mjs,cjs,vue,ts}"] },
{
"plugins": {
"@stylistic": stylistic,
},
"languageOptions": { "globals": globals.browser },
"rules": {
"vue/multi-word-component-names": "off",
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"@stylistic/quotes": ["error", "double"],
"@stylistic/quote-props": "off",
"@stylistic/comma-dangle": "off",
"@stylistic/semi": ["error", "always"],
"@stylistic/arrow-parens": ["error", "always"],
"@stylistic/brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"function-call-argument-newline": ["error", "never"],
"vue/require-default-prop": "off",
},
}, // Your custom configs here
]);