mirror of
https://github.com/wharfkit/web-renderer.git
synced 2026-07-21 17:03:31 +00:00
Added format command and cleaned up prettier config
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
lib
|
||||
node_modules
|
||||
test/public/*.js*
|
||||
+3
-3
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user