diff --git a/.eslintrc.json b/.eslintrc.json index 430bc5ac..3ef6d937 100755 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -26,46 +26,39 @@ "files": ["*.ts", "*.tsx"], "extends": ["plugin:@nx/typescript", "airbnb", "airbnb-typescript", "next", "prettier"], "rules": { - "prefer-arrow/prefer-arrow-functions": [ - "error", - { - "disallowPrototype": true, - "singleReturnOnly": false, - "classPropertiesAllowed": false - } - ], - "prefer-arrow-callback": [ - "error", - { - "allowNamedFunctions": true - } - ], - "func-style": [ - "error", - "expression", - { - "allowArrowFunctions": true - } - ], + // "prefer-arrow/prefer-arrow-functions": [ + // "error", + // { + // "disallowPrototype": true, + // "singleReturnOnly": false, + // "classPropertiesAllowed": false + // } + // ], + // "prefer-arrow-callback": [ + // "error", + // { + // "allowNamedFunctions": true + // } + // ], + // "func-style": [ + // "error", + // "expression", + // { + // "allowArrowFunctions": true + // } + // ], + "react/prop-types": "off", "import/prefer-default-export": "off", "import/no-extraneous-dependencies": "off", - "import/extensions": [ - "error", - "never", - { - "json": "always", - "svg": "always", - "css": "always" - } - ], - "react/function-component-definition": [ - 2, - { - "namedComponents": "arrow-function", - "unnamedComponents": "arrow-function" - } - ], + "import/extensions": 0, + // "react/function-component-definition": [ + // 2, + // { + // "namedComponents": "arrow-function", + // "unnamedComponents": "arrow-function" + // } + // ], "react/jsx-props-no-spreading": "off", "react/require-default-props": "off" } diff --git a/apps/trialanderror.org/.eslintrc.json b/apps/trialanderror.org/.eslintrc.json index 058d366f..2775063b 100644 --- a/apps/trialanderror.org/.eslintrc.json +++ b/apps/trialanderror.org/.eslintrc.json @@ -5,7 +5,10 @@ "next/core-web-vitals", "../../.eslintrc.json" ], - "ignorePatterns": ["!**/*", ".next/**/*"], + "parserOptions": { + "project": "apps/trialanderror.org/tsconfig.*json" + }, + "ignorePatterns": ["!**/*", ".next/**/*", "**/*jest.config.ts"], "overrides": [ { "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], @@ -23,7 +26,8 @@ } ], "rules": { - "@next/next/no-html-link-for-pages": "off" + "@next/next/no-html-link-for-pages": "off", + "@typescript-eslint/no-shadow": "off" }, "env": { "jest": true diff --git a/apps/trialanderror.org/src/app/[page]/page.tsx b/apps/trialanderror.org/src/app/[page]/page.tsx index 4027851e..cbd11714 100644 --- a/apps/trialanderror.org/src/app/[page]/page.tsx +++ b/apps/trialanderror.org/src/app/[page]/page.tsx @@ -31,17 +31,15 @@ export default async function AboutPage({ params: { page } }: Props) {