Skip to content

Commit 9d57d83

Browse files
chore(deps): update dependency eslint-plugin-regexp to v2 (#254)
* chore(deps): update dependency eslint-plugin-regexp to v2 * format --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
1 parent e40d449 commit 9d57d83

File tree

4 files changed

+23
-40
lines changed

4 files changed

+23
-40
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 16 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/typescript-node
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
33
{
44
"name": "Node.js & TypeScript",
5-
"build": {
6-
"dockerfile": "Dockerfile",
7-
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
8-
// Append -bullseye or -buster to pin to an OS version.
9-
// Use -bullseye variants on local on arm64/Apple Silicon.
10-
"args": {
11-
"VARIANT": "16-bullseye"
12-
}
13-
},
14-
15-
// Set *default* container specific settings.json values on container create.
16-
"settings": {},
17-
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
187

19-
// Add the IDs of extensions you want installed when the container is created.
20-
"extensions": [
21-
"dbaeumer.vscode-eslint"
22-
],
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
// "features": {},
2310

2411
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2512
// "forwardPorts": [],
2613

2714
// Use 'postCreateCommand' to run commands after the container is created.
2815
"postCreateCommand": "yarn install",
2916

30-
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
31-
"remoteUser": "node"
32-
}
17+
// Configure tool-specific properties.
18+
"customizations": {
19+
// Configure properties specific to VS Code.
20+
"vscode": {
21+
// Set *default* container specific settings.json values on container create.
22+
"settings": {},
23+
"extensions": [
24+
"dbaeumer.vscode-eslint"
25+
]
26+
}
27+
}
28+
29+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
30+
// "remoteUser": "root"
31+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"eslint-plugin-n": "^16.0.0",
9191
"eslint-plugin-node-dependencies": "^0.11.0",
9292
"eslint-plugin-prettier": "^5.0.0",
93-
"eslint-plugin-regexp": "^1.0.0",
93+
"eslint-plugin-regexp": "^2.0.0",
9494
"eslint-plugin-toml": "^0.6.0",
9595
"eslint-plugin-vue": "^9.0.0",
9696
"eslint-plugin-yml": "^1.0.0",

src/utils/validator-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ function errorToValidateError(
283283
}
284284
let result = "";
285285
for (const p of paths) {
286-
if (/^[$_a-z][\w$]*$/iu.test(p)) {
286+
if (/^[$a-z_][\w$]*$/iu.test(p)) {
287287
if (result) {
288288
result += `.${p}`;
289289
} else {

0 commit comments

Comments
 (0)