535badf92e
Fix import circle Change-Id: I3588254da48ade79c31c99a6f03bd48c82350116
80 lines
2.1 KiB
Plaintext
80 lines
2.1 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"],
|
|
["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"
|
|
},
|
|
"globals": {
|
|
"t": true,
|
|
"globals": true,
|
|
"request": true
|
|
}
|
|
}
|