Skip to content

Commit 6b45974

Browse files
refactor: code (#482)
1 parent abc7dca commit 6b45974

18 files changed

+220
-124
lines changed

β€Ž.eslintignoreβ€Ž

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

β€Ž.eslintrc.jsβ€Ž

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
module.exports = {
22
root: true,
3-
plugins: ['prettier'],
4-
extends: ['@webpack-contrib/eslint-config-webpack'],
5-
rules: {
6-
'prettier/prettier': ['error'],
7-
strict: ['off'],
8-
},
3+
extends: ['@webpack-contrib/eslint-config-webpack', 'prettier'],
4+
overrides: [
5+
{
6+
files: ['lib/**/*.js'],
7+
parserOptions: {
8+
sourceType: 'script',
9+
},
10+
},
11+
],
912
};

β€Ž.github/CONTRIBUTING.mdβ€Ž

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

134+
## Contributor License Agreement
135+
136+
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/webpack-dev-middleware).
137+
If it is your first time, it will link you to the right place to sign it.
138+
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.
139+
140+
Run `git config user.email` to see your Git email, and verify it with [your GitHub email](https://github.com/settings/emails).
141+
134142
## Thanks
135143

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

β€Ž.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-
* webpack-dev-middleware Version:
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- webpack-dev-middleware 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
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-
* webpack-dev-middleware Version:
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- webpack-dev-middleware 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-
* webpack-dev-middleware Version:
23-
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- webpack-dev-middleware Version:
2422

2523
### Expected Behavior / Situation
2624

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

31-
32-
3327
### Modification Proposal
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
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.
87
Please visit [StackOverflow](https://stackoverflow.com/questions/tagged/webpack)
9-
or [the Webpack Gitter](https://gitter.im/webpack/webpack) instead.
8+
or [the Webpack Gitter](https://gitter.im/webpack/webpack) instead.

β€Ž.github/PULL_REQUEST_TEMPLATE.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ This PR contains a:
3232
migration path for existing applications.
3333
-->
3434

35-
### Additional Info
35+
### Additional Info

β€Ž.prettierignoreβ€Ž

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

0 commit comments

Comments
Β (0)