-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
39 lines (39 loc) · 1.05 KB
/
.eslintrc.js
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
32
33
34
35
36
37
38
39
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: ["@nuxtjs/eslint-config-typescript", "plugin:nuxt/recommended", "plugin:vue/recommended", "plugin:prettier/recommended"],
plugins: ["vue", "@typescript-eslint"],
rules: {
"no-console": "warn",
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"vue/multiline-html-element-content-newline": "off",
"vue/padding-line-between-blocks": ["error", "always"],
"vue/multi-word-component-names": "off",
"vue/script-indent": [
"error",
2,
{
baseIndent: 1,
switchCase: 1,
ignores: [],
},
],
"padding-line-between-statements": [
"error",
{ blankLine: "always", prev: "import", next: "*" },
{ blankLine: "any", prev: "import", next: "import" },
{ blankLine: "always", prev: "*", next: "return" },
],
"prettier/prettier": [
"error",
{
arrowParens: "always",
singleQuote: false,
},
],
},
};