chore: add and fix prettier

This commit is contained in:
Alexandre Nunes 2020-09-27 02:23:15 -03:00
parent 200ae16db3
commit 1b78ee7ca1
4 changed files with 18 additions and 2 deletions

@ -6,6 +6,8 @@ module.exports = {
},
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'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.
],
rules: {},
};

7
.prettierrc.js Normal file

@ -0,0 +1,7 @@
module.exports = {
semi: true,
trailingComma: "all",
singleQuote: true,
printWidth: 120,
tabWidth: 2,
};

6
package-lock.json generated

@ -5027,6 +5027,12 @@
"integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=",
"dev": true
},
"prettier": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.1.2.tgz",
"integrity": "sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==",
"dev": true
},
"prettier-linter-helpers": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz",

@ -50,9 +50,10 @@
"jest": "24.9.0",
"lint-staged": "^10.4.0",
"ts-jest": "^26.3.0",
"typescript": "^4.0.2"
"typescript": "^4.0.2",
"prettier": "^2.1.1"
},
"dependencies": {
"xmldom": "^0.3.0"
}
}
}