-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.js
More file actions
55 lines (55 loc) · 1.32 KB
/
Copy pathbase.js
File metadata and controls
55 lines (55 loc) · 1.32 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
module.exports = {
root: true,
env: {
node: true,
},
extends: [
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
plugins: [
"import",
"prettier",
"simple-import-sort",
"@typescript-eslint",
"prefer-arrow-functions",
],
rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"prettier/prettier": "error",
"@typescript-eslint/consistent-type-imports": [
"error",
{
prefer: "type-imports",
},
],
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
"prefer-arrow-functions/prefer-arrow-functions": [
"warn",
{
allowNamedFunctions: false,
classPropertiesAllowed: false,
disallowPrototype: false,
returnStyle: "unchanged",
singleReturnOnly: false,
},
],
},
parserOptions: {
parser: "@typescript-eslint/parser",
},
overrides: [
{
files: ["*.ts"],
parserOptions: {
parser: "@typescript-eslint/parser",
},
},
],
ignorePatterns: ["node_modules", "**/dist/*"],
};