forked from storyblok/nuxt-ultimate-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
52 lines (52 loc) · 1.41 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
40
41
42
43
44
45
46
47
48
49
50
51
52
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
"./node_modules/eslint-config-airbnb-base/rules/best-practices.js",
"./node_modules/eslint-config-airbnb-base/rules/errors.js",
"./node_modules/eslint-config-airbnb-base/rules/es6.js",
"./node_modules/eslint-config-airbnb-base/rules/imports.js",
"./node_modules/eslint-config-airbnb-base/rules/node.js",
// './node_modules/eslint-config-airbnb-base/rules/strict.js',
"./node_modules/eslint-config-airbnb-base/rules/variables.js",
"@nuxtjs/eslint-config-typescript",
"./node_modules/eslint-config-airbnb-base/rules/style.js",
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
"max-len": ["error", { code: 240 }],
"import/no-extraneous-dependencies": [
"error",
{
devDependencies: false,
optionalDependencies: false,
peerDependencies: false,
},
],
"vue/multi-word-component-names": "off",
"import/extensions": [2, "never"],
"linebreak-style": "off",
"no-underscore-dangle": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"vue/script-indent": ["error", 2, {
"baseIndent": 1,
"switchCase": 1,
"ignores": []
}],
},
overrides: [
{
"files": ["*.vue"],
"rules": {
"indent": "off"
}
}
],
};