Skip to content

Commit

Permalink
chore(defaults): update (#930)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Apr 26, 2019
1 parent b8d3eae commit 0c8a23b
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 62 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/BUG.md
Expand Up @@ -33,7 +33,7 @@ about: Something went awry and you'd like to tell us about it.

```js
// webpack.config.js
// If your bitchin' code blocks are over 20 lines, please paste a link to a gist
// If your code blocks are over 20 lines, please paste a link to a gist
// (https://gist.github.com).
```

Expand Down
5 changes: 5 additions & 0 deletions .prettierrc.js
@@ -0,0 +1,5 @@
module.exports = {
singleQuote: true,
trailingComma: 'es5',
arrowParens: 'always',
};
19 changes: 19 additions & 0 deletions babel.config.js
@@ -0,0 +1,19 @@
const MIN_BABEL_VERSION = 7;

module.exports = (api) => {
api.assertVersion(MIN_BABEL_VERSION);
api.cache(true);

return {
presets: [
[
'@babel/preset-env',
{
targets: {
node: '6.9.0',
},
},
],
],
};
};
3 changes: 3 additions & 0 deletions commitlint.config.js
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};
6 changes: 6 additions & 0 deletions husky.config.js
@@ -0,0 +1,6 @@
module.exports = {
hooks: {
'pre-commit': 'lint-staged',
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
},
};
6 changes: 6 additions & 0 deletions lint-staged.config.js
@@ -0,0 +1,6 @@
module.exports = {
ignore: ['package-lock.json'],
linters: {
'*.js': ['eslint --fix', 'git add'],
},
};
63 changes: 39 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 3 additions & 37 deletions package.json
Expand Up @@ -58,7 +58,7 @@
"@babel/preset-env": "^7.1.6",
"@commitlint/cli": "^7.2.1",
"@commitlint/config-conventional": "^7.1.2",
"@webpack-contrib/defaults": "^3.0.0",
"@webpack-contrib/defaults": "^4.0.1",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^24.1.0",
"cross-env": "^5.2.0",
Expand All @@ -70,7 +70,7 @@
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-prettier": "^3.0.0",
"file-loader": "^3.0.1",
"husky": "^1.2.0",
"husky": "^2.1.0",
"jest": "^24.1.0",
"jest-junit": "^6.3.0",
"lint-staged": "^8.1.0",
Expand All @@ -90,39 +90,5 @@
"loader",
"url",
"import"
],
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "6.9.0"
}
}
]
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"prettier": {
"singleQuote": true,
"trailingComma": "es5",
"arrowParens": "always"
}
]
}

0 comments on commit 0c8a23b

Please sign in to comment.