Skip to content

Commit fd8d2e6

Browse files
chore(defaults): update (#940)
1 parent e9eb5ad commit fd8d2e6

14 files changed

+1156
-956
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/coverage
22
/dist
33
/node_modules
4+
/test/fixtures

.eslintrc.js

+2-6
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/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
open_collective: webpack

.github/ISSUE_TEMPLATE/BUG.md

+9-10
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-
* css-loader Version:
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- css-loader 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

-2
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-
3028
### Your Proposal for Changes

.github/ISSUE_TEMPLATE/FEATURE.md

+5-8
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-
* css-loader Version:
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- css-loader Version:
2322

2423
### Feature Proposal
2524

26-
27-
2825
### Feature Use Case
+5-11
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-
* css-loader Version:
23-
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- css-loader Version:
2422

2523
### Expected Behavior / Situation
2624

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

31-
32-
3327
### Modification Proposal

.github/ISSUE_TEMPLATE/SUPPORT.md

-1
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

+5
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

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ module.exports = {
183183
options: {
184184
url: (url, resourcePath) => {
185185
// resourcePath - path to css file
186-
186+
187187
// Don't handle `img.png` urls
188188
if (url.includes('img.png')) {
189189
return false;

lint-staged.config.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
2-
ignore: ['package-lock.json'],
2+
ignore: ['package-lock.json', 'CHANGELOG.md'],
33
linters: {
4-
'*.js': ['eslint --fix', 'git add'],
4+
'*.js': ['prettier --write', 'eslint --fix', 'git add'],
5+
'*.{json,md,yml,css}': ['prettier --write', 'git add'],
56
},
67
};

0 commit comments

Comments
 (0)