sealday
aab43d17d0
<!-- Note --> <!-- This is a template for submitting a new feature. Use the bug fix template if you're submitting a bug fix pull request by adding `template=bug_fix.md` to your pull request URL. --> # Description <!-- Describe the new feature or modification to an existing feature clearly and consciously. --> # Motivation <!-- Explain the reason for adding or modifying this feature. --> # Key changes <!-- Provide a technically detailed description of the key changes made. --> - Frontend - Backend # Test plan ## Suggestions <!-- Provide any suggestions or recommendations for improvements in the testing plan. --> ## Underlying risk <!-- Identify any potential risks or issues that may arise from the new feature or modification. --> # Showcase <!-- Including any screenshots of the new feature or modification. --> Co-authored-by: sealday <sealday@gmail.com> Co-authored-by: wjh <wwwjh0710@163.com> Co-authored-by: 吕延祥 <2256334253@qq.com> Reviewed-on: daoyoucloud/nocobase#317
81 lines
1.8 KiB
Plaintext
Executable File
81 lines
1.8 KiB
Plaintext
Executable File
{
|
|
"env": {
|
|
"node": true,
|
|
"es6": true,
|
|
"browser": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:react-hooks/recommended",
|
|
"plugin:promise/recommended",
|
|
// "plugin:import/recommended",
|
|
"plugin:prettier/recommended"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": [
|
|
"@typescript-eslint",
|
|
"react",
|
|
"react-hooks",
|
|
"prettier",
|
|
"promise",
|
|
"jest-dom",
|
|
"testing-library"
|
|
//"import"
|
|
],
|
|
"globals": {
|
|
"sleep": true,
|
|
"prettyFormat": true
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
}
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 11,
|
|
"sourceType": "module",
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"project": "./tsconfig.json"
|
|
},
|
|
"rules": {
|
|
"@typescript-eslint/no-this-alias": "off",
|
|
"@typescript-eslint/ban-types": "off",
|
|
"no-unused-vars": "off",
|
|
"no-useless-catch": "off",
|
|
"@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",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
"promise/always-return": "off"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"**/e2e/**/*.{ts,js,tsx,jsx}",
|
|
"**/__e2e__/**/*.{ts,js,tsx,jsx}"
|
|
],
|
|
"rules": {
|
|
"@typescript-eslint/no-floating-promises": "error"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"packages/plugins/@hera/**/*.{ts,js,tsx,jsx}",
|
|
"packages/plugins/@hera/**/*.{ts,js,tsx,jsx}"
|
|
],
|
|
"rules": {
|
|
"eqeqeq": ["error", "smart"]
|
|
}
|
|
}
|
|
]
|
|
}
|