Skip to content
Merged
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
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 1.3.0

- Upgraded dev dependencies to latest stable versions (ESLint 9, TypeScript 5.9, @typescript-eslint v8)
- Migrated ESLint configuration to flat config (`eslint.config.js`) and fixed rules incompatible with newer plugin
- Added new command `csharpstretch.createInFile` which replaces the content of the active C# editor with a selected template

## 1.2.0

- Updated all dependencies to latest compatible versions
Expand Down
39 changes: 39 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
const { FlatCompat } = require("@eslint/eslintrc");
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: require("@eslint/js").configs.recommended,
allConfig: require("@eslint/js").configs.all,
});

module.exports = [
// bring in recommended configs using FlatCompat to keep same behavior
...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
),
{
ignores: ["node_modules/**", ".vscode-test"],
languageOptions: {
parser: require("@typescript-eslint/parser"),
parserOptions: {
project: "tsconfig.json",
sourceType: "module",
},
},
plugins: {
"@typescript-eslint": require("@typescript-eslint/eslint-plugin"),
},
rules: {
// removed deprecated "member-delimiter-style" from @typescript-eslint; core/team preferences apply
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
// use core semi rule
semi: ["warn", "always"],
curly: "warn",
eqeqeq: ["warn", "always"],
"no-redeclare": "warn",
"no-throw-literal": "warn",
"no-unused-expressions": "warn",
},
},
];
Loading
Loading