Skip to content

Commit b886817

Browse files
committed
fix: eslint extends elsint-config-rubiin
1 parent 3f0d981 commit b886817

23 files changed

+21131
-18306
lines changed

.eslintrc.cjs

+15-125
Original file line numberDiff line numberDiff line change
@@ -2,129 +2,19 @@
22
const { defineConfig } = require("eslint-define-config");
33

44
module.exports = defineConfig({
5-
"parser": "@typescript-eslint/parser",
6-
"parserOptions": {
7-
"createDefaultProgram": false,
8-
"project": "tsconfig.json",
9-
"sourceType": "module",
10-
"tsconfigRootDir": __dirname,
11-
},
12-
"ignorePatterns": ["migrations", "src/generated"],
13-
"plugins": [
14-
"import",
15-
"@typescript-eslint/eslint-plugin",
16-
"unicorn",
17-
"simple-import-sort",
18-
"deprecation"
19-
],
20-
"extends": [
21-
"plugin:import/errors",
22-
"plugin:import/typescript",
23-
"plugin:import/recommended",
24-
"plugin:@typescript-eslint/eslint-recommended",
25-
"plugin:@typescript-eslint/recommended",
26-
"plugin:unicorn/recommended"
27-
],
28-
"root": true,
29-
"settings": {
30-
"import/resolver": {
31-
"typescript": {
32-
"alwaysTryTypes": true,
33-
"project": "./tsconfig.json"
34-
}
35-
},
36-
},
37-
"env": {
38-
"node": true,
39-
"jest": true,
40-
"es6": true,
41-
"browser": false,
42-
},
43-
"rules": {
44-
"deprecation/deprecation": "warn",
45-
"simple-import-sort/imports": "error",
46-
"simple-import-sort/exports": "error",
47-
"no-multiple-empty-lines": ["error", { "max": 1}],
48-
"import/first": "error",
49-
"import/newline-after-import": "error",
50-
"import/no-duplicates": "error",
51-
"no-param-reassign": "error",
52-
"unicorn/filename-case": "error",
53-
"@typescript-eslint/no-non-null-assertion": "off",
54-
"unicorn/no-process-exit": "off",
55-
"no-array-constructor": "error",
56-
"no-mixed-operators": "error",
57-
"import/default": "off",
58-
"@typescript-eslint/no-var-requires": "off",
59-
"no-plusplus": [
60-
"error",
61-
{"allowForLoopAfterthoughts": true}
62-
],
63-
"import/prefer-default": "off",
64-
"unicorn/prevent-abbreviations": [
65-
"error",
66-
{
67-
"ignore": [
68-
"\\.e2e*",
69-
"\\.spec*",
70-
"\\.decorator*",
71-
"\\*idx*",
72-
],
73-
"allowList": {
74-
"ProcessEnv": true,
75-
"UUIDParam": true,
76-
}
77-
}
78-
],
79-
"import/namespace": "off",
80-
"unicorn/no-null": "off",
81-
"unicorn/import-style": "error",
82-
"unicorn/prefer-module": "off",
83-
"unicorn/prefer-top-level-await": "off",
84-
"@typescript-eslint/no-explicit-any": "off",
85-
"@typescript-eslint/explicit-module-boundary-types": "off",
86-
"@typescript-eslint/no-unused-vars": [
87-
"error",
88-
{"argsIgnorePattern": "^_"},
89-
],
90-
"no-multi-spaces": "error",
91-
"linebreak-style": ["error", "unix"],
92-
"newline-before-return": "error",
93-
"no-await-in-loop": "error",
94-
"padding-line-between-statements": [
95-
"error",
96-
{
97-
"blankLine": "always",
98-
"prev": ["const", "let", "var"],
99-
"next": "*",
100-
},
101-
{
102-
"blankLine": "any",
103-
"prev": ["const", "let", "var"],
104-
"next": ["const", "let", "var"],
105-
},
106-
],
107-
"prefer-const": [
108-
"error",
109-
{
110-
"destructuring": "any",
111-
"ignoreReadBeforeAssign": false,
112-
},
113-
],
114-
"quotes": [
115-
"error",
116-
"double",
117-
{
118-
"allowTemplateLiterals": true,
119-
"avoidEscape": true,
120-
},
121-
],
122-
"no-unused-vars": ["error", {"varsIgnorePattern": "^_", "ignoreRestSiblings": true, "argsIgnorePattern": "^_"}],
123-
"no-console": [
124-
"error",
125-
{
126-
"allow": ["warn", "error", "info", "table"],
127-
},
128-
],
129-
}
5+
parser: "@typescript-eslint/parser",
6+
parserOptions: {
7+
project: "tsconfig.json",
8+
},
9+
ignorePatterns: ["migrations", "src/generated"],
10+
extends: ["rubiin"],
11+
root: true,
12+
settings: {
13+
"import/resolver": {
14+
typescript: {
15+
alwaysTryTypes: true,
16+
project: "./tsconfig.json",
17+
},
18+
},
19+
},
13020
});

0 commit comments

Comments
 (0)