Skip to content

Commit 301a3d2

Browse files
chore(defaults): update
1 parent b8d3eae commit 301a3d2

8 files changed

+82
-63
lines changed

.github/ISSUE_TEMPLATE/BUG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ about: Something went awry and you'd like to tell us about it.
3333

3434
```js
3535
// webpack.config.js
36-
// If your bitchin' code blocks are over 20 lines, please paste a link to a gist
36+
// If your code blocks are over 20 lines, please paste a link to a gist
3737
// (https://gist.github.com).
3838
```
3939

.prettierrc.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
singleQuote: true,
3+
trailingComma: 'es5',
4+
arrowParens: 'always',
5+
};

babel.config.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const MIN_BABEL_VERSION = 7;
2+
3+
module.exports = (api) => {
4+
api.assertVersion(MIN_BABEL_VERSION);
5+
api.cache(true);
6+
7+
return {
8+
presets: [
9+
[
10+
'@babel/preset-env',
11+
{
12+
targets: {
13+
node: '6.9.0',
14+
},
15+
},
16+
],
17+
],
18+
};
19+
};

commitlint.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
};

husky.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
hooks: {
3+
'pre-commit': 'lint-staged',
4+
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
5+
},
6+
};

lint-staged.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
ignore: ['package-lock.json'],
3+
linters: {
4+
'*.js': ['eslint --fix', 'git add'],
5+
},
6+
};

package-lock.json

+39-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-38
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"start": "npm run build -- -w",
1616
"prebuild": "npm run clean",
1717
"build": "cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js' --copy-files",
18-
"postbuild": "es-check es5 dist/runtime/*.js",
1918
"clean": "del-cli dist",
2019
"commitlint": "commitlint --from=master",
2120
"lint": "eslint --cache src test",
@@ -58,7 +57,7 @@
5857
"@babel/preset-env": "^7.1.6",
5958
"@commitlint/cli": "^7.2.1",
6059
"@commitlint/config-conventional": "^7.1.2",
61-
"@webpack-contrib/defaults": "^3.0.0",
60+
"@webpack-contrib/defaults": "^4.0.1",
6261
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
6362
"babel-jest": "^24.1.0",
6463
"cross-env": "^5.2.0",
@@ -70,7 +69,7 @@
7069
"eslint-plugin-import": "^2.14.0",
7170
"eslint-plugin-prettier": "^3.0.0",
7271
"file-loader": "^3.0.1",
73-
"husky": "^1.2.0",
72+
"husky": "^2.1.0",
7473
"jest": "^24.1.0",
7574
"jest-junit": "^6.3.0",
7675
"lint-staged": "^8.1.0",
@@ -90,39 +89,5 @@
9089
"loader",
9190
"url",
9291
"import"
93-
],
94-
"babel": {
95-
"presets": [
96-
[
97-
"@babel/preset-env",
98-
{
99-
"targets": {
100-
"node": "6.9.0"
101-
}
102-
}
103-
]
104-
]
105-
},
106-
"husky": {
107-
"hooks": {
108-
"pre-commit": "lint-staged",
109-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
110-
}
111-
},
112-
"lint-staged": {
113-
"*.js": [
114-
"eslint --fix",
115-
"git add"
116-
]
117-
},
118-
"commitlint": {
119-
"extends": [
120-
"@commitlint/config-conventional"
121-
]
122-
},
123-
"prettier": {
124-
"singleQuote": true,
125-
"trailingComma": "es5",
126-
"arrowParens": "always"
127-
}
92+
]
12893
}

0 commit comments

Comments
 (0)