-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34b595d
commit 199ab93
Showing
14 changed files
with
4,795 additions
and
2,999 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}), | ||
]; |
Oops, something went wrong.