skyline-console/.eslintrc
Hanxiang Gao 4eb68e7fb2 feat: Add initial code of skyline-console
Add initial code of skyline-console

Change-Id: Icba2152a014761f53789357b5085d0779cd0e2a4
2021-06-01 23:29:30 +08:00

78 lines
2.0 KiB
Plaintext

{
"extends": ["airbnb", "plugin:prettier/recommended"],
"parser": "babel-eslint",
"plugins": ["cypress"],
"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"]
],
"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",
"import/no-cycle": "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": "warn",
"no-nested-ternary": "warn",
},
"globals": {
"t": true,
"globals": true,
"request": true
}
}