{ "root": true, "parser": "@typescript-eslint/parser", "plugins": [ "@typescript-eslint" ], "extends": [ "airbnb-typescript", "plugin:prettier/recommended" ], "env": { "jest": true }, "rules": { // Make prettier code formatting suggestions more verbose. "prettier/prettier": [ "warn" ], // Disable => <> replacement. Feel free to change "react/jsx-fragments": "off", // Disable prefer default export "import/prefer-default-export": "off", "@typescript-eslint/object-curly-spacing": "off", "react/jsx-filename-extension": [ 0 ], // suppress errors for missing 'import React' in files "react/react-in-jsx-scope": "off", // allow jsx syntax in js files (for next.js project) "import/extensions": "off", "import/no-extraneous-dependencies": "off", "jsx-a11y/anchor-is-valid": "off", "@typescript-eslint/no-unused-expressions": "off", "no-nested-ternary": "off", "react/require-default-props": "off", "import/no-cycle": "off", "react/prop-types": "off", "@typescript-eslint/no-use-before-define": "off", "no-case-declarations": "off", "@typescript-eslint/dot-notation": "off", "no-script-url": "off", "@typescript-eslint/no-implied-eval": "off", "no-undef": "off", "@typescript-eslint/return-await": "off", "@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-throw-literal": "off", "prefer-const": "off", "react/destructuring-assignment": "off", "no-await-in-loop": "off", "no-useless-escape": "off", "jsx-a11y/click-events-have-key-events": "off", "jsx-a11y/no-static-element-interactions": "off", "no-return-await": "off", "import/newline-after-import": "off", "no-param-reassign": "off", "react/no-array-index-key": "off", "no-else-return": "off", "no-underscore-dangle": "off", "no-var": "off", "jsx-a11y/no-noninteractive-tabindex": "off", "jsx-a11y/no-noninteractive-element-interactions": "off", "prefer-rest-params": "off", "@typescript-eslint/naming-convention": "off", "import/order": "off", "react/jsx-props-no-spreading": "off", "@typescript-eslint/no-shadow": "off", "react/self-closing-comp": "off", "object-shorthand": "off", "func-names": "off", "no-plusplus": "off", "prefer-template": "off", "no-console": "off", "no-extend-native": "off", "import/no-duplicates": "off", "vars-on-top": "off", "react/style-prop-object": "off", "no-lonely-if": "off", "one-var": "off", "prefer-destructuring": "off" }, "overrides": [ { "files": [ "*.ts", "*.tsx" ], "parserOptions": { "ecmaVersion": 12, "project": [ "./tsconfig.json" ] } } ] }