Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Commit 4ea1f0c

Browse files
chore(defaults): update (#407)
1 parent 4c9abe6 commit 4ea1f0c

30 files changed

+1780
-1261
lines changed

.eslintignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
*.snap
2-
/node_modules
1+
/coverage
32
/dist
4-
/examples/build
5-
/coverage/
6-
/test/fixtures
3+
/node_modules
4+
/test/fixtures

.eslintrc.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
module.exports = {
22
root: true,
3-
plugins: ['prettier'],
4-
extends: ['@webpack-contrib/eslint-config-webpack'],
5-
rules: {
6-
'prettier/prettier': ['error'],
7-
},
8-
};
3+
extends: ['@webpack-contrib/eslint-config-webpack', 'prettier'],
4+
};

.github/CONTRIBUTING.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,30 @@ Migration: see webpack/webpack#5225
131131
132132
```
133133

134+
## Testing Your Pull Request
135+
136+
You may have the need to test your changes in a real-world project or dependent
137+
module. Thankfully, Github provides a means to do this. Add a dependency to the
138+
`package.json` for such a project as follows:
139+
140+
```json
141+
{
142+
"devDependencies": {
143+
"uglifyjs-webpack-plugin": "webpack-contrib/uglifyjs-webpack-plugin#{id}/head"
144+
}
145+
}
146+
```
147+
148+
Where `{id}` is the # ID of your Pull Request.
149+
150+
## Contributor License Agreement
151+
152+
When submitting your contribution, a CLA (Contributor License Agreement) bot will come by to verify that you signed the [CLA](https://cla.js.foundation/webpack-contrib/uglifyjs-webpack-plugin).
153+
If it is your first time, it will link you to the right place to sign it.
154+
However, if you have committed your contributions using an email that is not the same as your email used on GitHub, the CLA bot can't accept your contribution.
155+
156+
Run `git config user.email` to see your Git email, and verify it with [your GitHub email](https://github.com/settings/emails).
157+
134158
## Thanks
135159

136160
For your interest, time, understanding, and for following this simple guide.

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
open_collective: webpack

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
existing template types, your issue may be closed as invalid. Our issue
1414
templates contain fields that help us help you, and without that important
1515
info, we might as well be ice-skating uphill, carrying a wooly mammoth.
16-
-->
16+
-->

.github/ISSUE_TEMPLATE/BUG.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 🐛 Bug Report
33
about: Something went awry and you'd like to tell us about it.
4-
54
---
65

76
<!--
@@ -15,11 +14,11 @@ about: Something went awry and you'd like to tell us about it.
1514
Head to StackOverflow or https://gitter.im/webpack/webpack.
1615
-->
1716

18-
* Operating System:
19-
* Node Version:
20-
* NPM Version:
21-
* webpack Version:
22-
* uglifyjs-webpack-plugin Version:
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- uglifyjs-webpack-plugin Version:
2322

2423
### Expected Behavior
2524

@@ -32,13 +31,13 @@ about: Something went awry and you'd like to tell us about it.
3231
### Code
3332

3433
```js
35-
// webpack.config.js
36-
// If your code blocks are over 20 lines, please paste a link to a gist
37-
// (https://gist.github.com).
34+
// webpack.config.js
35+
// If your code blocks are over 20 lines, please paste a link to a gist
36+
// (https://gist.github.com).
3837
```
3938

4039
```js
41-
// additional code, HEY YO remove this block if you don't need it
40+
// additional code, HEY YO remove this block if you don't need it
4241
```
4342

4443
### How Do We Reproduce?

.github/ISSUE_TEMPLATE/DOCS.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 📚 Documentation
33
about: Are the docs lacking or missing something? Do they need some new 🔥 hotness? Tell us here.
4-
54
---
65

76
<!--
@@ -26,5 +25,4 @@ Documentation Is:
2625

2726
### Please Explain in Detail...
2827

29-
30-
### Your Proposal for Changes
28+
### Your Proposal for Changes

.github/ISSUE_TEMPLATE/FEATURE.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: ✨ Feature Request
33
about: Suggest an idea for this project
4-
54
---
65

76
<!--
@@ -15,14 +14,12 @@ about: Suggest an idea for this project
1514
Head to StackOverflow or https://gitter.im/webpack/webpack.
1615
-->
1716

18-
* Operating System:
19-
* Node Version:
20-
* NPM Version:
21-
* webpack Version:
22-
* uglifyjs-webpack-plugin Version:
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- uglifyjs-webpack-plugin Version:
2322

2423
### Feature Proposal
2524

26-
27-
2825
### Feature Use Case
Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 🔧 Modification Request
33
about: Would you like something work differently? Have an alternative approach? This is the template for you.
4-
54
---
65

76
<!--
@@ -15,19 +14,14 @@ about: Would you like something work differently? Have an alternative approach?
1514
Head to StackOverflow or https://gitter.im/webpack/webpack.
1615
-->
1716

18-
* Operating System:
19-
* Node Version:
20-
* NPM Version:
21-
* webpack Version:
22-
* uglifyjs-webpack-plugin Version:
23-
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- uglifyjs-webpack-plugin Version:
2422

2523
### Expected Behavior / Situation
2624

27-
28-
2925
### Actual Behavior / Situation
3026

31-
32-
3327
### Modification Proposal

.github/ISSUE_TEMPLATE/SUPPORT.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 🆘 Support, Help, and Advice
33
about: 👉🏽 Need support, help, or advice? Don't open an issue! Head to StackOverflow or https://gitter.im/webpack/webpack.
4-
54
---
65

76
Hey there! If you need support, help, or advice then this is not the place to ask.

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/coverage
2+
/dist
3+
/node_modules
4+
/test/fixtures
5+
CHANGELOG.md

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module.exports = {
22
singleQuote: true,
33
trailingComma: 'es5',
44
arrowParens: 'always',
5-
};
5+
};

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ module.exports = {
129129
if (chunk.name === 'vendor') {
130130
return false;
131131
}
132-
132+
133133
return true;
134-
}
134+
},
135135
}),
136136
],
137137
},

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,4 @@ jobs:
198198
displayName: 'Publish test results'
199199
- script: curl -s https://codecov.io/bash | bash -s -- -t $(CODECOV_TOKEN)
200200
condition: succeededOrFailed()
201-
displayName: 'Submit coverage data to codecov'
201+
displayName: 'Submit coverage data to codecov'

lint-staged.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
module.exports = {
2-
ignore: ['package-lock.json'],
3-
linters: {
4-
'*.js': ['eslint --fix', 'git add'],
5-
},
2+
'*.js': ['prettier --write', 'eslint --fix', 'git add'],
3+
'*.{json,md,yml,css}': ['prettier --write', 'git add'],
64
};

0 commit comments

Comments
 (0)