graphql-engine/frontend/.eslintrc.json
Nicolas Beaussart 5cd32ffd2a frontend: house keeping
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8395
GitOrigin-RevId: e577c320e96227fe0c8c3dc85fc3170b12080c45
2023-03-21 08:52:51 +00:00

85 lines
2.0 KiB
JSON

{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"extends": ["plugin:@nrwl/nx/react"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"extends": ["plugin:storybook/recommended"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "none",
"varsIgnorePattern": "React"
}
],
"@typescript-eslint/no-restricted-imports": [
"error",
{
"paths": [
{
"name": "lodash",
"message": "Please use sub imports (eg, lodash/get) instead of the global lodash import.",
"allowTypeImports": true
}
]
}
],
"jsx-a11y/alt-text": "error"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {
"no-unused-vars": [
"error",
{
"args": "none",
"varsIgnorePattern": "React"
}
],
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "lodash",
"message": "Please use sub imports (eg, lodash/get) instead of the global lodash import."
}
]
}
],
"jsx-a11y/alt-text": "error"
}
},
{
"files": "*.json",
"parser": "jsonc-eslint-parser",
"rules": {}
}
]
}