Skip to content

Commit

Permalink
chore: update tooling (#5047)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Feb 13, 2024
1 parent e115436 commit 11489dc
Show file tree
Hide file tree
Showing 17 changed files with 1,205 additions and 89 deletions.
81 changes: 81 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"version": "0.2",
"language": "en,en-gb",
"words": [
"camelcase",
"tapable",
"sockjs",
"spdy",
"memfs",
"execa",
"networkidle",
"ipaddr",
"pageerror",
"unmock",
"testhost",
"USEPOLLING",
"colorette",
"selfsigned",
"portfinder",
"xlink",
"instanceof",
"Heyo",
"domcontentloaded",
"historyapifallback",
"pems",
"localdomain",
"unshift",
"Zeroconf",
"webworker",
"devserver",
"logspam",
"Sindre",
"Sorhus",
"esmodules",
"CAFC",
"FACCA",
"darkgrey",
"Consolas",
"peerigon",
"Ichigo",
"Kurosaki",
"typeof",
"parseable",
"proxyfalse",
"klona",
"sessionattached",
"zenitsu",
"chuntaro",
"nwjs",
"myhost",
"ƕrrn",
"Fƅsq",
"G'RД",
"ECONNREFUSED",
"taskkill",
"testhouse",
"mwarn",
"mansi",
"nosources",
"Heyyy",
"oipqj",
"breakpad",
"infobars",
"omnibox",
"swiftshader",
"hoge",
"subsubcomain"
],
"ignorePaths": [
"CHANGELOG.md",
"coverage",
"package.json",
"dist/**",
"client/**",
"**/__snapshots__/**",
"package-lock.json",
"node_modules",
"coverage",
"*.log"
]
}
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
!/test/client
coverage
node_modules
examples/**/main.js
examples/client/trusted-types-overlay/app.js
test/fixtures/reload-config/foo.js
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ yarn.lock
yarn-error.log

.eslintcache
.cspellcache

test/fixtures/static-config/public/assets/non-exist.txt
test/fixtures/watch-files-config/public/assets/non-exist.txt
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![node][node]][node-url]
[![tests][tests]][tests-url]
[![coverage][cover]][cover-url]
[![chat][chat]][chat-url]
[![discussion][discussion]][discussion-url]
[![downloads][downloads]][npm-url]
[![contributors][contributors]][contributors-url]

Expand Down Expand Up @@ -279,7 +279,7 @@ Your first-stop-shop for support for webpack-dev-server should be the excellent
of those docs, please head over to the [webpack.js.org repo][wjo-url] and open a
pull request.

From there, we encourage users to visit the [webpack Gitter chat][chat-url] and
From there, we encourage users to visit the [webpack discussions][discussion-url] and
talk to the fine folks there. If your quest for answers comes up dry in chat,
head over to [StackOverflow][stack-url] and do a quick search or open a new
question. Remember; It's always much easier to answer questions that include your
Expand Down Expand Up @@ -313,8 +313,8 @@ This project is heavily inspired by [peerigon/nof5](https://github.com/peerigon/
[tests-url]: https://github.com/webpack/webpack-dev-server/actions?query=workflow%3Awebpack-dev-server
[cover]: https://codecov.io/gh/webpack/webpack-dev-server/branch/master/graph/badge.svg
[cover-url]: https://codecov.io/gh/webpack/webpack-dev-server
[chat]: https://badges.gitter.im/webpack/webpack.svg
[chat-url]: https://gitter.im/webpack/webpack
[discussion]: https://img.shields.io/github/discussions/webpack/webpack
[discussion-url]: https://github.com/webpack/webpack/discussions
[docs-url]: https://webpack.js.org/configuration/dev-server/#devserver
[hash-url]: https://twitter.com/search?q=webpack
[middleware-url]: https://github.com/webpack/webpack-dev-middleware
Expand Down
2 changes: 1 addition & 1 deletion examples/.assets/layout.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>WDS ▻ <%= htmlWebpackPlugin.options.title %></title>
Expand Down
2 changes: 1 addition & 1 deletion examples/client/trusted-types-overlay/layout.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Originally copied from "../../.assets/layout.html" -->
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<!-- Enable Trusted Types -->
Expand Down
2 changes: 1 addition & 1 deletion examples/client/web-socket-url/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<script src="bundle.js" type="text/javascript" charset="utf-8"></script>
Expand Down
2 changes: 1 addition & 1 deletion examples/general/config-promise/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Promise Config Example</title>
Expand Down
2 changes: 1 addition & 1 deletion examples/general/proxy-advanced/bypass.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<body>
<h1>Example: proxy advanced</h1>
Expand Down
2 changes: 1 addition & 1 deletion examples/watch-static/assets/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="styles.css" type="text/css" charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion lib/getPort.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const checkAvailablePort = (basePort, host) =>
server.on("error", reject);

server.listen(basePort, host, () => {
// Next line should return AdressInfo because we're calling it after listen() and before close()
// Next line should return AddressInfo because we're calling it after listen() and before close()
const { port } = /** @type {import("net").AddressInfo} */ (
server.address()
);
Expand Down
5 changes: 4 additions & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
"use strict";

module.exports = {
"*": ["prettier --write --ignore-unknown"],
"*": [
"prettier --cache --write --ignore-unknown",
"cspell --cache --no-must-find-files",
],
"*.js": ["eslint --cache --fix"],
};

0 comments on commit 11489dc

Please sign in to comment.