Skip to content

Commit

Permalink
infra: migrate to eslint@9
Browse files Browse the repository at this point in the history
  • Loading branch information
AviVahl committed Aug 3, 2024
1 parent f4464cc commit 9e35f9b
Show file tree
Hide file tree
Showing 7 changed files with 238 additions and 317 deletions.
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

27 changes: 0 additions & 27 deletions .eslintrc

This file was deleted.

23 changes: 23 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { fixupPluginRules } from "@eslint/compat";
import pluginJs from "@eslint/js";
import configPrettier from "eslint-config-prettier";
import pluginNoOnlyTests from "eslint-plugin-no-only-tests";
import pluginTypescript from "typescript-eslint";

/** @type {import('eslint').Linter.Config[]} */
export default [
{ ignores: ["dist/", "**/*.{js,mjs,cjs}"] },
pluginJs.configs.recommended,

...pluginTypescript.configs.recommendedTypeChecked,
{ languageOptions: { parserOptions: { projectService: true } } },

{ plugins: { "no-only-tests": fixupPluginRules(pluginNoOnlyTests) } },
configPrettier,

{
rules: {
// "no-console": "error",
},
},
];
Loading

0 comments on commit 9e35f9b

Please sign in to comment.