-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (43 loc) · 1.26 KB
/
.eslintrc.js
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
module.exports = {
env: {
node: true,
es2021: true,
},
extends: [
"airbnb-base",
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
overrides: [],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: "./tsconfig.json",
},
plugins: ["@typescript-eslint", "prettier"],
ignorePatterns: ["node_modules", "resources", "dist", "drizzle.config.ts", "vitest.config.mjs"],
rules: {
"prettier/prettier": [
"warn",
{
endOfLine: "auto",
},
],
"no-console": "warn",
"linebreak-style": "off",
"no-nested-ternary": "off",
radix: "off",
"no-underscore-dangle": "off",
"import/prefer-default-export": "off",
"class-methods-use-this": "off",
"@typescript-eslint/dot-notation": "off",
"require-await": ["error"],
"@typescript-eslint/no-floating-promises": ["error"],
"no-await-in-loop": ["off"],
"import/no-cycle": "warn",
"no-restricted-syntax": "off",
},
}
// if you change any rule then reload the window