mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-26 20:30:10 +01:00
59 lines
1.0 KiB
JavaScript
59 lines
1.0 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": 150}
|
||
|
]
|
||
|
},
|
||
|
"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"}
|
||
|
]
|
||
|
}
|
||
|
};
|