mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
cd05ee0054
* Prevent focused tests by adding jest eslint rule * Remove redundant no-only-tests eslint plugin * Update lock file
29 lines
730 B
Plaintext
29 lines
730 B
Plaintext
{
|
|
"extends": ["@grafana/eslint-config"],
|
|
"root": true,
|
|
"plugins": ["@emotion", "lodash", "jest"],
|
|
"rules": {
|
|
"react/prop-types": "off",
|
|
"@emotion/jsx-import": "error",
|
|
"lodash/import-scope": [2, "member"],
|
|
"jest/no-focused-tests": "error"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["packages/grafana-ui/src/components/uPlot/**/*.{ts,tsx}"],
|
|
"rules": {
|
|
"react-hooks/rules-of-hooks": "off",
|
|
"react-hooks/exhaustive-deps": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["packages/grafana-ui/src/components/ThemeDemos/**/*.{ts,tsx}"],
|
|
"rules": {
|
|
"@emotion/jsx-import": "off",
|
|
"react/jsx-uses-react": "off",
|
|
"react/react-in-jsx-scope": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|