Skip to content

Commit

Permalink
add eslint (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas authored May 30, 2024
1 parent 34b595d commit 199ab93
Show file tree
Hide file tree
Showing 14 changed files with 4,795 additions and 2,999 deletions.
40 changes: 0 additions & 40 deletions frontend/.eslintrc.js

This file was deleted.

27 changes: 27 additions & 0 deletions frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { fixupConfigRules } from "@eslint/compat";
import pluginJs from "@eslint/js";
import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";
import globals from "globals";
import tseslint from "typescript-eslint";

const reactSettings = {
settings: {
react: {
version: "detect", // Automatically detect the React version
},
},
};

export default [
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
reactSettings,
...fixupConfigRules({
...pluginReactConfig,
rules: {
...pluginReactConfig.rules,
"react/react-in-jsx-scope": "off",
},
}),
];
Loading

0 comments on commit 199ab93

Please sign in to comment.