-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
47 lines (45 loc) · 1.21 KB
/
Copy patheslint.config.js
File metadata and controls
47 lines (45 loc) · 1.21 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
// Purpose: Defines lint rules for Birbal source and test files.
// Scope: Keeps TypeScript style checks centralized for local development.
import js from "@eslint/js";
import tseslint from "typescript-eslint";
export default tseslint.config(
{
ignores: ["coverage/**", "data/**", "digests/**", "dist/**", "node_modules/**"],
},
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ["src/**/*.ts", "tests/**/*.ts"],
rules: {
eqeqeq: ["error", "always"],
"no-duplicate-imports": [
"error",
{
allowSeparateTypeImports: true,
},
],
"no-regex-spaces": "off",
"no-undef": "off",
"no-var": "error",
"object-shorthand": "error",
"preserve-caught-error": "off",
"prefer-const": "error",
"@typescript-eslint/consistent-type-imports": [
"error",
{
prefer: "type-imports",
},
],
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
ignoreRestSiblings: true,
varsIgnorePattern: "^_",
},
],
},
},
);