-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency eslint to v9 (#33)
* chore(deps): update dependency eslint to v9 * fixup: debug * fixup: add trailing EOF blank line --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Kris Stern <[email protected]>
- Loading branch information
1 parent
814335a
commit 3c0ee96
Showing
5 changed files
with
321 additions
and
243 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,56 @@ | ||
import { fixupConfigRules } from "@eslint/compat"; | ||
import reactRefresh from "eslint-plugin-react-refresh"; | ||
import globals from "globals"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
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: [ | ||
"**/dist", | ||
"node_modules/", | ||
"tests/fixtures/", | ||
"coverage/", | ||
"docs/", | ||
"jsdoc/", | ||
"dist/", | ||
], | ||
}, ...fixupConfigRules(compat.extends( | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react-hooks/recommended", | ||
"prettier", | ||
)), { | ||
plugins: { | ||
"react-refresh": reactRefresh, | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
}, | ||
|
||
parser: tsParser, | ||
}, | ||
|
||
rules: { | ||
"react-refresh/only-export-components": "off", | ||
"no-unused-vars": "error", | ||
|
||
"prefer-const": ["error", { | ||
ignoreReadBeforeAssign: true, | ||
}], | ||
}, | ||
|
||
files: ["**/*.ts", "**/*.tsx"], | ||
}]; |
Oops, something went wrong.