|
1 | 1 | { |
2 | | - "directories": { |
3 | | - "test": "test" |
4 | | - }, |
5 | | - "author": "azu", |
6 | | - "license": "MIT", |
7 | | - "files": [ |
8 | | - "bin/", |
9 | | - "lib/", |
10 | | - "src/" |
11 | | - ], |
12 | 2 | "name": "create-textlint-rule-example", |
13 | 3 | "version": "1.1.0", |
14 | | - "description": "Create textlint rule example from test codes.", |
15 | | - "main": "lib/index.js", |
16 | | - "bin": { |
17 | | - "create-textlint-rule-example": "bin/cmd.js" |
18 | | - }, |
19 | | - "scripts": { |
20 | | - "test": "mocha test/", |
21 | | - "build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps", |
22 | | - "watch": "babel src --out-dir lib --watch --source-maps", |
23 | | - "prepublish": "npm run --if-present build" |
24 | | - }, |
| 4 | + "description": "A command line tool that create examples from textlint rule's test cases.", |
25 | 5 | "keywords": [ |
26 | 6 | "textlint", |
27 | 7 | "tester", |
28 | 8 | "document", |
29 | 9 | "readme", |
30 | 10 | "example" |
31 | 11 | ], |
| 12 | + "homepage": "https://github.com/textlint/create-textlint-rule-example", |
| 13 | + "bugs": { |
| 14 | + "url": "https://github.com/textlint/create-textlint-rule-example/issues" |
| 15 | + }, |
32 | 16 | "repository": { |
33 | 17 | "type": "git", |
34 | 18 | "url": "https://github.com/textlint/create-textlint-rule-example.git" |
35 | 19 | }, |
36 | | - "bugs": { |
37 | | - "url": "https://github.com/textlint/create-textlint-rule-example/issues" |
| 20 | + "license": "MIT", |
| 21 | + "author": "azu", |
| 22 | + "main": "lib/index.js", |
| 23 | + "type": "module", |
| 24 | + "bin": { |
| 25 | + "create-textlint-rule-example": "bin/cmd.js" |
38 | 26 | }, |
39 | | - "homepage": "https://github.com/textlint/create-textlint-rule-example", |
40 | | - "devDependencies": { |
41 | | - "babel-cli": "^6.24.0", |
42 | | - "babel-register": "^6.24.0", |
43 | | - "babel-preset-jsdoc-to-assert": "^4.0.0", |
44 | | - "babel-preset-power-assert": "^1.0.0", |
45 | | - "cross-env": "^3.2.4", |
46 | | - "mocha": "^3.2.0", |
47 | | - "power-assert": "^1.4.2" |
| 27 | + "directories": { |
| 28 | + "test": "test" |
| 29 | + }, |
| 30 | + "files": [ |
| 31 | + "bin/", |
| 32 | + "src/" |
| 33 | + ], |
| 34 | + "scripts": { |
| 35 | + "test": "mocha test/", |
| 36 | + "format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"", |
| 37 | + "prepare": "git config --local core.hooksPath .githooks" |
48 | 38 | }, |
49 | 39 | "dependencies": { |
50 | | - "babel-core": "^6.24.0", |
51 | | - "babel-preset-latest": "^6.24.0", |
| 40 | + "@babel/core": "^7.0.0", |
| 41 | + "@babel/preset-env": "^7.0.0", |
52 | 42 | "clone": "^2.1.1", |
53 | | - "concat-stream": "^1.6.0", |
| 43 | + "concat-stream": "^2.0.0", |
54 | 44 | "lodash.uniq": "^4.5.0", |
55 | | - "meow": "^3.7.0" |
| 45 | + "meow": "^10.0.0" |
| 46 | + }, |
| 47 | + "devDependencies": { |
| 48 | + "cross-env": "^7.0.3", |
| 49 | + "lint-staged": "^11.0.0", |
| 50 | + "mocha": "^8.4.0", |
| 51 | + "prettier": "^2.3.0" |
| 52 | + }, |
| 53 | + "prettier": { |
| 54 | + "singleQuote": false, |
| 55 | + "printWidth": 120, |
| 56 | + "tabWidth": 4, |
| 57 | + "trailingComma": "none" |
| 58 | + }, |
| 59 | + "lint-staged": { |
| 60 | + "*.{js,jsx,ts,tsx,css}": [ |
| 61 | + "prettier --write" |
| 62 | + ] |
56 | 63 | } |
57 | 64 | } |
0 commit comments