-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
35 lines (33 loc) · 1.38 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended", // TypeScript-specific rules
"plugin:@typescript-eslint/recommended-requiring-type-checking", // Enables rules that require type information
"prettier" // Uses Prettier for code formatting to avoid conflicts with ESLint
],
"rules": {
// Add or override ESLint rules here
"no-console": "off",
"@typescript-eslint/explicit-function-return-type": "off", // Optional: can be turned on for stricter code
"@typescript-eslint/no-explicit-any": "off", // Warns about using `any` type
"@typescript-eslint/no-floating-promises": "error", // Ensures promises are handled properly
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/no-parameter-properties": 0,
"@typescript-eslint/interface-name-prefix": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-var-requires": "off"
},
"env": {
"es6": true,
"node": true // Enables Node.js global variables
},
"ignorePatterns": ["dist/", "node_modules/"], // Folders to ignore
"settings": {}
}