7ac40b2650
1. Update base client to support service disable 2. Remove volume in create instance if no-cinder 3. Remove cinder services in overview page if no-cinder 4. Remove some storage services if no-cinder 5. Remove volume in monitor centers if no-cinder Change-Id: Ib6f8f3ed86098b4097b0428b48f0b136bf5ee349 Closes-Bug: #1939984
143 lines
3.0 KiB
Plaintext
143 lines
3.0 KiB
Plaintext
{
|
|
"extends": [
|
|
"airbnb",
|
|
"plugin:prettier/recommended"
|
|
],
|
|
"parser": "babel-eslint",
|
|
"plugins": [
|
|
"cypress",
|
|
"spellcheck"
|
|
],
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaFeatures": {
|
|
"jsx": true,
|
|
"modules": true,
|
|
"legacyDecorators": true
|
|
}
|
|
},
|
|
"env": {
|
|
"es6": true,
|
|
"commonjs": true,
|
|
"browser": true,
|
|
"jest": true,
|
|
"cypress/globals": true
|
|
},
|
|
"settings": {
|
|
"import/resolver": {
|
|
"alias": {
|
|
"map": [
|
|
[
|
|
"@",
|
|
"./src"
|
|
],
|
|
[
|
|
"src",
|
|
"./src"
|
|
],
|
|
[
|
|
"image",
|
|
"./src/asset/image"
|
|
],
|
|
[
|
|
"components",
|
|
"./src/components"
|
|
],
|
|
[
|
|
"utils",
|
|
"./src/utils"
|
|
],
|
|
[
|
|
"stores",
|
|
"./src/stores"
|
|
],
|
|
[
|
|
"pages",
|
|
"./src/pages"
|
|
],
|
|
[
|
|
"containers",
|
|
"./src/containers"
|
|
],
|
|
[
|
|
"layouts",
|
|
"./src/layouts"
|
|
],
|
|
[
|
|
"client",
|
|
"./src/client"
|
|
],
|
|
[
|
|
"resources",
|
|
"./src/resources"
|
|
],
|
|
[
|
|
"core",
|
|
"./src/core"
|
|
],
|
|
[
|
|
"asset",
|
|
"./src/asset"
|
|
]
|
|
],
|
|
"extensions": [
|
|
".js",
|
|
".jsx"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"rules": {
|
|
"camelcase": "warn",
|
|
"react/prop-types": "warn",
|
|
"class-methods-use-this": "off",
|
|
"react/prefer-stateless-function": "warn",
|
|
"no-plusplus": "warn",
|
|
"no-param-reassign": "warn",
|
|
"react/jsx-props-no-spreading": "warn",
|
|
"react/static-property-placement": "warn",
|
|
"prefer-destructuring": "warn",
|
|
"no-use-before-define": "warn",
|
|
"react/forbid-prop-types": "warn",
|
|
"react/no-array-index-key": "warn",
|
|
"react/require-default-props": "warn",
|
|
"consistent-return": "warn",
|
|
"no-underscore-dangle": "warn",
|
|
"no-unused-expressions": "warn",
|
|
"no-empty": [
|
|
2,
|
|
{
|
|
"allowEmptyCatch": true
|
|
}
|
|
],
|
|
"react/destructuring-assignment": "warn",
|
|
"jsx-a11y/click-events-have-key-events": "warn",
|
|
"jsx-a11y/no-static-element-interactions": "warn",
|
|
"import/no-extraneous-dependencies": "warn",
|
|
"import/prefer-default-export": "off",
|
|
"no-nested-ternary": "warn",
|
|
"import/no-named-as-default": "warn",
|
|
"global-require": "off",
|
|
"spellcheck/spell-checker": [
|
|
"warn",
|
|
{
|
|
"comments": true,
|
|
"strings": true,
|
|
"identifiers": true,
|
|
"templates": true,
|
|
"lang": "en_US",
|
|
"skipWords": [],
|
|
"skipIfMatch": [],
|
|
"skipWordIfMatch": [],
|
|
"minLength": 3
|
|
}
|
|
],
|
|
"linebreak-style": ["error", "unix"]
|
|
},
|
|
"globals": {
|
|
"t": true,
|
|
"globals": true,
|
|
"request": true,
|
|
"METRICDICT": true
|
|
}
|
|
} |