mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 02:15:11 +00:00
840254f517
* chore: upgrade jest * fix: eslint * chore: github action backend test * fix: import * chore: export * fix: test
60 lines
1.3 KiB
Plaintext
Executable File
60 lines
1.3 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
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|