3b7c1345cc
* test: add tests for lazy loading of association fields * refactor: migrate * test: add tests for page * test: add tests for page menu * test: add tests for tabs * test: add tests for detail block * test: add tests for list block * test: add tests for grid card block * test: add tests for filter collapse block * test: add tests for markdown block * test: add tests for table block * test: add tests for table block * test: add tests for lazy loading of association fields * test: add tests for data scope * test: add tests for filter block * test: add tests for block template * test: add tests for drag and sorting * test: add tests for sorting rules * test: make testing more stable * Revert "test: make testing more stable" This reverts commit 78b7badeb65bfc603fb746efbdb8e242a763ae6a. * perf: remove enableToConfig * test: make testing more stable * test: make testing more stable * test: delete newly created records to make tests more stable * fix: fix error when deleting records * test: make testing more stable * test: make testing more stable * test: fix tests * refactor: optimize file structure * test: fix tests * test: fix tests * refactor: optimize description * refactor: optimize description * refactor: use __e2e__ as the root directory for test files * fix: fix build * test: make testing more stable
72 lines
1.6 KiB
Plaintext
Executable File
72 lines
1.6 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"
|
|
}
|
|
}
|
|
]
|
|
}
|