mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 11:20:27 -06:00
a97e9a1e17
* Update dependency rollup to v3 * build(rollup): update all rollup related deps to latest version * chore(runtime): update peerDeps to match other package semver ranges * chore(yarn): refresh lock file * refactor(packages): migrate to esm for rollup@3 configs * build(packages): remove unused rollup dependencies --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
28 lines
597 B
Plaintext
28 lines
597 B
Plaintext
{
|
|
"rules": {
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{ "patterns": ["@grafana/runtime", "@grafana/ui", "@grafana/data", "@grafana/e2e/*"] }
|
|
]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.test.{ts,tsx}"],
|
|
"rules": {
|
|
"no-restricted-imports": "off"
|
|
}
|
|
},
|
|
// rollup v3 uses esm modules
|
|
{
|
|
"files": ["rollup.config.mjs"],
|
|
"parser": "@babel/eslint-parser",
|
|
"parserOptions": {
|
|
"requireConfigFile": false,
|
|
"babelOptions": {
|
|
"plugins": ["@babel/plugin-syntax-import-assertions"]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|