-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
49 lines (49 loc) · 1.46 KB
/
.eslintrc.js
File metadata and controls
49 lines (49 loc) · 1.46 KB
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
43
44
45
46
47
48
49
module.exports = {
root: true,
env: {
node: true,
es6: true,
browser: true,
commonjs: true,
},
extends: [
"@nuxtjs",
"prettier",
"prettier/vue",
"plugin:prettier/recommended",
"plugin:nuxt/recommended",
"plugin:vue/strongly-recommended",
"plugin:vue/essential",
"plugin:vue/recommended",
"eslint:recommended",
],
plugins: [
"prettier",
"sort-class-members",
],
// add your custom rules here
rules: {
"array-bracket-newline": ["error", "consistent"],
"array-callback-return": "error",
"array-element-newline": ["error", "consistent"],
"brace-style": ["error", "1tbs"],
"curly": ["error", "all"],
"eol-last": ["error", "always"],
"eqeqeq": ["error", "always"],
"lines-between-class-members": ["error", "always"],
"no-await-in-loop": "error",
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"no-mixed-spaces-and-tabs": "error",
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"no-use-before-define": "error",
"nuxt/no-cjs-in-config": "off",
"vue/html-indent": ["error", 4],
},
parserOptions: {
parser: "babel-eslint",
ecmaVersion: 2017,
sourceType: "module",
},
};