forked from github/plane
46 lines
1.0 KiB
JavaScript
46 lines
1.0 KiB
JavaScript
|
module.exports = {
|
||
|
extends: ["next", "turbo", "prettier"],
|
||
|
parser: "@typescript-eslint/parser",
|
||
|
parserOptions: {
|
||
|
ecmaFeatures: {
|
||
|
jsx: true,
|
||
|
},
|
||
|
ecmaVersion: 12,
|
||
|
sourceType: "module",
|
||
|
},
|
||
|
plugins: ["react", "@typescript-eslint"],
|
||
|
settings: {
|
||
|
next: {
|
||
|
rootDir: ["apps/*/", "packages/*/"],
|
||
|
},
|
||
|
},
|
||
|
rules: {
|
||
|
"@next/next/no-html-link-for-pages": "off",
|
||
|
"prefer-const": "error",
|
||
|
"no-irregular-whitespace": "error",
|
||
|
"no-trailing-spaces": "error",
|
||
|
"no-duplicate-imports": "error",
|
||
|
"arrow-body-style": ["error", "as-needed"],
|
||
|
"react/self-closing-comp": ["error", { component: true, html: true }],
|
||
|
"import/order": [
|
||
|
"warn",
|
||
|
{
|
||
|
groups: ["external", "parent", "sibling", "index", "object", "type"],
|
||
|
pathGroups: [
|
||
|
{
|
||
|
pattern: "@/**/**",
|
||
|
group: "parent",
|
||
|
position: "before",
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
"no-restricted-imports": [
|
||
|
"error",
|
||
|
{
|
||
|
patterns: ["../"],
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
};
|