mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-19 07:01:02 +01:00
5bc13e2fe8
* vmui: added focusLabel, enable app configuratior * vmui: set focusLabel if {labelName!=""} * wip * docs/CHANGELOG.md: mention about focusLabel feature in cardinality explorer Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2730 Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
63 lines
1.1 KiB
JavaScript
63 lines
1.1 KiB
JavaScript
module.exports = {
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 12,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"react",
|
|
"@typescript-eslint"
|
|
],
|
|
"rules": {
|
|
"indent": [
|
|
"error",
|
|
2,
|
|
{ "SwitchCase": 1 }
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"double"
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"react/prop-types": 0,
|
|
"max-lines": [
|
|
"error",
|
|
{
|
|
"max": 1000,
|
|
"skipBlankLines": true,
|
|
"skipComments": true,
|
|
}
|
|
]
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"pragma": "React", // Pragma to use, default to "React"
|
|
"version": "detect"
|
|
},
|
|
"linkComponents": [
|
|
// Components used as alternatives to <a> for linking, eg. <Link to={ url } />
|
|
"Hyperlink",
|
|
{"name": "Link", "linkAttribute": "to"}
|
|
]
|
|
}
|
|
};
|