Added format command and cleaned up prettier config

This commit is contained in:
Aaron Cox
2023-01-24 15:09:54 -05:00
parent f138413da3
commit fb4f5272a4
3 changed files with 10 additions and 3 deletions
+3
View File
@@ -0,0 +1,3 @@
lib
node_modules
test/public/*.js*
+3 -3
View File
@@ -1,8 +1,8 @@
arrowParens: "always"
arrowParens: 'always'
bracketSpacing: false
endOfLine: "lf"
endOfLine: 'lf'
printWidth: 100
semi: false
singleQuote: true
tabWidth: 4
trailingComma: "es5"
trailingComma: 'es5'
+4
View File
@@ -14,6 +14,10 @@ test: node_modules
coverage: node_modules
@TS_NODE_PROJECT='./test/tsconfig.json' ./node_modules/.bin/nyc --reporter=html ./node_modules/.bin/mocha -u tdd -r ts-node/register --extension ts test/*.ts -R nyan && open coverage/index.html
.PHONY: format
format: node_modules
@./node_modules/.bin/prettier -w .
.PHONY: lint
lint: node_modules
@./node_modules/.bin/eslint src --ext .ts --fix