|
20 | 20 | "build": "textlint-scripts build", |
21 | 21 | "lint": "eslint --fix src test", |
22 | 22 | "unittest": "textlint-scripts test", |
23 | | - "prettier": "prettier --write \"**/*.{js,json,md}\"", |
24 | | - "prepublish": "npm run --if-present build", |
| 23 | + "prepublish": "yarn run --if-present build", |
25 | 24 | "test": "npm-run-all lint unittest", |
26 | | - "watch": "textlint-scripts build --watch" |
27 | | - }, |
28 | | - "husky": { |
29 | | - "hooks": { |
30 | | - "pre-commit": "lint-staged" |
31 | | - } |
| 25 | + "watch": "textlint-scripts build --watch", |
| 26 | + "format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"", |
| 27 | + "prepare": "git config --local core.hooksPath .githooks" |
32 | 28 | }, |
33 | 29 | "lint-staged": { |
34 | | - "*.js": [ |
35 | | - "prettier", |
36 | | - "git add" |
37 | | - ], |
38 | | - "*.json": [ |
39 | | - "prettier", |
40 | | - "git add" |
| 30 | + "*.{js,jsx,ts,tsx,css}": [ |
| 31 | + "prettier --write" |
41 | 32 | ] |
42 | 33 | }, |
43 | 34 | "dependencies": { |
|
50 | 41 | "textlint-rule-helper": "^2.1.1" |
51 | 42 | }, |
52 | 43 | "devDependencies": { |
53 | | - "eslint": "^6.5.1", |
54 | | - "eslint-config-airbnb-base": "^14.0.0", |
55 | | - "eslint-config-prettier": "^6.4.0", |
| 44 | + "eslint": "^8.25.0", |
| 45 | + "eslint-config-airbnb-base": "^15.0.0", |
| 46 | + "eslint-config-prettier": "^8.5.0", |
56 | 47 | "eslint-plugin-immutable": "^1.0.0", |
57 | | - "eslint-plugin-import": "^2.18.2", |
58 | | - "husky": "^3.0.9", |
59 | | - "lint-staged": "^9.4.2", |
| 48 | + "eslint-plugin-import": "^2.26.0", |
| 49 | + "lint-staged": "^13.0.3", |
60 | 50 | "npm-run-all": "^4.1.5", |
61 | | - "prettier": "^1.18.2", |
62 | | - "textlint": "^11.4.0", |
63 | | - "textlint-scripts": "^3.0.0", |
64 | | - "textlint-tester": "^5.1.10" |
| 51 | + "prettier": "^2.7.1", |
| 52 | + "textlint": "^12.2.2", |
| 53 | + "textlint-scripts": "^12.2.2", |
| 54 | + "textlint-tester": "^12.2.2" |
65 | 55 | }, |
66 | 56 | "engines": { |
67 | 57 | "node": ">=4" |
68 | 58 | }, |
69 | | - "packageManager": "[email protected]" |
| 59 | + "packageManager": "[email protected]", |
| 60 | + "prettier": { |
| 61 | + "singleQuote": false, |
| 62 | + "printWidth": 120, |
| 63 | + "tabWidth": 4, |
| 64 | + "trailingComma": "none" |
| 65 | + } |
70 | 66 | } |
0 commit comments