2020-10-24 15:34:43 +08:00
|
|
|
{
|
2023-07-26 17:53:51 +08:00
|
|
|
"env": {
|
|
|
|
"node": true,
|
|
|
|
"es6": true,
|
|
|
|
"browser": true
|
|
|
|
},
|
2023-04-25 13:12:14 +08:00
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:react-hooks/recommended",
|
|
|
|
"plugin:promise/recommended",
|
|
|
|
// "plugin:import/recommended",
|
|
|
|
"plugin:prettier/recommended"
|
|
|
|
],
|
2020-10-24 15:34:43 +08:00
|
|
|
"parser": "@typescript-eslint/parser",
|
2023-04-25 13:12:14 +08:00
|
|
|
"plugins": [
|
|
|
|
"@typescript-eslint",
|
|
|
|
"react",
|
|
|
|
"react-hooks",
|
|
|
|
"prettier",
|
2023-07-08 08:26:27 +08:00
|
|
|
"promise",
|
|
|
|
"jest-dom",
|
|
|
|
"testing-library"
|
2023-04-25 13:12:14 +08:00
|
|
|
//"import"
|
|
|
|
],
|
2020-10-24 15:34:43 +08:00
|
|
|
"globals": {
|
|
|
|
"sleep": true,
|
|
|
|
"prettyFormat": true
|
|
|
|
},
|
2023-04-25 13:12:14 +08:00
|
|
|
"settings": {
|
|
|
|
"react": {
|
|
|
|
"version": "detect"
|
|
|
|
}
|
|
|
|
},
|
2020-10-24 15:34:43 +08:00
|
|
|
"parserOptions": {
|
2023-04-25 13:12:14 +08:00
|
|
|
"ecmaVersion": 11,
|
|
|
|
"sourceType": "module",
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
2023-09-27 20:00:17 +08:00
|
|
|
},
|
|
|
|
"project": "./tsconfig.json"
|
2023-04-19 23:01:03 +08:00
|
|
|
},
|
|
|
|
"rules": {
|
2023-07-07 14:35:22 +08:00
|
|
|
"@typescript-eslint/no-this-alias": "off",
|
|
|
|
"@typescript-eslint/ban-types": "off",
|
2023-04-25 13:12:14 +08:00
|
|
|
"no-unused-vars": "off",
|
2023-07-25 09:26:10 +08:00
|
|
|
"no-useless-catch": "off",
|
2023-04-25 13:12:14 +08:00
|
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
|
|
"no-empty-function": "off",
|
|
|
|
"@typescript-eslint/no-empty-function": "off",
|
|
|
|
"react/display-name": "off",
|
|
|
|
"react/prop-types": "off",
|
|
|
|
"no-explicit-any": "off",
|
2023-04-26 22:32:45 +08:00
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
2023-06-07 20:44:16 +08:00
|
|
|
"@typescript-eslint/no-var-requires": "off",
|
2023-09-28 17:51:45 +08:00
|
|
|
"promise/always-return": "off"
|
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": [
|
2023-12-13 14:14:33 +08:00
|
|
|
"**/e2e/**/*.{ts,js,tsx,jsx}",
|
|
|
|
"**/__e2e__/**/*.{ts,js,tsx,jsx}"
|
2023-09-28 17:51:45 +08:00
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/no-floating-promises": "error"
|
|
|
|
}
|
2024-03-07 20:45:00 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"packages/plugins/@hera/**/*.{ts,js,tsx,jsx}",
|
|
|
|
"packages/plugins/@hera/**/*.{ts,js,tsx,jsx}"
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"eqeqeq": ["error", "smart"]
|
|
|
|
}
|
2023-09-28 17:51:45 +08:00
|
|
|
}
|
|
|
|
]
|
2023-04-19 23:01:03 +08:00
|
|
|
}
|