Skip to content

Commit 66d43fa

Browse files
chore: update defaults
1 parent b146549 commit 66d43fa

File tree

7 files changed

+165
-19
lines changed

7 files changed

+165
-19
lines changed

.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: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,8 @@ jobs:
5555
strategy:
5656
matrix:
5757
os: [ubuntu-latest, windows-latest, macos-latest]
58-
# css-loader doesn't support node@6
59-
node-version: [8.x, 10.x, 12.x, 14.x]
58+
node-version: [10.x, 12.x, 14.x]
6059
webpack-version: [latest, next]
61-
exclude:
62-
# Webpack 5 does not support node 6 and 8
63-
- node-version: 8.x
64-
webpack-version: next
6560

6661
runs-on: ${{ matrix.os }}
6762

@@ -86,7 +81,7 @@ jobs:
8681
run: npm i -g npm
8782

8883
- name: Install dependencies
89-
run: npm i
84+
run: npm ci
9085

9186
- name: Install webpack ${{ matrix.webpack-version }}
9287
run: npm i webpack@${{ matrix.webpack-version }}

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: '6.9.0',
13+
node: '10.13.0',
1414
},
1515
},
1616
],

lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
'*.js': ['prettier --write', 'eslint --fix', 'git add'],
3-
'*.{json,md,yml,css}': ['prettier --write', 'git add'],
3+
'*.{json,md,yml,css,ts}': ['prettier --write', 'git add'],
44
};

package-lock.json

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

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"main": "dist/cjs.js",
1515
"engines": {
16-
"node": ">= 6.9.0"
16+
"node": ">= 10.13.0"
1717
},
1818
"scripts": {
1919
"start": "npm run build -- -w",
@@ -22,15 +22,15 @@
2222
"postbuild": "es-check es5 dist/hmr/hotModuleReplacement.js",
2323
"clean": "del-cli dist",
2424
"commitlint": "commitlint --from=master",
25-
"lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css}\" --list-different",
26-
"lint:js": "eslint --cache src test",
25+
"lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different",
26+
"lint:js": "eslint --cache .",
2727
"lint": "npm-run-all -l -p \"lint:**\"",
2828
"prepare": "npm run build",
2929
"release": "standard-version",
3030
"security": "npm audit",
3131
"test:only": "cross-env NODE_ENV=test jest",
32-
"test:watch": "cross-env NODE_ENV=test jest --watch",
33-
"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",
3434
"test:manual": "npm run build && webpack-dev-server test/manual/src/index.js --open --config test/manual/webpack.config.js",
3535
"pretest": "npm run lint",
3636
"test": "cross-env NODE_ENV=test npm run test:coverage",
@@ -54,10 +54,11 @@
5454
"@babel/preset-env": "^7.7.6",
5555
"@commitlint/cli": "^8.1.0",
5656
"@commitlint/config-conventional": "^8.1.0",
57-
"@webpack-contrib/defaults": "^5.0.2",
57+
"@webpack-contrib/defaults": "^6.3.0",
5858
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
5959
"babel-eslint": "^10.0.2",
6060
"babel-jest": "^24.8.0",
61+
"commitlint-azure-pipelines-cli": "^1.0.3",
6162
"cross-env": "^5.2.0",
6263
"css-loader": "^3.3.2",
6364
"del": "^4.1.1",
@@ -69,6 +70,7 @@
6970
"file-loader": "^4.0.0",
7071
"husky": "^3.0.0",
7172
"jest": "^24.8.0",
73+
"jest-junit": "^11.0.1",
7274
"lint-staged": "^9.5.0",
7375
"memfs": "^3.0.2",
7476
"npm-run-all": "^4.1.5",

test/helpers/source.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ export default function getSource(name, stats) {
1515
}
1616
}
1717

18+
// eslint-disable-next-line no-undefined
1819
return undefined;
1920
}

0 commit comments

Comments
 (0)