2022-08-05 21:52:47 +03:00
|
|
|
{
|
|
|
|
"extends": ["plugin:@nrwl/nx/react", "../../.eslintrc.json"],
|
2022-12-16 17:36:11 +03:00
|
|
|
"ignorePatterns": ["!**/*", "src/assets/**"],
|
2022-08-05 21:52:47 +03:00
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
2022-10-28 19:21:52 +03:00
|
|
|
"rules": {
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2022-08-05 21:52:47 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["*.ts", "*.tsx"],
|
|
|
|
"rules": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["*.js", "*.jsx"],
|
|
|
|
"rules": {}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|