Skip to content

Commit fd39ed8

Browse files
committed
build: update dep dev and move config to file
1 parent 8a7b8c6 commit fd39ed8

File tree

8 files changed

+66
-71
lines changed

8 files changed

+66
-71
lines changed

.babelrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"node": 8
8+
}
9+
}
10+
],
11+
[
12+
"minify",
13+
{
14+
"removeUndefined": false,
15+
"mangle": false
16+
}
17+
]
18+
]
19+
}

.clintonrc.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"ignores": [
3+
"test/**",
4+
"tmp/**",
5+
"lib/**",
6+
".idea/**",
7+
"*.{html,jpg}"
8+
],
9+
"rules": {
10+
"cli": "off",
11+
"xo": "off",
12+
"ava": "off"
13+
}
14+
}

.editorconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
1010

11-
[*.{json,yml,jade,pss,css,html,js}]
11+
[{package.json,*.yml,*.jade,*.pss,*.css,*.js,*.md,.*}]
1212
indent_size = 2
1313

14-
[changelog.md]
14+
[{changelog.md,.*}]
1515
insert_final_newline = false
1616

1717
[*.md]
18-
trim_trailing_whitespace = false
18+
trim_trailing_whitespace = false

.huskyrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hooks": {
3+
"pre-push": "npm t",
4+
"pre-commit": "clinton && lint-staged",
5+
"commit-msg": "commitlint --extends=@commitlint/config-angular -e"
6+
}
7+
}

.lintstagedrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"{src,test}/**/*.js": "eslint",
3+
"*.md": "eslint"
4+
}

.posthtmlrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugins": {
3+
"posthtml-custom-elements": {}
4+
}
5+
}

ava.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
files: ['test/test-*'],
3+
require: [
4+
"@babel/register"
5+
]
6+
}

package.json

Lines changed: 8 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"build": "rimraf lib && babel src -d lib",
2424
"coverage": "nyc report --reporter=text-lcov | coveralls",
2525
"pretest": "npm run build",
26-
"test": "nyc ava"
26+
"test": "nyc ava --verbose"
2727
},
2828
"files": [
2929
"lib/"
@@ -35,9 +35,9 @@
3535
],
3636
"dependencies": {
3737
"cosmiconfig": "^6.0.0",
38-
"fast-glob": "^3.1.1",
38+
"fast-glob": "^3.2.0",
3939
"make-dir": "^3.0.0",
40-
"meow": "^6.0.0",
40+
"meow": "^6.0.1",
4141
"merge-options": "^2.0.0",
4242
"posthtml": "^0.12.0",
4343
"to-camel-case": "^1.0.0"
@@ -59,16 +59,16 @@
5959
"coveralls": "^3.0.9",
6060
"cpy": "^8.0.0",
6161
"eslint": "^6.8.0",
62-
"eslint-config-xo": "^0.27.2",
63-
"eslint-config-xo-space": "^0.22.0",
64-
"eslint-plugin-ava": "^10.0.0",
62+
"eslint-config-xo": "^0.29.1",
63+
"eslint-config-xo-space": "^0.24.0",
64+
"eslint-plugin-ava": "^10.2.0",
6565
"eslint-plugin-babel": "^5.3.0",
6666
"eslint-plugin-html": "^6.0.0",
6767
"eslint-plugin-import": "^2.20.0",
6868
"eslint-plugin-markdown": "^1.0.1",
6969
"eslint-plugin-node": "^11.0.0",
7070
"eslint-plugin-promise": "^4.1.1",
71-
"eslint-plugin-unicorn": "^15.0.1",
71+
"eslint-plugin-unicorn": "^16.1.1",
7272
"execa": "^4.0.0",
7373
"husky": "^4.0.10",
7474
"is-promise": "^2.1.0",
@@ -82,65 +82,5 @@
8282
"rimraf": "^3.0.0",
8383
"tempfile": "^3.0.0"
8484
},
85-
"readme": "posthtml/posthtml-cli/readme",
86-
"husky": {
87-
"hooks": {
88-
"pre-push": "npm t",
89-
"pre-commit": "clinton && lint-staged",
90-
"commit-msg": "commitlint --extends=@commitlint/config-angular -e"
91-
}
92-
},
93-
"lint-staged": {
94-
"{src,test}/**/*.js": "eslint",
95-
"*.md": "eslint"
96-
},
97-
"ava": {
98-
"files": [
99-
"test/test-*"
100-
],
101-
"require": [
102-
"@babel/register"
103-
]
104-
},
105-
"babel": {
106-
"presets": [
107-
[
108-
"@babel/preset-env",
109-
{
110-
"targets": {
111-
"node": 8
112-
}
113-
}
114-
],
115-
[
116-
"minify",
117-
{
118-
"removeUndefined": false,
119-
"mangle": false
120-
}
121-
]
122-
]
123-
},
124-
"posthtml": {
125-
"plugins": {
126-
"posthtml-custom-elements": {}
127-
}
128-
},
129-
"clinton": {
130-
"ignores": [
131-
"test/**",
132-
"tmp/**",
133-
"lib/**",
134-
".idea/**",
135-
"*.{html,jpg}"
136-
],
137-
"rules": {
138-
"cli": [
139-
"off"
140-
],
141-
"xo": [
142-
"off"
143-
]
144-
}
145-
}
85+
"readme": "posthtml/posthtml-cli/readme"
14686
}

0 commit comments

Comments
 (0)