Skip to content

Commit

Permalink
build: move config to file
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Nov 21, 2019
1 parent 559a05f commit cd39a59
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 45 deletions.
14 changes: 14 additions & 0 deletions .clintonrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"ignores": [
"test/**",
"tmp/**",
"lib/**",
"dist/**",
"docs/**",
"*.{html,jpg}"
],
"rules": {
"pkg-main": "off",
"xo": "off"
}
}
9 changes: 3 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{json,yml,jade,pss,css,html,js}]
[{package.json,*.yml,*.jade,*.pss,*.css,*.js,*.md,.*}]
indent_size = 2

[changelog.md]
insert_final_newline = false

[*.html]
[{changelog.md,.*}]
insert_final_newline = false

[*.md]
trim_trailing_whitespace = false
trim_trailing_whitespace = false
7 changes: 7 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hooks": {
"pre-push": "npm t",
"pre-commit": "clinton && lint-staged",
"commit-msg": "commitlint --extends=@commitlint/config-angular -e"
}
}
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"{src,test}/*.js": "eslint",
"*.md": "eslint"
}
6 changes: 6 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"nyc": {
"reporter": ["lcov", "text-summary"],
"extension": [".js", ".vue"]
}
}
8 changes: 8 additions & 0 deletions ava.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
files: [
"test/test-*.js"
],
require: [
"./test/helpers/setup.js"
]
}
39 changes: 0 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,45 +80,6 @@
"vue": "^2.6.10",
"vue-template-compiler": "^2.6.10"
},
"husky": {
"hooks": {
"pre-push": "npm t",
"pre-commit": "clinton && lint-staged",
"commit-msg": "commitlint --extends=@commitlint/config-angular -e"
}
},
"lint-staged": {
"{src,test}/*.js": "eslint",
"*.md": "eslint"
},
"ava": {
"files": [
"test/test-*.js"
],
"require": [
"./test/helpers/setup.js"
]
},
"nyc": {
"extension": [
".js",
".vue"
]
},
"clinton": {
"ignores": [
"test/**",
"tmp/**",
"lib/**",
"dist/**",
"docs/**",
"*.{html,jpg}"
],
"rules": {
"pkg-main": "off",
"xo": "off"
}
},
"funding": {
"type": "patreon",
"url": "https://patreon.com/scrums"
Expand Down

0 comments on commit cd39a59

Please sign in to comment.