Skip to content

Commit 46289ee

Browse files
refactor: code
1 parent 4f269bd commit 46289ee

5 files changed

Lines changed: 32 additions & 36 deletions

File tree

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ insert_final_newline = true
99
trim_trailing_whitespace = true
1010

1111
[*.md]
12-
insert_final_newline = true
1312
trim_trailing_whitespace = false

.github/workflows/nodejs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
- name: Lint
4444
run: npm run lint
4545

46-
- name: Security audit
47-
run: npm run security
46+
#- name: Security audit
47+
# run: npm run security
4848

4949
- name: Check commit message
5050
uses: wagoid/commitlint-github-action@v1
@@ -55,7 +55,7 @@ jobs:
5555
strategy:
5656
matrix:
5757
os: [ubuntu-latest, windows-latest, macos-latest]
58-
node-version: [8.x, 10.x, 12.x, 14.x]
58+
node-version: [10.x, 12.x, 14.x]
5959
webpack-version: [latest, next]
6060

6161
runs-on: ${{ matrix.os }}

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = (api) => {
1010
'@babel/preset-env',
1111
{
1212
targets: {
13-
node: '8.9.0',
13+
node: '10.13.0',
1414
},
1515
},
1616
],

package-lock.json

Lines changed: 10 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,38 @@
1010
],
1111
"homepage": "https://github.com/webpack-contrib/stylelint-webpack-plugin",
1212
"bugs": "https://github.com/webpack-contrib/stylelint-webpack-plugin/issues",
13+
"funding": {
14+
"type": "opencollective",
15+
"url": "https://opencollective.com/webpack"
16+
},
1317
"main": "dist/cjs.js",
1418
"engines": {
15-
"node": ">= 8.9.0"
19+
"node": ">= 10.13.0"
1620
},
1721
"scripts": {
1822
"start": "npm run build -- -w",
19-
"prebuild": "npm run clean",
20-
"build": "cross-env NODE_ENV=production babel src -d dist --ignore \"src/**/*.test.js\" --copy-files",
2123
"clean": "del-cli dist",
24+
"prebuild": "npm run clean",
25+
"build": "cross-env NODE_ENV=production babel src -d dist --copy-files",
2226
"commitlint": "commitlint --from=master",
23-
"lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css}\" --list-different",
24-
"lint:js": "eslint --cache src test",
25-
"lint": "npm-run-all -l -p \"lint:**\"",
26-
"prepare": "npm run build",
27-
"release": "standard-version",
2827
"security": "npm audit",
28+
"lint:prettier": "prettier --list-different .",
29+
"lint:js": "eslint --cache .",
30+
"lint": "npm-run-all -l -p \"lint:**\"",
2931
"test:only": "cross-env NODE_ENV=test jest",
30-
"test:watch": "cross-env NODE_ENV=test jest --watch",
31-
"test:coverage": "cross-env NODE_ENV=test jest --collectCoverageFrom=\"src/**/*.js\" --coverage",
32+
"test:watch": "npm run test:only -- --watch",
33+
"test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
3234
"pretest": "npm run lint",
33-
"test": "cross-env NODE_ENV=test npm run test:coverage",
35+
"test": "npm run test:coverage",
36+
"prepare": "npm run build",
37+
"release": "standard-version",
3438
"defaults": "webpack-defaults"
3539
},
3640
"files": [
3741
"dist"
3842
],
3943
"peerDependencies": {
40-
"stylelint": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
44+
"stylelint": "^13.0.0",
4145
"webpack": "^4.0.0 || ^5.0.0"
4246
},
4347
"dependencies": {
@@ -55,7 +59,7 @@
5559
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
5660
"babel-eslint": "^10.1.0",
5761
"babel-jest": "^25.5.1",
58-
"cross-env": "^6.0.3",
62+
"cross-env": "^7.0.2",
5963
"del": "^5.1.0",
6064
"del-cli": "^3.0.0",
6165
"eslint": "^6.8.0",
@@ -66,9 +70,8 @@
6670
"husky": "^4.2.5",
6771
"jest": "^25.5.4",
6872
"lint-staged": "^10.2.2",
69-
"mkdirp": "^1.0.4",
7073
"npm-run-all": "^4.1.5",
71-
"prettier": "^1.19.1",
74+
"prettier": "^2.0.5",
7275
"standard-version": "^7.1.0",
7376
"stylelint": "^13.3.3",
7477
"webpack": "^4.43.0"

0 commit comments

Comments
 (0)