-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.js
More file actions
53 lines (49 loc) · 1.5 KB
/
Copy patheslint.config.js
File metadata and controls
53 lines (49 loc) · 1.5 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
import eslint from "@eslint/js";
import tsEslint from "typescript-eslint";
const ignores = ["build/**/*", "node_modules/**/*", "coverage/**/*", "docs/**/*", ".claude/**/*", ".claude-flow/**/*", "compat/**/*"];
const stylisticConfig = {
rules: {
"lines-around-comment": ["error", { beforeBlockComment: false }],
quotes: [
"error",
"double",
{
allowTemplateLiterals: true,
avoidEscape: true,
},
],
},
};
const config = tsEslint.config(
{
ignores,
},
eslint.configs.recommended,
stylisticConfig,
{
files: ["**/*.ts"],
extends: tsEslint.configs.strict,
languageOptions: {
parserOptions: {
project: "tsconfig.json",
},
},
rules: {
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-empty-object-type": "error",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-extraneous-class": "off",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-unnecessary-condition": "warn",
"@typescript-eslint/no-unsafe-function-type": "off",
"@typescript-eslint/no-wrapper-object-types": "error",
"@typescript-eslint/prefer-literal-enum-member": "off",
"@typescript-eslint/return-await": "error",
"no-return-await": "off",
useUnknownInCatchVariables: "off",
},
}
);
export default config;