Skip to content

Commit

Permalink
chore: Migrate to new eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
CookieCookson committed Dec 8, 2024
1 parent 40534fd commit 79feb9e
Show file tree
Hide file tree
Showing 8 changed files with 341 additions and 313 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

38 changes: 0 additions & 38 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ module.exports = {
],
"@babel/preset-typescript",
],
plugins: ["@babel/plugin-proposal-optional-chaining"],
plugins: ["@babel/plugin-transform-optional-chaining"],
};
12 changes: 12 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// @ts-check
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";

export default [
...tseslint.config(eslint.configs.recommended, tseslint.configs.recommended),
eslintPluginPrettierRecommended,
{
ignores: ["dist/*", "*.js"],
},
];
Loading

0 comments on commit 79feb9e

Please sign in to comment.