Skip to content

Commit

Permalink
fix: eslint (nocobase#1759)
Browse files Browse the repository at this point in the history
* fix: eslint

* fix: eslint --fix

* fix: changelog
  • Loading branch information
chenos authored Apr 25, 2023
1 parent fb997bc commit 883f1e6
Show file tree
Hide file tree
Showing 627 changed files with 11,470 additions and 7,474 deletions.
9 changes: 8 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@ packages/element
esm
doc-site
public
package
packages/*/*/client.d.ts
packages/*/*/server.d.ts
packages/*/*/client.js
packages/*/*/server.js
packages/core/build
packages/core/dumi-theme-nocobase
packages/core/devtools
packages/core/database/src/sql-parser/index.js
44 changes: 35 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,46 @@
{
"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",
"env": {
"node": true
},
"plugins": [
"@typescript-eslint",
"react",
"react-hooks",
"prettier",
"promise"
//"import"
],
"globals": {
"sleep": true,
"prettyFormat": true
},
"settings": {
"react": {
"version": "detect"
}
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
"ecmaVersion": 11,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react-hooks"
],
"rules": {
"react-hooks/rules-of-hooks": "error"
"no-unused-vars": "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"
}
}
1,614 changes: 1,614 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] }
module.exports = { extends: ['@commitlint/config-conventional'] };
2,126 changes: 1,601 additions & 525 deletions docs/en-US/welcome/release/index.md

Large diffs are not rendered by default.

Loading

0 comments on commit 883f1e6

Please sign in to comment.