2022-03-23 22:00:30 +00:00
|
|
|
/** @type {import("eslint").Linter.Config} */
|
2022-02-11 19:33:35 +00:00
|
|
|
module.exports = {
|
2022-05-17 19:53:29 +00:00
|
|
|
root: true,
|
2022-08-11 19:17:56 +00:00
|
|
|
extends: ["plugin:playwright/playwright-test", "next", "plugin:prettier/recommended", "turbo"],
|
2022-05-17 19:53:29 +00:00
|
|
|
parserOptions: {
|
|
|
|
tsconfigRootDir: __dirname,
|
|
|
|
project: ["./tsconfig.json"],
|
|
|
|
project: ["./apps/*/tsconfig.json", "./packages/*/tsconfig.json"],
|
|
|
|
},
|
2022-02-11 19:33:35 +00:00
|
|
|
settings: {
|
|
|
|
next: {
|
|
|
|
rootDir: ["apps/*/", "packages/*/"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
rules: {
|
2022-05-17 19:31:49 +00:00
|
|
|
"@next/next/no-img-element": "off",
|
2022-02-18 16:53:45 +00:00
|
|
|
"@next/next/no-html-link-for-pages": "off",
|
|
|
|
"jsx-a11y/role-supports-aria-props": "off", // @see https://github.com/vercel/next.js/issues/27989#issuecomment-897638654
|
2022-07-12 17:50:04 +00:00
|
|
|
"react/jsx-curly-brace-presence": ["error", { props: "never", children: "never" }],
|
2022-07-12 20:57:49 +00:00
|
|
|
"react/self-closing-comp": ["error", { component: true, html: true }],
|
2022-02-11 19:33:35 +00:00
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
2022-05-18 16:05:25 +00:00
|
|
|
files: ["*.ts", "*.tsx"],
|
2022-07-11 23:35:50 +00:00
|
|
|
extends: ["plugin:@typescript-eslint/recommended", "plugin:@calcom/eslint/recommended"],
|
|
|
|
plugins: ["@typescript-eslint", "@calcom/eslint"],
|
2022-05-18 16:05:25 +00:00
|
|
|
parser: "@typescript-eslint/parser",
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ["playwright/**/*.{tsx,ts}"],
|
|
|
|
rules: {
|
|
|
|
"no-undef": "off",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
files: ["playwright/**/*.{js,jsx}"],
|
2022-02-11 19:33:35 +00:00
|
|
|
rules: {
|
|
|
|
"no-undef": "off",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|