-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
105 lines (104 loc) · 2.6 KB
/
index.js
File metadata and controls
105 lines (104 loc) · 2.6 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
98
99
100
101
102
103
104
105
/** @type {import("eslint/lib/shared/types")} */
module.exports = {
settings: {
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
"import/resolver": {
typescript: {
alwaysTryTypes: true,
project: ["tsconfig.json", "package/tsconfig.json"],
},
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
},
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
},
parser: "@typescript-eslint/parser",
extends: [
"airbnb-base",
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
parserOptions: { project: "./tsconfig.json" },
ignorePatterns: [
"node_modules",
"dist",
"jest.config.ts",
"*.spec.ts",
"*.test.ts",
"build.[jt]s",
],
plugins: ["import", "@typescript-eslint"],
root: true,
overrides: [
{
files: ["*.ts", "*.tsx"],
rules: {
"no-undef": "off",
},
},
],
rules: {
"no-shadow": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-unnecessary-type-constraint": "off",
"@typescript-eslint/quotes": [
"error",
"double",
{ avoidEscape: true, allowTemplateLiterals: true },
],
"@typescript-eslint/return-await": "off",
"@typescript/return-await": "off",
"class-methods-use-this": "off",
"consistent-return": "off",
"default-case": "off",
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
},
],
"import/no-cycle": "off",
"import/no-extraneous-dependencies": [
"error",
{ devDependencies: ["**/*.test.[jt]s", "**/*.spec.[jt]s", "build.[jt]s"] },
],
"import/order": [
"error",
{
groups: [
"builtin",
"external",
"internal",
"index",
["sibling", "parent"],
"unknown",
"type",
],
},
],
"import/prefer-default-export": "off",
"max-classes-per-file": "off",
"no-await-in-loop": "off",
"no-console": "off",
"no-continue": "off",
"no-nested-ternary": "off",
"no-param-reassign": ["error", { props: false }],
"no-promise-executor-return": "off",
"no-restricted-globals": "off",
"no-restricted-syntax": "off",
"no-return-await": "off",
"no-underscore-dangle": "off",
"object-curly-newline": "off",
},
};