53 lines
1.3 KiB
JavaScript
53 lines
1.3 KiB
JavaScript
|
module.exports = {
|
||
|
root: true,
|
||
|
parser: "@typescript-eslint/parser",
|
||
|
parserOptions: {
|
||
|
ecmaVersion: 2018,
|
||
|
sourceType: "module",
|
||
|
modules: true,
|
||
|
},
|
||
|
extends: [
|
||
|
"eslint:recommended",
|
||
|
"plugin:@typescript-eslint/eslint-recommended",
|
||
|
"plugin:@typescript-eslint/recommended",
|
||
|
"prettier",
|
||
|
"plugin:react/recommended",
|
||
|
"plugin:react-hooks/recommended",
|
||
|
"plugin:playwright/playwright-test",
|
||
|
],
|
||
|
plugins: ["@typescript-eslint", "prettier", "react", "react-hooks"],
|
||
|
settings: {
|
||
|
react: {
|
||
|
version: "detect",
|
||
|
},
|
||
|
next: {
|
||
|
rootDir: ["apps/*/", "packages/*/"],
|
||
|
},
|
||
|
},
|
||
|
rules: {
|
||
|
"prettier/prettier": ["error"],
|
||
|
"@typescript-eslint/no-unused-vars": "error",
|
||
|
"react/react-in-jsx-scope": "off",
|
||
|
"react/prop-types": "off",
|
||
|
"@typescript-eslint/explicit-function-return-type": "off",
|
||
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||
|
},
|
||
|
overrides: [
|
||
|
{
|
||
|
files: ["playwright/**/*.{js,jsx,tsx,ts}"],
|
||
|
rules: {
|
||
|
"no-undef": "off",
|
||
|
"@typescript-eslint/no-non-null-assertion": "off",
|
||
|
"@typescript-eslint/no-explicit-any": "off",
|
||
|
"@typescript-eslint/no-implicit-any": "off",
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
env: {
|
||
|
browser: true,
|
||
|
node: true,
|
||
|
es6: true,
|
||
|
jest: true,
|
||
|
},
|
||
|
};
|