-
Notifications
You must be signed in to change notification settings - Fork 23
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
7a7b091
commit 1300680
Showing
12 changed files
with
2,390 additions
and
5,745 deletions.
There are no files selected for viewing
Binary file not shown.
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 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 +1 @@ | ||
20.11.0 | ||
22.12.0 |
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,63 @@ | ||
import react from "eslint-plugin-react"; | ||
import reactHooks from "eslint-plugin-react-hooks"; | ||
import _import from "eslint-plugin-import"; | ||
import jsxA11Y from "eslint-plugin-jsx-a11y"; | ||
import licenseHeader from "eslint-plugin-license-header"; | ||
import { fixupPluginRules } from "@eslint/compat"; | ||
import globals from "globals"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import js from "@eslint/js"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}); | ||
|
||
export default [{ | ||
ignores: ["**/eslint.config.mjs", "**/license.js", "target/*", "build/*"], | ||
}, ...compat.extends("plugin:react/recommended"), { | ||
plugins: { | ||
react, | ||
"react-hooks": fixupPluginRules(reactHooks), | ||
import: fixupPluginRules(_import), | ||
"jsx-a11y": jsxA11Y, | ||
"license-header": licenseHeader, | ||
}, | ||
|
||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
}, | ||
|
||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
|
||
rules: { | ||
"react/react-in-jsx-scope": 0, | ||
"jsx-quotes": ["error", "prefer-single"], | ||
|
||
"react/function-component-definition": [2, { | ||
namedComponents: "arrow-function", | ||
}], | ||
"no-console": 1, | ||
"react-hooks/exhaustive-deps": 1, | ||
"react/require-default-props": 0, | ||
"react/jsx-props-no-spreading": 0, | ||
"react/jsx-filename-extension": 0, | ||
"import/prefer-default-export": 0, | ||
"react/prop-types": 0, | ||
"license-header/header": ["error", "./license.js"], | ||
}, | ||
}]; |
Oops, something went wrong.