Skip to content
Open
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
25 changes: 0 additions & 25 deletions .eslintrc.json

This file was deleted.

1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

7 changes: 0 additions & 7 deletions .vscode/extensions.json

This file was deleted.

38 changes: 18 additions & 20 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,22 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
]
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/test/suite/index"
]
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"]
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/test/suite/index"
]
}
]
}
41 changes: 41 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import globals from "globals";

/**
* ESLint 9+ Flat Config
* - Node.js globals for all code
* - Mocha globals only for test files
* - Modern parser options and rule mapping
*
* Install: npm install --save-dev globals
*/

export default [
{
files: ["**/*.{js,jsx,ts,tsx}"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.node,
},
},
rules: {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn",
},
},
{
// Mocha globals only inside tests
files: ["test/**/*", "tests/**/*", "**/*.test.js"],
languageOptions: {
globals: {
...globals.mocha,
},
},
},
];
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
"scripts": {
"lint": "eslint .",
"pretest": "pnpm run lint",
"prettier": "prettier -w src",
"test": "node ./test/runTest.js"
"prettier": "prettier -w src"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
Expand Down
16 changes: 0 additions & 16 deletions test/runTest.js

This file was deleted.

82 changes: 0 additions & 82 deletions test/suite/extension.test.js

This file was deleted.

36 changes: 0 additions & 36 deletions test/suite/index.js

This file was deleted.