Skip to content

Commit 1b78ee7

Browse files
committedSep 27, 2020
chore: add and fix prettier
1 parent 200ae16 commit 1b78ee7

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed
 

‎.eslintrc.js

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ module.exports = {
66
},
77
extends: [
88
'plugin:@typescript-eslint/recommended',
9+
'prettier/@typescript-eslint',
10+
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
911
],
1012
rules: {},
1113
};

‎.prettierrc.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
semi: true,
3+
trailingComma: "all",
4+
singleQuote: true,
5+
printWidth: 120,
6+
tabWidth: 2,
7+
};

‎package-lock.json

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

‎package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@
5050
"jest": "24.9.0",
5151
"lint-staged": "^10.4.0",
5252
"ts-jest": "^26.3.0",
53-
"typescript": "^4.0.2"
53+
"typescript": "^4.0.2",
54+
"prettier": "^2.1.1"
5455
},
5556
"dependencies": {
5657
"xmldom": "^0.3.0"
5758
}
58-
}
59+
}

0 commit comments

Comments
 (0)
Please sign in to comment.