-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
97 lines (96 loc) · 1.83 KB
/
.eslintrc.js
File metadata and controls
97 lines (96 loc) · 1.83 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
module.exports = {
root: true,
env: {
"es6": true,
node: true,
},
plugins: [
'prettier',
],
extends: [
'airbnb-typescript',
"prettier",
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/typescript/recommended",
"@vue/prettier",
"@vue/prettier/@typescript-eslint",
],
parserOptions: {
ecmaVersion: 2020,
project: './tsconfig.json'
},
rules: {
"prettier/prettier": "error",
"import/prefer-default-export": "off",
"arrow-body-style": "off",
"class-methods-use-this": "off",
"no-restricted-syntax": "off",
"react/static-property-placement": "off",
"no-continue": "off",
"no-console": "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"vue/require-valid-default-prop": "off",
"import/no-unresolved": "off",
},
overrides: [
{
// TypeScript
files: ["**/*.ts"],
parser: '@typescript-eslint/parser',
plugins: [
'prettier',
],
extends: [
'airbnb-typescript',
"prettier"
],
"env": {
"es6": true,
"node": true
},
parserOptions: {
project: './tsconfig.json'
},
rules: {
"prettier/prettier": "error",
"import/prefer-default-export": "off",
"arrow-body-style": "off",
"class-methods-use-this": "off",
"no-restricted-syntax": "off",
"react/static-property-placement": "off",
"no-continue": "off",
"no-plusplus": "off",
"no-console": "off",
}
},
{
files: [
"**/__tests__/*.{j,t}s?(x)",
"**/tests/unit/**/*.spec.{j,t}s?(x)",
],
env: {
mocha: true,
},
},
{
files: ["scripts/**/*.js"],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'script',
project: "./tsconfig.eslint.json",
},
plugins: [
'prettier',
],
extends: [
"eslint:recommended",
"prettier"
],
"env": {
"es6": true,
"node": true
},
},
],
};