|
25 | 25 | "version:major": "npm run prevesion && lerna version major --force-publish=* --no-git-tag-version -m \"chore(versions): publish packages %s\"", |
26 | 26 | "release:force": "lerna publish from-package --yes", |
27 | 27 | "release": "lerna publish", |
28 | | - "lint": "eslint \"packages/!(docs)/**/*.js\" \"scripts/**/*.js\"", |
29 | | - "tslint": "npm run tslint:once && onchange 'packages/**/*.ts' -- npm run tslint:once", |
30 | | - "tslint:once": "tslint --fix --project ./ ", |
| 28 | + "lint": "eslint --ext .ts,.tsx,.js \"packages/!(docs)/**/src/**/*.@(ts|tsx)\" \"scripts/**/*.js\" --fix", |
31 | 29 | "postinstall": "opencollective-postinstall" |
32 | 30 | }, |
33 | 31 | "devDependencies": { |
|
44 | 42 | "@babel/preset-react": "^7.0.0", |
45 | 43 | "@babel/register": "^7.0.0", |
46 | 44 | "@babel/runtime-corejs3": "^7.2.0", |
| 45 | + "@testing-library/react": "^8.0.0", |
| 46 | + "@typescript-eslint/eslint-plugin": "^1.11.0", |
| 47 | + "@typescript-eslint/parser": "^1.11.0", |
47 | 48 | "all-contributors-cli": "^6.1.2", |
48 | 49 | "antd": "^3.17.0", |
49 | 50 | "babel-eslint": "^10.0.1", |
|
57 | 58 | "cz-conventional-changelog": "^2.1.0", |
58 | 59 | "doc-scripts": "^1.7.24", |
59 | 60 | "eslint": "^5.16.0", |
60 | | - "eslint-config-standard": "^12.0.0", |
61 | | - "eslint-config-standard-react": "^7.0.2", |
| 61 | + "eslint-config-prettier": "^6.0.0", |
62 | 62 | "eslint-plugin-import": "^2.13.0", |
63 | 63 | "eslint-plugin-node": "^7.0.1", |
| 64 | + "eslint-plugin-prettier": "^3.1.0", |
64 | 65 | "eslint-plugin-promise": "^4.0.0", |
65 | | - "eslint-plugin-react": "^7.13.0", |
66 | | - "eslint-plugin-react-hooks": "^1.0.2", |
67 | | - "eslint-plugin-standard": "^4.0.0", |
| 66 | + "eslint-plugin-react": "^7.14.2", |
| 67 | + "eslint-plugin-react-hooks": "^1.6.1", |
68 | 68 | "execa": "^1.0.0", |
69 | 69 | "findup": "^0.1.5", |
70 | 70 | "fs-extra": "^7.0.1", |
|
79 | 79 | "jest-watch-lerna-packages": "^1.1.0", |
80 | 80 | "json5": "^2.1.0", |
81 | 81 | "lerna": "^3.10.1", |
| 82 | + "lint-staged": "^8.2.1", |
82 | 83 | "majo": "^0.7.1", |
83 | 84 | "onchange": "^5.2.0", |
84 | | - "prettier-eslint-cli": "^4.7.1", |
| 85 | + "prettier": "^1.18.2", |
85 | 86 | "pretty-format": "^24.0.0", |
86 | 87 | "react": "^16.8.3", |
87 | 88 | "react-dom": "^16.8.3", |
88 | | - "@testing-library/react": "^8.0.0", |
89 | 89 | "remark-parse": "^6.0.3", |
90 | 90 | "remark-stringify": "^6.0.4", |
91 | 91 | "semver-regex": "^2.0.0", |
92 | 92 | "staged-git-files": "^1.1.2", |
93 | 93 | "ts-jest": "^24.0.2", |
94 | 94 | "tsconfig-paths-webpack-plugin": "^3.2.0", |
95 | | - "tslint": "^5.16.0", |
96 | | - "tslint-config-prettier": "^1.18.0", |
97 | 95 | "typescript": "^3.4.5", |
98 | 96 | "unified": "^7.1.0", |
99 | 97 | "user-event": "^1.4.4", |
100 | 98 | "webpack": "^4.27.1" |
101 | 99 | }, |
102 | 100 | "config": { |
103 | 101 | "ghooks": { |
104 | | - "pre-commit": "prettier-eslint \"./(packages|scripts)/**.js\" --write && npm run lint", |
| 102 | + "pre-commit": "lint-staged", |
105 | 103 | "commit-msg": "node ./scripts/validate-commit-msg.js" |
106 | 104 | }, |
107 | 105 | "commitizen": { |
108 | 106 | "path": "./node_modules/cz-conventional-changelog" |
109 | 107 | } |
110 | 108 | }, |
| 109 | + "lint-staged": { |
| 110 | + "packages/!(docs)/**/*.@(ts|tsx)": [ |
| 111 | + "eslint --ext .ts,.tsx --fix", |
| 112 | + "git add" |
| 113 | + ], |
| 114 | + "scripts/**/*.js": [ |
| 115 | + "eslint --fix", |
| 116 | + "git add" |
| 117 | + ] |
| 118 | + }, |
111 | 119 | "dependencies": { |
112 | | - "opencollective-postinstall": "^2.0.2", |
113 | | - "opencollective": "^1.0.3" |
| 120 | + "opencollective": "^1.0.3", |
| 121 | + "opencollective-postinstall": "^2.0.2" |
114 | 122 | }, |
115 | 123 | "collective": { |
116 | 124 | "type": "opencollective", |
|
0 commit comments