|
5 | 5 | "repository": "hudovisk/react-optimize", |
6 | 6 | "license": "MIT", |
7 | 7 | "scripts": { |
| 8 | + "lint:fix": "yarn lint --fix", |
| 9 | + "lint": "eslint src/ test/", |
8 | 10 | "test:node": "mocha --require @babel/register test/test.node.js", |
9 | 11 | "test:browser": "cross-env NODE_ENV=test karma start", |
10 | | - "test": "yarn run test:node && yarn run test:browser", |
| 12 | + "test": "yarn run test:node && yarn run test:browser && yarn run lint", |
11 | 13 | "build": "webpack", |
12 | 14 | "watch": "webpack --watch", |
13 | 15 | "prepublishOnly": "yarn run build" |
14 | 16 | }, |
15 | 17 | "husky": { |
16 | 18 | "hooks": { |
17 | | - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
| 19 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", |
| 20 | + "pre-commit": "yarn run lint" |
18 | 21 | } |
19 | 22 | }, |
20 | 23 | "devDependencies": { |
|
26 | 29 | "@babel/register": "^7.4.0", |
27 | 30 | "@commitlint/cli": "^8.2.0", |
28 | 31 | "@commitlint/config-conventional": "^8.2.0", |
| 32 | + "babel-eslint": "^10.0.3", |
29 | 33 | "babel-loader": "^8.0.4", |
30 | 34 | "chai": "^4.2.0", |
31 | 35 | "cross-env": "^6.0.3", |
32 | 36 | "enzyme": "^3.9.0", |
33 | 37 | "enzyme-adapter-react-16": "^1.12.1", |
| 38 | + "eslint": "^6.7.2", |
| 39 | + "eslint-config-prettier": "^6.7.0", |
| 40 | + "eslint-plugin-prettier": "^3.1.1", |
| 41 | + "eslint-plugin-react": "^7.17.0", |
34 | 42 | "husky": "^3.1.0", |
35 | 43 | "karma": "^4.1.0", |
36 | 44 | "karma-chrome-launcher": "^3.1.0", |
|
40 | 48 | "karma-sourcemap-loader": "^0.3.7", |
41 | 49 | "karma-webpack": "^4.0.2", |
42 | 50 | "mocha": "^6.1.3", |
| 51 | + "prettier": "^1.19.1", |
43 | 52 | "react": "^16.8.6", |
44 | 53 | "react-dom": "^16.8.6", |
45 | 54 | "semantic-release": "^15.13.3", |
|
0 commit comments