forked from opentechorg/starname-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (41 loc) · 1.28 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
module.exports = {
//https://codequs.com/p/rk7e07UBV/using-eslint-and-prettier-in-a-typescript-project
parser: "@typescript-eslint/parser",
parserOptions: {
project: [
"./tsconfig.json",
"./packages/*/tsconfig.json"
],
tsconfigRootDir: __dirname,
},
plugins: ["@typescript-eslint", "simple-import-sort", "import"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
],
rules: {
"no-empty": "off",
"no-param-reassign": "warn",
"prefer-const": "warn",
"sort-imports": "off",
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
allowExpressions: true,
},
],
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
},
};