From aae8177d99b80d510156a6b49a5e3a60490ac7f8 Mon Sep 17 00:00:00 2001 From: Michael Jolley Date: Thu, 16 Jan 2025 19:23:06 -0600 Subject: [PATCH] feat: Bumping version --- .editorconfig | 2 +- .vscodeignore | 2 +- eslint.config.js | 32 ++++++++++++++++++++++++++++++++ eslint.config.mjs | 41 ----------------------------------------- package.json | 2 +- 5 files changed, 35 insertions(+), 44 deletions(-) create mode 100644 eslint.config.js delete mode 100644 eslint.config.mjs diff --git a/.editorconfig b/.editorconfig index 68d1894..edfad7a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,2 +1,2 @@ indent_size = 2 -indent_style = tab +indent_style = tab \ No newline at end of file diff --git a/.vscodeignore b/.vscodeignore index e0277ca..3f2351d 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -18,7 +18,7 @@ out/** .vscode-test.mjs .vscodeignore CHANGELOG.md -eslint.config.mjs +eslint.config.js package.release.config.js publish.release.config.js \ No newline at end of file diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..098e305 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,32 @@ +module.exports = [ + { + "root": true, + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 6, + "sourceType": "module" + }, + "plugins": [ + "@typescript-eslint" + ], + "rules": { + "@typescript-eslint/naming-convention": "warn", + "@typescript-eslint/semi": "warn", + "curly": "warn", + "eqeqeq": "warn", + "no-throw-literal": "warn", + "semi": "off" + }, + "ignorePatterns": [ + "out", + "dist", + "**/*.d.ts" + ], + "files": [ + "src/**/*.ts" + ], + "extends": [ + "prettier" + ] + } +]; diff --git a/eslint.config.mjs b/eslint.config.mjs deleted file mode 100644 index 496b92a..0000000 --- a/eslint.config.mjs +++ /dev/null @@ -1,41 +0,0 @@ -import typescriptEslint from "@typescript-eslint/eslint-plugin"; -import tsParser from "@typescript-eslint/parser"; -import path from "node:path"; -import { fileURLToPath } from "node:url"; -import js from "@eslint/js"; -import { FlatCompat } from "@eslint/eslintrc"; - -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); -const compat = new FlatCompat({ - baseDirectory: __dirname, - recommendedConfig: js.configs.recommended, - allConfig: js.configs.all -}); - -export default [{ - ignores: ["**/out", "**/dist", "**/*.d.ts"], -}, ...compat.extends("prettier").map(config => ({ - ...config, - files: ["**/*.ts"], -})), { - files: ["**/*.ts"], - - plugins: { - "@typescript-eslint": typescriptEslint, - }, - - languageOptions: { - parser: tsParser, - ecmaVersion: 6, - sourceType: "module", - }, - - rules: { - "@typescript-eslint/naming-convention": "warn", - curly: "warn", - eqeqeq: "warn", - "no-throw-literal": "warn", - semi: "off", - }, -}]; \ No newline at end of file diff --git a/package.json b/package.json index f9582ef..0afb453 100644 --- a/package.json +++ b/package.json @@ -182,7 +182,7 @@ "test-compile": "tsc -p ./", "watch": "tsc -watch -p ./", "pretest": "npm run test-compile && npm run lint", - "lint": "eslint src", + "lint": "eslint -c eslint.config.js", "format": "npx prettier --write \"src/**/*.ts\"", "test": "vscode-test" },