mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 18:42:30 +03:00
2643fef930
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6544 GitOrigin-RevId: 9f461c73f28b9d8d310fe6dfd02f4224a33ba156
92 lines
3.2 KiB
JSON
92 lines
3.2 KiB
JSON
{
|
|
"extends": ["plugin:@nrwl/nx/react", "../../../.eslintrc.json"],
|
|
"ignorePatterns": ["!**/*"],
|
|
"overrides": [
|
|
{
|
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
"rules": {
|
|
"@nrwl/nx/enforce-module-boundaries": [
|
|
"error",
|
|
{
|
|
"allowCircularSelfDependency": true
|
|
}
|
|
],
|
|
"react/forbid-dom-props": [
|
|
"error",
|
|
{
|
|
"forbid": [
|
|
{
|
|
"propName": "data-analytics-name",
|
|
"message": "Analytics attributes (data-analytics-name) should be added through the Analytics component/utilities"
|
|
},
|
|
{
|
|
"propName": "data-trackid",
|
|
"message": "Analytics attributes (data-trackid) should be added through the Analytics component/utilities"
|
|
},
|
|
{
|
|
"propName": "data-heap-redact-text",
|
|
"message": "Analytics attributes (data-heap-redact-text) should be added through the Analytics component/utilities"
|
|
},
|
|
{
|
|
"propName": "data-heap-redact-attributes",
|
|
"message": "Analytics attributes (data-heap-redact-attributes) should be added through the Analytics component/utilities"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"react/forbid-component-props": [
|
|
"error",
|
|
{
|
|
"forbid": [
|
|
{
|
|
"propName": "data-analytics-name",
|
|
"message": "Analytics attributes (data-analytics-name) should be added through the Analytics component/utilities"
|
|
},
|
|
{
|
|
"propName": "data-trackid",
|
|
"message": "Analytics attributes (data-trackid) should be added through the Analytics component/utilities"
|
|
},
|
|
{
|
|
"propName": "data-heap-redact-text",
|
|
"message": "Analytics attributes (data-heap-redact-text) should be added through the Analytics component/utilities"
|
|
},
|
|
{
|
|
"propName": "data-heap-redact-attributes",
|
|
"message": "Analytics attributes (data-heap-redact-attributes) should be added through the Analytics component/utilities"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.ts", "*.tsx"],
|
|
"rules": {
|
|
"@typescript-eslint/no-empty-function": "warn",
|
|
"@typescript-eslint/ban-types": "warn",
|
|
"@typescript-eslint/no-namespace": "warn",
|
|
"@typescript-eslint/no-empty-interface": "warn",
|
|
"@typescript-eslint/no-var-requires": "warn",
|
|
"no-case-declarations": "warn",
|
|
"no-unsafe-optional-chaining": "warn",
|
|
"no-useless-catch": "warn"
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.js", "*.jsx"],
|
|
"rules": {
|
|
"@typescript-eslint/no-empty-function": "warn",
|
|
"@typescript-eslint/no-empty-interface": "warn",
|
|
"no-case-declarations": "warn",
|
|
"import/first": "warn",
|
|
"no-undef": "warn",
|
|
"no-restricted-globals": "warn",
|
|
"no-prototype-builtins": "warn",
|
|
"@typescript-eslint/no-this-alias": "warn",
|
|
"no-unsafe-optional-chaining": "warn",
|
|
"no-useless-catch": "warn"
|
|
}
|
|
}
|
|
]
|
|
}
|