devops
parent
69cd9de44a
commit
1782abcb2e
|
@ -7,5 +7,5 @@ install:
|
||||||
- yarn install
|
- yarn install
|
||||||
script:
|
script:
|
||||||
- yarn prettier
|
- yarn prettier
|
||||||
- yarn lint
|
- yarn lint --fix
|
||||||
- yarn coverage
|
- yarn coverage
|
|
@ -1,3 +1,3 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
'*.{ts,tsx}': ['eslint --fix', 'git add'],
|
'*.{ts,tsx}': ['prettier', 'eslint --fix', 'git add'],
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
"lint": "eslint 'src/**/*.{js,ts,tsx}'",
|
"lint": "eslint 'src/**/*.{js,ts,tsx}'",
|
||||||
"format": "eslint --fix 'src/**/*.{js,ts,tsx}'",
|
"format": "eslint --fix 'src/**/*.{js,ts,tsx}'",
|
||||||
|
"prettier": "prettier",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:watch": "yarn test -- --watch",
|
"test:watch": "yarn test -- --watch",
|
||||||
"test:cov": "yarn test -- --coverage",
|
"test:cov": "yarn test -- --coverage",
|
||||||
|
|
Loading…
Reference in New Issue