Skip to content

Commit 1c49d5f

Browse files
Add eslint and prettier
1 parent 4099457 commit 1c49d5f

10 files changed

+5550
-13
lines changed

.eslintrc.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"env": {
3+
"node": true
4+
},
5+
"parser": "@typescript-eslint/parser",
6+
"parserOptions": {
7+
"sourceType": "module"
8+
},
9+
"plugins": ["import", "simple-import-sort", "node", "@typescript-eslint"],
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:import/typescript",
13+
"plugin:@typescript-eslint/eslint-recommended",
14+
"plugin:@typescript-eslint/recommended",
15+
"plugin:prettier/recommended",
16+
"prettier"
17+
],
18+
"rules": {
19+
"import/no-cycle": "error",
20+
"node/no-extraneous-import": "error",
21+
"@typescript-eslint/ban-ts-ignore": "off",
22+
"@typescript-eslint/ban-ts-comment": "off",
23+
"@typescript-eslint/explicit-module-boundary-types": "off",
24+
"@typescript-eslint/explicit-function-return-type": "off",
25+
"@typescript-eslint/no-use-before-define": "off",
26+
"@typescript-eslint/interface-name-prefix": "off",
27+
"@typescript-eslint/member-delimiter-style": "off",
28+
"@typescript-eslint/no-explicit-any": "error",
29+
"@typescript-eslint/no-non-null-assertion": "error",
30+
"simple-import-sort/imports": "error",
31+
"simple-import-sort/exports": "error"
32+
},
33+
"overrides": [
34+
{
35+
"files": ["test/**"],
36+
"rules": {
37+
"@typescript-eslint/no-non-null-assertion": "off"
38+
}
39+
}
40+
]
41+
}

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ dist/
44
coverage/
55
node_modules/
66
yarn.lock
7-
package-lock.json
87
*.log
98
.deps
109
.tested*

.prettierrc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"trailingComma": "es5",
3+
"singleQuote": true,
4+
"semi": false
5+
}

0 commit comments

Comments
 (0)