Squashed bugs
This commit is contained in:
parent
cbbadc9e67
commit
126f397d97
9 changed files with 44 additions and 43 deletions
|
|
@ -3,6 +3,10 @@ import globals from "globals";
|
|||
import tseslint from "typescript-eslint";
|
||||
import reactHooks from "eslint-plugin-react-hooks";
|
||||
import * as tsParser from "@typescript-eslint/parser";
|
||||
import { dirname } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const tsconfigRootDir = dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
export default [
|
||||
{
|
||||
|
|
@ -14,6 +18,9 @@ export default [
|
|||
files: ["**/*.{ts,tsx}"],
|
||||
languageOptions: {
|
||||
parser: tsParser,
|
||||
parserOptions: {
|
||||
tsconfigRootDir,
|
||||
},
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.node,
|
||||
|
|
|
|||
Loading…
Reference in a new issue