Skip to content

Commit 9a94d2f

Browse files
committed
improve prettier config
1 parent 5416794 commit 9a94d2f

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

.eslintrc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = {
99
'eslint:recommended',
1010
'plugin:@typescript-eslint/recommended',
1111
'prettier',
12-
'prettier/@typescript-eslint'
12+
'prettier/@typescript-eslint',
13+
'plugin:prettier/recommended'
1314
],
1415
};

.prettierrc

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

package-lock.json

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"types": "dist/index.d.ts",
77
"scripts": {
88
"build": "rm -rf dist && tsc",
9-
"lint": "eslint . --ext .ts",
9+
"lint": "eslint src --ext .ts",
1010
"test": "echo \"Error: no test specified\" && exit 1"
1111
},
1212
"repository": {
@@ -29,6 +29,7 @@
2929
"@typescript-eslint/parser": "^4.9.1",
3030
"eslint": "^7.15.0",
3131
"eslint-config-prettier": "^7.0.0",
32+
"eslint-plugin-prettier": "^3.2.0",
3233
"prettier": "^2.2.1",
3334
"typescript": "^4.1.3"
3435
}

0 commit comments

Comments
 (0)