Skip to content

Commit 1776022

Browse files
committed
chore: fix eslint can't run cjs
1 parent 11e9f91 commit 1776022

File tree

4 files changed

+32
-20
lines changed

4 files changed

+32
-20
lines changed

.eslintrc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"plugin:@typescript-eslint/recommended",
5+
"prettier"
6+
],
7+
"parserOptions": {
8+
"sourceType": "module"
9+
},
10+
"rules": {
11+
"prettier/prettier": "error",
12+
"max-len": [
13+
"error",
14+
{
15+
"code": 140,
16+
"ignoreComments": true
17+
}
18+
],
19+
"curly": 2
20+
},
21+
"plugins": [
22+
"@typescript-eslint",
23+
"prettier"
24+
]
25+
}

.eslintrc.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"trailingComma": "es5",
5+
"arrowParens": "always",
6+
"printWidth": 80
7+
}

.prettierrc.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)