pull/8/head
zjx0905 2020-07-27 12:57:43 +08:00
parent 69cd9de44a
commit 1782abcb2e
3 changed files with 3 additions and 2 deletions

View File

@ -7,5 +7,5 @@ install:
- yarn install
script:
- yarn prettier
- yarn lint
- yarn lint --fix
- yarn coverage

View File

@ -1,3 +1,3 @@
module.exports = {
'*.{ts,tsx}': ['eslint --fix', 'git add'],
'*.{ts,tsx}': ['prettier', 'eslint --fix', 'git add'],
};

View File

@ -13,6 +13,7 @@
"build": "rollup -c",
"lint": "eslint 'src/**/*.{js,ts,tsx}'",
"format": "eslint --fix 'src/**/*.{js,ts,tsx}'",
"prettier": "prettier",
"test": "jest",
"test:watch": "yarn test -- --watch",
"test:cov": "yarn test -- --coverage",