-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypescript.js
34 lines (34 loc) · 1.29 KB
/
typescript.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
module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "simple-import-sort"],
rules: {
semi: ["error", "always"],
"prettier/prettier": ["error", { singleQuote: true }],
"@typescript-eslint/indent": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/prefer-interface": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-floating-promises": ["error"],
"@typescript-eslint/member-ordering": 2,
"@typescript-eslint/explicit-module-boundary-types": "off",
"simple-import-sort/imports": "error",
"sort-imports": "off",
"no-restricted-syntax": [
"error",
{
"selector": "Identifier[name=createQueryRunner]",
"message": "Do not use `createQueryRunner`, use `query` of the `entityManager` instead."
}
]
},
};