-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (42 loc) · 1015 Bytes
/
.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
40
41
42
module.exports = {
root: true,
env: {
node: true,
browser: true,
},
parser: "vue-eslint-parser",
parserOptions: {
ecmaFeatures: {
legacyDecorators: true,
},
sourceType: "module",
ecmaVersion: 2020,
parser: "@typescript-eslint/parser",
},
plugins: ["@typescript-eslint", "vue"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/recommended",
"prettier/@typescript-eslint", // Disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
"plugin:prettier/recommended", // Make sure this is always the last configuration in the extends array.
],
ignorePatterns: [
"node_modules",
"*.d.ts",
"generated",
"static/*",
"dist",
"build",
"nuxt",
],
rules: {
"prettier/prettier": "error",
"space-before-function-paren": 0,
quotes: [
"error",
"double",
{ avoidEscape: true, allowTemplateLiterals: false },
],
},
};