-
Notifications
You must be signed in to change notification settings - Fork 39
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
7a9cc35
commit 9c3f8e6
Showing
22 changed files
with
418 additions
and
894 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"], | ||
"*.{js,cjs,mjs,jsx,ts,tsx}": ["eslint --fix", "prettier --write"], | ||
"*.{md,json}": ["prettier --write"] | ||
} |
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
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,42 @@ | ||
import globals from "globals"; | ||
import eslint from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
import eslintPluginReact from "eslint-plugin-react"; | ||
import eslintPluginReactHooks from "eslint-plugin-react-hooks"; | ||
import eslintPluginJsxA11y from "eslint-plugin-jsx-a11y"; | ||
import eslintConfigPrettier from "eslint-config-prettier"; | ||
|
||
export default tseslint.config( | ||
{ ignores: ["coverage", "**/dist"] }, | ||
eslint.configs.recommended, | ||
tseslint.configs.recommended, | ||
eslintPluginReact.configs.flat.recommended, | ||
// eslintPluginReact.configs.flat["jsx-runtime"], | ||
eslintPluginJsxA11y.flatConfigs.recommended, | ||
eslintConfigPrettier, | ||
{ | ||
settings: { react: { version: "detect" } }, | ||
languageOptions: { globals: globals.browser }, | ||
plugins: { "react-hooks": eslintPluginReactHooks }, | ||
rules: { | ||
"no-console": "error", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
args: "all", | ||
argsIgnorePattern: "^_", | ||
caughtErrors: "all", | ||
caughtErrorsIgnorePattern: "^_", | ||
destructuredArrayIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
...eslintPluginReactHooks.configs.recommended.rules, | ||
}, | ||
}, | ||
{ | ||
files: ["fixup-dist.js"], | ||
languageOptions: { globals: globals.node }, | ||
}, | ||
); |
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
Oops, something went wrong.