|
16 | 16 | "node": ">=4" |
17 | 17 | }, |
18 | 18 | "scripts": { |
19 | | - "commitmsg": "conventional-changelog-lint -e", |
20 | | - "postpublish": "conventional-changelog -i changelog.md -s -r 0 && git commit -am \"chore(changelog): Update changelog\"", |
21 | | - "patch": "np patch --any-branch", |
22 | | - "minor": "np minor --any-branch", |
23 | | - "major": "np major --any-branch", |
24 | | - "clean": "rm -rf lib && mkdir lib", |
25 | | - "build": "npm run clean && babel src/ -d lib/", |
26 | | - "prepublish": "npm run build", |
27 | | - "lintjs": "eslint ./src/*.js ./test/*.js", |
28 | | - "lintmd": "eslint --ext md --rule indent: [error, 4] .", |
29 | | - "pretest": "clinton && npm run lintjs && npm run lintmd", |
| 19 | + "version": "conventional-changelog -i changelog.md -s -r 0 && git commit -am \"build: update changelog\"", |
| 20 | + "prepare": "npm run build", |
| 21 | + "build": "rimraf lib && babel src -d lib", |
30 | 22 | "test": "nyc ava", |
31 | | - "update": "updtr && ava-codemods --force", |
32 | | - "testen": "testen -n -- ava" |
| 23 | + "lintjs": "eslint ./src/*.js ./test/*.js --fix", |
| 24 | + "lintmd": "eslint *.md --fix", |
| 25 | + "pretest": "clinton && npm run lintjs && npm run lintmd", |
| 26 | + "update": "updtr && ava-codemods --force" |
33 | 27 | }, |
34 | 28 | "files": [ |
35 | 29 | "lib/" |
|
41 | 35 | "css" |
42 | 36 | ], |
43 | 37 | "dependencies": { |
44 | | - "postcss": "^5.2.17" |
| 38 | + "postcss": "^7.0.14" |
45 | 39 | }, |
46 | 40 | "devDependencies": { |
| 41 | + "@babel/cli": "^7.2.3", |
| 42 | + "@babel/core": "^7.2.2", |
| 43 | + "@babel/preset-env": "^7.3.1", |
| 44 | + "@babel/register": "^7.0.0", |
| 45 | + "@commitlint/cli": "^7.4.0", |
| 46 | + "@commitlint/config-angular": "^7.3.1", |
47 | 47 | "ava": "*", |
48 | | - "babel-cli": "^6.24.1", |
49 | | - "ava-codemods": "^0.3.2", |
50 | | - "babel-eslint": "^7.2.2", |
51 | | - "babel-plugin-add-module-exports": "^0.2.1", |
52 | | - "babel-preset-babili": "^0.1.2", |
53 | | - "babel-preset-env": "^1.3.2", |
54 | | - "babel-register": "^6.24.1", |
55 | | - "clinton": "^0.12.0", |
56 | | - "conventional-changelog-cli": "^1.3.1", |
57 | | - "coveralls": "^2.13.0", |
58 | | - "conventional-changelog-lint": "^1.1.8", |
59 | | - "eslint": "^3.19.0", |
60 | | - "eslint-config-xo": "^0.18.2", |
61 | | - "eslint-formatter-pretty": "^1.0.0", |
62 | | - "eslint-plugin-ava": "^4.2.0", |
63 | | - "eslint-plugin-babel": "^4.1.1", |
64 | | - "eslint-plugin-markdown": "^1.0.0-beta.4", |
| 48 | + "babel-eslint": "^10.0.1", |
| 49 | + "babel-plugin-add-module-exports": "^1.0.0", |
| 50 | + "babel-preset-minify": "^0.5.0", |
| 51 | + "clinton": "^0.14.0", |
| 52 | + "conventional-changelog-cli": "^2.0.12", |
| 53 | + "coveralls": "^3.0.3", |
| 54 | + "eslint": "^5.12.1", |
| 55 | + "eslint-config-xo": "^0.26.0", |
| 56 | + "eslint-config-xo-space": "^0.21.0", |
| 57 | + "eslint-plugin-ava": "^6.0.0", |
| 58 | + "eslint-plugin-babel": "^5.3.0", |
| 59 | + "eslint-plugin-dependencies": "^2.4.0", |
| 60 | + "eslint-plugin-html": "^5.0.0", |
| 61 | + "eslint-plugin-markdown": "^1.0.0", |
65 | 62 | "eslint-plugin-require-path-exists": "^1.1.5", |
66 | | - "eslint-plugin-xo": "^1.0.0", |
67 | | - "husky": "^0.13.4", |
68 | | - "np": "^2.13.2", |
69 | | - "nyc": "^10.2.0", |
70 | | - "testen": "^2.2.0", |
71 | | - "updtr": "^0.2.3" |
| 63 | + "eslint-plugin-unicorn": "^8.0.1", |
| 64 | + "husky": "^1.3.1", |
| 65 | + "lint-staged": "^8.1.1", |
| 66 | + "nyc": "^13.1.0", |
| 67 | + "rimraf": "^2.6.3" |
| 68 | + }, |
| 69 | + "husky": { |
| 70 | + "hooks": { |
| 71 | + "pre-push": "npm t", |
| 72 | + "pre-commit": "clinton && lint-staged", |
| 73 | + "commit-msg": "commitlint --extends=@commitlint/config-angular -e" |
| 74 | + } |
| 75 | + }, |
| 76 | + "lint-staged": { |
| 77 | + "{src,test}/**/*.js": "eslint", |
| 78 | + "*.md": "eslint" |
72 | 79 | }, |
73 | | - "testen": { |
74 | | - "node": [ |
75 | | - "4", |
76 | | - "5", |
77 | | - "6", |
78 | | - "7" |
| 80 | + "ava": { |
| 81 | + "require": [ |
| 82 | + "@babel/register" |
79 | 83 | ] |
80 | 84 | }, |
81 | 85 | "babel": { |
82 | 86 | "presets": [ |
83 | 87 | [ |
84 | | - "env", |
| 88 | + "@babel/preset-env", |
85 | 89 | { |
86 | 90 | "targets": { |
87 | 91 | "node": 4 |
88 | 92 | } |
89 | 93 | } |
90 | 94 | ], |
91 | | - "babili" |
| 95 | + [ |
| 96 | + "minify", |
| 97 | + { |
| 98 | + "removeUndefined": false, |
| 99 | + "mangle": false |
| 100 | + } |
| 101 | + ] |
92 | 102 | ], |
93 | 103 | "plugins": [ |
94 | 104 | "add-module-exports" |
95 | 105 | ] |
96 | 106 | }, |
97 | | - "ava": { |
98 | | - "require": [ |
99 | | - "babel-register" |
100 | | - ] |
101 | | - }, |
102 | 107 | "eslintConfig": { |
103 | | - "format": "node_modules/eslint-formatter-pretty", |
104 | 108 | "parser": "babel-eslint", |
105 | 109 | "plugins": [ |
106 | | - "ava", |
107 | | - "xo", |
| 110 | + "dependencies", |
| 111 | + "html", |
| 112 | + "unicorn", |
108 | 113 | "babel", |
109 | | - "require-path-exists", |
110 | 114 | "markdown" |
111 | 115 | ], |
112 | 116 | "extends": [ |
| 117 | + "plugin:unicorn/recommended", |
113 | 118 | "xo", |
114 | | - "plugin:xo/recommended", |
115 | | - "plugin:ava/recommended" |
116 | | - ] |
| 119 | + "xo-space" |
| 120 | + ], |
| 121 | + "rules": { |
| 122 | + "capitalized-comments": "off" |
| 123 | + } |
117 | 124 | }, |
118 | 125 | "clinton": { |
119 | 126 | "ignores": [ |
|
123 | 130 | "*.{html,jpg}" |
124 | 131 | ], |
125 | 132 | "rules": { |
126 | | - "pkg-main": [ |
127 | | - "off" |
128 | | - ], |
129 | | - "xo": [ |
130 | | - "off" |
131 | | - ] |
| 133 | + "pkg-main": "off", |
| 134 | + "xo": "off" |
132 | 135 | } |
133 | 136 | } |
134 | 137 | } |
0 commit comments