forked from Alaanor/beatlist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
67 lines (67 loc) · 1.54 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
"airbnb-base",
"plugin:vue/base",
"plugin:vue/essential",
"plugin:vue/strongly-recommended",
"plugin:vue/recommended",
"plugin:import/typescript",
"plugin:jest/all",
"prettier",
"prettier/@typescript-eslint",
"prettier/vue",
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parserOptions: {
ecmaVersion: 2019,
parser: "@typescript-eslint/parser",
sourceType: "module",
},
plugins: ["vue", "jest", "@typescript-eslint", "vuetify", "prettier"],
rules: {
"prettier/prettier": "error",
"no-console": "off",
"vue/html-closing-bracket-spacing": "off",
"no-underscore-dangle": "off",
"@typescript-eslint/no-unused-vars": "error",
"no-unused-vars": "off",
"vue/no-v-html": "off",
"jest/no-hooks": "off",
"no-param-reassign": "off",
"no-restricted-syntax": [
"error",
"ForInStatement",
"LabeledStatement",
"WithStatement",
],
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
ts: "never",
},
],
"vuetify/no-deprecated-classes": "error",
"vuetify/grid-unknown-attributes": "error",
"vuetify/no-legacy-grid": "error",
},
settings: {
"import/resolver": {
node: {
paths: ["src"],
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
webpack: {
config: "./node_modules/@vue/cli-service/webpack.config.js",
},
},
},
};