|
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", |
| 19 | + "precommit": "clinton && lint-staged", |
| 20 | + "commitmsg": "commitlint --extends=@commitlint/config-angular -e", |
| 21 | + "postpublish": "conventional-changelog -i changelog.md -s -r 0 && git commit -am \"build: update changelog\"", |
| 22 | + "prepare": "npm run build", |
24 | 23 | "build": "rimraf lib && babel src -d lib",
|
25 |
| - "prepublish": "npm run build", |
26 |
| - "lintjs": "eslint ./{src,test}/*.js", |
27 |
| - "lintmd": "eslint --ext md --rule indent: [error, 4] .", |
28 |
| - "pretest": "clinton && npm run lintjs && npm run lintmd", |
29 | 24 | "test": "nyc ava"
|
30 | 25 | },
|
31 | 26 | "files": [
|
|
48 | 43 | "postcss": "^6.0.1"
|
49 | 44 | },
|
50 | 45 | "devDependencies": {
|
| 46 | + "@commitlint/cli": "^5.2.0", |
| 47 | + "@commitlint/config-angular": "^5.1.1", |
51 | 48 | "ava": "*",
|
52 | 49 | "babel-cli": "^6.24.1",
|
53 | 50 | "babel-eslint": "^8.0.3",
|
54 | 51 | "babel-plugin-add-module-exports": "^0.2.1",
|
55 |
| - "babel-preset-babili": "^0.1.4", |
56 | 52 | "babel-preset-env": "^1.3.2",
|
| 53 | + "babel-preset-minify": "^0.2.0", |
57 | 54 | "babel-register": "^6.24.1",
|
58 | 55 | "clinton": "^0.13.0",
|
59 | 56 | "conventional-changelog-cli": "^1.3.1",
|
60 |
| - "conventional-changelog-lint": "^2.1.1", |
61 | 57 | "coveralls": "^3.0.0",
|
62 | 58 | "eslint": "^4.12.0",
|
63 | 59 | "eslint-config-xo": "^0.19.0",
|
64 | 60 | "eslint-formatter-pretty": "^1.1.0",
|
65 | 61 | "eslint-plugin-ava": "^4.0.1",
|
66 | 62 | "eslint-plugin-babel": "^4.0.1",
|
67 |
| - "eslint-plugin-markdown": "^1.0.0-beta.4", |
68 |
| - "eslint-plugin-xo": "^1.0.0", |
| 63 | + "eslint-plugin-markdown": "^1.0.0-beta.7", |
| 64 | + "eslint-plugin-unicorn": "^3.0.0", |
69 | 65 | "husky": "^0.14.3",
|
70 |
| - "np": "^2.14.1", |
| 66 | + "lint-staged": "^6.0.0", |
71 | 67 | "nyc": "^11.3.0",
|
72 | 68 | "rimraf": "^2.6.1"
|
73 | 69 | },
|
| 70 | + "lint-staged": { |
| 71 | + "*.{js,html}": "eslint", |
| 72 | + "./*.md": "eslint --rule indent: [error, 4] ." |
| 73 | + }, |
| 74 | + "ava": { |
| 75 | + "require": [ |
| 76 | + "babel-register" |
| 77 | + ] |
| 78 | + }, |
74 | 79 | "babel": {
|
75 | 80 | "presets": [
|
76 | 81 | [
|
77 | 82 | "env",
|
78 | 83 | {
|
79 | 84 | "targets": {
|
80 | 85 | "node": 4
|
81 |
| - } |
| 86 | + }, |
| 87 | + "useBuiltIns": true |
82 | 88 | }
|
83 | 89 | ],
|
84 |
| - "babili" |
| 90 | + [ |
| 91 | + "minify", |
| 92 | + { |
| 93 | + "mangle": false |
| 94 | + } |
| 95 | + ] |
85 | 96 | ],
|
86 | 97 | "plugins": [
|
87 | 98 | "add-module-exports"
|
88 | 99 | ]
|
89 | 100 | },
|
90 |
| - "ava": { |
91 |
| - "require": [ |
92 |
| - "babel-register" |
93 |
| - ] |
94 |
| - }, |
95 | 101 | "eslintConfig": {
|
96 |
| - "format": "node_modules/eslint-formatter-pretty", |
97 | 102 | "parser": "babel-eslint",
|
98 | 103 | "plugins": [
|
99 |
| - "ava", |
100 |
| - "xo", |
| 104 | + "html", |
| 105 | + "unicorn", |
101 | 106 | "babel",
|
102 | 107 | "markdown"
|
103 | 108 | ],
|
104 | 109 | "extends": [
|
105 |
| - "xo", |
106 |
| - "plugin:xo/recommended", |
107 |
| - "plugin:ava/recommended" |
108 |
| - ] |
| 110 | + "plugin:unicorn/recommended", |
| 111 | + "xo" |
| 112 | + ], |
| 113 | + "rules": { |
| 114 | + "indent": [ |
| 115 | + 2, |
| 116 | + 4, |
| 117 | + { |
| 118 | + "SwitchCase": 1 |
| 119 | + } |
| 120 | + ], |
| 121 | + "capitalized-comments": "off" |
| 122 | + } |
109 | 123 | },
|
110 | 124 | "clinton": {
|
111 | 125 | "ignores": [
|
|
0 commit comments