Skip to content

Commit

Permalink
chore: setup linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaspalma committed Sep 16, 2024
1 parent 952e090 commit d50ad00
Show file tree
Hide file tree
Showing 39 changed files with 2,435 additions and 262 deletions.
40 changes: 40 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";

export default [
{
files: ["src/*.{js,mjs,cjs,ts,jsx,tsx}"],
},
{
languageOptions:
{
globals: { ...globals.browser, ...globals.node }
},
},
{
settings: {
react: {
version: '18.2',
},
},
},
{
ignores: ["src/components/ui/*", "src/components/svgs/*"],
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
rules: {
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-require-imports': 'off',
'no-console': ['error', { allow: ["error", "warn", "debug"] }]
}
},
];
Loading

0 comments on commit d50ad00

Please sign in to comment.