Skip to content

Commit

Permalink
fix: eslint rules after enabling eslint-plugin-unicorn (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrs authored Dec 30, 2024
1 parent d713020 commit f7a18c7
Show file tree
Hide file tree
Showing 9 changed files with 505 additions and 20 deletions.
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.useFlatConfig": true
}
13 changes: 9 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
// @ts-check

import neostandard, { resolveIgnoresFromGitignore } from "neostandard";
import eslintPluginUnicorn from "eslint-plugin-unicorn";

export default neostandard({
ignores: resolveIgnoresFromGitignore(),
noStyle: true,
});
export default [
...neostandard({
ignores: resolveIgnoresFromGitignore(),
noStyle: true,
ts: true,
}),
eslintPluginUnicorn.configs["flat/recommended"],
];
Loading

0 comments on commit f7a18c7

Please sign in to comment.