Skip to content

Commit d02e271

Browse files
committed
chore: update eslint config
1 parent 856f68f commit d02e271

File tree

5 files changed

+26
-48
lines changed

5 files changed

+26
-48
lines changed

.devcontainer/Dockerfile

-16
This file was deleted.

.devcontainer/devcontainer.json

+19-26
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,26 @@
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
{
4-
"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"
12-
}
13-
},
4+
"name": "Node.js & TypeScript",
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",
147

15-
// Set *default* container specific settings.json values on container create.
16-
"settings": {},
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
// "features": {},
1710

18-
// Add the IDs of extensions you want installed when the container is created.
19-
"extensions": [
20-
"dbaeumer.vscode-eslint",
21-
"svelte.svelte-vscode",
22-
"esbenp.prettier-vscode"
23-
],
11+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12+
// "forwardPorts": [],
2413

25-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
26-
// "forwardPorts": [],
14+
// Use 'postCreateCommand' to run commands after the container is created.
15+
"postCreateCommand": "pnpm install",
2716

28-
// Use 'postCreateCommand' to run commands after the container is created.
29-
"postCreateCommand": "pnpm install",
17+
// Configure tool-specific properties.
18+
"customizations": {
19+
"vscode": {
20+
"extensions": ["dbaeumer.vscode-eslint", "svelte.svelte-vscode", "esbenp.prettier-vscode"]
21+
}
22+
}
3023

31-
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
32-
"remoteUser": "node"
24+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
25+
// "remoteUser": "root"
3326
}

.eslintrc.js

+4
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ module.exports = {
109109
{
110110
selector: 'method',
111111
format: null
112+
},
113+
{
114+
selector: 'import',
115+
format: null
112116
}
113117
],
114118
'@typescript-eslint/no-non-null-assertion': 'off'

.github/workflows/Release.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ jobs:
2424
- name: Setup pnpm
2525
uses: pnpm/action-setup@v2
2626

27-
- name: Setup Node.js 16
27+
- name: Setup Node.js
2828
uses: actions/setup-node@v4
29-
with:
30-
node-version: 16
31-
3229
- name: Install Dependencies
3330
run: pnpm install
3431

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@
112112
"@types/prismjs": "^1.26.0",
113113
"@types/semver": "^7.5.0",
114114
"@types/stylus": "^0.48.38",
115-
"@typescript-eslint/eslint-plugin": "^6.0.0",
116-
"@typescript-eslint/parser": "^6.0.0",
115+
"@typescript-eslint/eslint-plugin": "^6.9.0",
116+
"@typescript-eslint/parser": "^6.9.0",
117117
"@typescript/vfs": "^1.4.0",
118118
"acorn": "^8.8.2",
119119
"assert": "^2.0.0",

0 commit comments

Comments
 (0)