Skip to content

Commit

Permalink
switch to ESLint flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaciras committed Apr 13, 2024
1 parent 88e07a1 commit 832bcd8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

18 changes: 0 additions & 18 deletions .eslintrc.cjs

This file was deleted.

17 changes: 17 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import core from "@kaciras/eslint-config-core";
import typescript from "@kaciras/eslint-config-typescript";
import jest from "@kaciras/eslint-config-jest";
import react from "@kaciras/eslint-config-react";

export default [
{ ignores: ["deps/**", "dist/**", "lib/**/*.js"] },
...core,
...typescript,
...react,
{
rules: {
"react-hooks/exhaustive-deps": "off",
},
},
...jest.map(c => ({ ...c, files: ["test/*.spec.ts"]})),
];

0 comments on commit 832bcd8

Please sign in to comment.