Skip to content

Commit 84bc232

Browse files
committed
Add Prettier
1 parent 60694f4 commit 84bc232

File tree

5 files changed

+93
-14
lines changed

5 files changed

+93
-14
lines changed

.eslintrc.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,10 @@
44
"env": {
55
"node": true
66
},
7-
"plugins": [
8-
"@typescript-eslint",
9-
"typescript-sort-keys",
10-
"sort-keys-fix",
11-
"unused-imports"
12-
],
13-
"extends": [
14-
"eslint:recommended",
15-
"plugin:@typescript-eslint/recommended",
16-
"plugin:typescript-sort-keys/recommended"
17-
],
7+
"plugins": ["@typescript-eslint", "typescript-sort-keys", "sort-keys-fix", "unused-imports", "prettier"],
8+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:typescript-sort-keys/recommended"],
189
"rules": {
19-
"object-curly-spacing": ["warn", "always"],
20-
"@typescript-eslint/explicit-module-boundary-types": "off",
2110
"@typescript-eslint/no-explicit-any": "off",
22-
"@typescript-eslint/no-inferrable-types": "off",
2311
"unused-imports/no-unused-imports": "warn",
2412
"unused-imports/no-unused-vars": "warn"
2513
}

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/dist/

.prettierrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 120,
3+
"singleQuote": true,
4+
"trailingComma": "all"
5+
}

package-lock.json

Lines changed: 83 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@
2525
"@typescript-eslint/parser": "4.28.0",
2626
"eslint": "7.29.0",
2727
"eslint-plugin-import": "2.23.4",
28+
"eslint-plugin-prettier": "4.0.0",
2829
"eslint-plugin-sort-keys-fix": "1.1.1",
2930
"eslint-plugin-typescript-sort-keys": "1.7.0",
3031
"eslint-plugin-unused-imports": "1.1.1",
32+
"prettier": "2.4.0",
3133
"ts-node": "10.0.0",
3234
"typescript": "3.9.10"
3335
}

0 commit comments

Comments
 (0)