Add prettier to make sure things stay nice and clean
This commit is contained in:
parent
c283bb0e61
commit
6868c2fc98
3
.prettierignore
Normal file
3
.prettierignore
Normal file
@ -0,0 +1,3 @@
|
||||
package.json
|
||||
package-lock.json
|
||||
|
||||
6
package-lock.json
generated
6
package-lock.json
generated
@ -2883,6 +2883,12 @@
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"prettier": {
|
||||
"version": "1.14.3",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-1.14.3.tgz",
|
||||
"integrity": "sha512-qZDVnCrnpsRJJq5nSsiHCE3BYMED2OtsI+cmzIzF1QIfqm5ALf8tEJcO27zV1gKNKRPdhjO0dNWnrzssDQ1tFg==",
|
||||
"dev": true
|
||||
},
|
||||
"private": {
|
||||
"version": "0.1.8",
|
||||
"resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz",
|
||||
|
||||
@ -7,7 +7,8 @@
|
||||
"src"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "jasmine"
|
||||
"test": "jasmine",
|
||||
"format_code": "nodejs node_modules/prettier/bin-prettier.js --config ./prettier.config.js --write \"{.,{packages,bin}/**/!(dist)}/*.{js,json,md}\""
|
||||
},
|
||||
"keywords": [
|
||||
"reactive"
|
||||
@ -16,6 +17,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"devDependencies": {
|
||||
"jasmine": "^3.2.0",
|
||||
"jasmine-es6": "^0.4.3"
|
||||
"jasmine-es6": "^0.4.3",
|
||||
"prettier": "^1.14.3"
|
||||
}
|
||||
}
|
||||
|
||||
12
prettier.config.js
Normal file
12
prettier.config.js
Normal file
@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
printWidth: 100,
|
||||
tabWidth: 1,
|
||||
useTabs: true,
|
||||
singleQuote: true,
|
||||
trailingComma: 'none',
|
||||
bracketSpacing: true,
|
||||
semi: true,
|
||||
requirePragma: false,
|
||||
proseWrap: 'always',
|
||||
arrowParens: 'avoid'
|
||||
};
|
||||
Reference in New Issue
Block a user