Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .eslintrc.json

This file was deleted.

21 changes: 12 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node: [20.x]
node: [22.14.0]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand All @@ -30,10 +30,6 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Use Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Dependencies
run: npm ci
- name: Check Format
Expand All @@ -55,18 +51,25 @@ jobs:
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 20.x
node-version: 22.14.0
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Load secrets from 1Password
id: load_secrets
uses: 1password/load-secrets-action@v3
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
GH_TOKEN: op://cicd_dankeboy36/GITHUB_TOKEN/credential
OVSX_PAT: op://cicd_dankeboy36/OVSX_TOKEN/credential
- name: Release
id: release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
OVSX_PAT: ${{ secrets.OVSX_PAT }}
GITHUB_TOKEN: ${{ steps.load_secrets.outputs.GITHUB_TOKEN }}
OVSX_PAT: ${{ steps.load_secrets.outputs.OVSX_PAT }}
outputs:
release_version: ${{ steps.release.outputs.release_version }}
16 changes: 0 additions & 16 deletions .prettierrc.json

This file was deleted.

3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"recommendations": [
"dbaeumer.vscode-eslint",
"amodio.tsl-problem-matcher",
"streetsidesoftware.code-spell-checker"
"streetsidesoftware.code-spell-checker",
"esbenp.prettier-vscode"
]
}
20 changes: 0 additions & 20 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,6 @@
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "tasks: watch-tests"
},
{
"name": "Extension Tests (Slow)",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
"env": {
"CLI_TEST_CONTEXT": "slow",
"NO_TEST_TIMEOUT": "true",
"NO_TEST_COVERAGE": "true",
"TEST_DEBUG": "espExceptionDecoder*"
},
"outFiles": [
"${workspaceFolder}/out/**/*.js",
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "tasks: watch-tests"
}
]
}
14 changes: 11 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
{
"files.exclude": {
"out": false,
"dist": false
"dir": false
},
"search.exclude": {
"out": true,
"dist": true
"dir": true
},
"typescript.tsc.autoDetect": "off",
"typescript.tsdk": "./node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
},
"[javascript][javascriptreact][json][typescript][typescriptreact][css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnPaste": true,
"editor.formatOnSave": true
},
"eslint.format.enable": true,
"js/ts.implicitProjectConfig.checkJs": true,
"js/ts.implicitProjectConfig.module": "NodeNext"
}
4 changes: 3 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ vsc-extension-quickstart.md
**/.eslintrc.json
**/*.map
**/*.ts
.prettier*
prettier.config.*
.prettierignore
eslint.config.*
.github/**
images/**
release.config.js
Expand Down
48 changes: 48 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// @ts-check

import importPlugin from 'eslint-plugin-import'
import prettierPlugin from 'eslint-plugin-prettier'
import neostandard from 'neostandard'

export default [
...neostandard({
semi: false,
ts: true,
ignores: ['out', 'dist', 'node_modules', '.vscode-test', '.nyc_output'],
}),
{
plugins: {
import: importPlugin,
prettier: prettierPlugin,
},
rules: {
curly: 'warn',
eqeqeq: 'warn',
'@stylistic/comma-dangle': 'off',
'@stylistic/indent': 'off',
'@stylistic/no-tabs': 'off',
'@stylistic/space-before-function-paren': [
'error',
{
anonymous: 'always',
named: 'never',
asyncArrow: 'always',
},
],
'import/first': 'error',
'import/order': [
'error',
{
'newlines-between': 'always',
groups: [
'builtin',
'external',
'internal',
['parent', 'sibling', 'index'],
],
},
],
'import/newline-after-import': 'error',
},
},
]
Loading