Skip to content

Commit 46cfc84

Browse files
committed
build: move config to file
1 parent 6fc9fcb commit 46cfc84

File tree

8 files changed

+76
-79
lines changed

8 files changed

+76
-79
lines changed

.babelrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
"plugins": [
20+
"add-module-exports"
21+
]
22+
}

.clintonrc.json

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

.editorconfig

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +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]
15-
insert_final_newline = false
16-
17-
[*.html]
14+
[{changelog.md,.*}]
1815
insert_final_newline = false
1916

2017
[*.md]
21-
trim_trailing_whitespace = false
18+
trim_trailing_whitespace = false

.eslintrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parser": "babel-eslint",
3+
"plugins": [
4+
"prettier",
5+
"html",
6+
"unicorn",
7+
"babel",
8+
"markdown"
9+
],
10+
"extends": [
11+
"plugin:ava/recommended",
12+
"plugin:unicorn/recommended",
13+
"xo",
14+
"xo-space"
15+
],
16+
"rules": {
17+
"capitalized-comments": "off"
18+
}
19+
}

.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+
}

ava.config.js

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

package.json

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -72,79 +72,6 @@
7272
"nyc": "^14.1.1",
7373
"rimraf": "^3.0.0"
7474
},
75-
"husky": {
76-
"hooks": {
77-
"pre-push": "npm t",
78-
"pre-commit": "clinton && lint-staged",
79-
"commit-msg": "commitlint --extends=@commitlint/config-angular -e"
80-
}
81-
},
82-
"lint-staged": {
83-
"{src,test}/**/*.js": "eslint",
84-
"*.md": "eslint"
85-
},
86-
"ava": {
87-
"require": [
88-
"@babel/register"
89-
]
90-
},
91-
"babel": {
92-
"presets": [
93-
[
94-
"@babel/preset-env",
95-
{
96-
"targets": {
97-
"node": 8
98-
}
99-
}
100-
],
101-
[
102-
"minify",
103-
{
104-
"removeUndefined": false,
105-
"mangle": false
106-
}
107-
]
108-
],
109-
"plugins": [
110-
"add-module-exports"
111-
]
112-
},
113-
"eslintConfig": {
114-
"parser": "babel-eslint",
115-
"plugins": [
116-
"prettier",
117-
"html",
118-
"unicorn",
119-
"babel",
120-
"markdown"
121-
],
122-
"extends": [
123-
"plugin:ava/recommended",
124-
"plugin:unicorn/recommended",
125-
"xo",
126-
"xo-space"
127-
],
128-
"rules": {
129-
"capitalized-comments": "off"
130-
}
131-
},
132-
"clinton": {
133-
"ignores": [
134-
"test/**",
135-
"tmp/**",
136-
"lib/**",
137-
"*.{html,jpg}"
138-
],
139-
"rules": {
140-
"pkg-main": [
141-
"off"
142-
],
143-
"xo": [
144-
"off"
145-
]
146-
}
147-
},
14875
"funding": {
14976
"type": "patreon",
15077
"url": "https://patreon.com/scrums"

0 commit comments

Comments
 (0)