diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..4099486 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,30 @@ +import eslint from "@eslint/js"; +import tseslint from "typescript-eslint"; + +export default [ + { + ignores: ["**/dist/**"], + }, + eslint.configs.recommended, + ...tseslint.configs.recommended, + { + files: ["**/*.js", "**/*.ts"], + languageOptions: { + parserOptions: { + ecmaVersion: 12, + sourceType: "module", + }, + }, + rules: { + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-unused-vars": [ + "warn", + { + argsIgnorePattern: "^_", + varsIgnorePattern: "^_", + caughtErrorsIgnorePattern: "^_", + }, + ], + }, + }, +];