|
@@ -2,11 +2,11 @@
|
|
|
"name": "pokemon_trade",
|
|
"name": "pokemon_trade",
|
|
|
"private": true,
|
|
"private": true,
|
|
|
"scripts": {
|
|
"scripts": {
|
|
|
- "coverage": "npm test -- --coverage",
|
|
|
|
|
- "lint": "npx eslint app/javascript/packs",
|
|
|
|
|
- "prettier": "npx prettier app/javascript/packs/**/* --write",
|
|
|
|
|
- "eslint": "npx eslint app/javascript/packs --fix",
|
|
|
|
|
- "lint:fix": "npm run prettier && npm run eslint",
|
|
|
|
|
|
|
+ "coverage": "yarn test -- --coverage",
|
|
|
|
|
+ "eslint:fix": "yarn eslint app/javascript/packs spec/javascript --ext js,jsx --fix",
|
|
|
|
|
+ "lint": "yarn eslint app/javascript/packs spec/javascript --ext js,jsx",
|
|
|
|
|
+ "lint:fix": "yarn prettier:fix && yarn eslint:fix",
|
|
|
|
|
+ "prettier:fix": "yarn prettier \"app/javascript/**/*.js{,x}\" \"spec/javascript\" \".prettierrc.js\" \".eslintrc.js\" --write",
|
|
|
"test": "jest --verbose false",
|
|
"test": "jest --verbose false",
|
|
|
"test:update_snapshots": "jest --updateSnapshot",
|
|
"test:update_snapshots": "jest --updateSnapshot",
|
|
|
"test:watch": "jest --watchAll"
|
|
"test:watch": "jest --watchAll"
|