mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
update eslint rules
This commit is contained in:
3 files changed
+11
-6
No files matched your search
@@ -23,6 +23,7 @@ const compilerOptionsBase = {
|
||||
jsx: 'react-jsx',
|
||||
sourceMap: false,
|
||||
composite: true,
|
||||
strict: false,
|
||||
strictBindCallApply: true,
|
||||
resolveJsonModule: true,
|
||||
experimentalDecorators: true,
|
||||
|
||||
@@ -57,6 +57,10 @@ const base = (option, ...args) => antfu(
|
||||
curly: ['error', 'multi-line'],
|
||||
'default-param-last': 'off',
|
||||
'dot-notation': 0,
|
||||
|
||||
'e18e/prefer-array-some': 'off',
|
||||
'e18e/prefer-array-to-sorted': 'off',
|
||||
'e18e/prefer-static-regex': 'off',
|
||||
'eslint-comments/no-unlimited-disable': 'off',
|
||||
'func-names': 0,
|
||||
'function-call-argument-newline': 0,
|
||||
|
||||
@@ -5,16 +5,16 @@
|
||||
"main": "base.mjs",
|
||||
"repository": "https://github.com/hydro-dev/Hydro",
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config": "^7.6.1",
|
||||
"@eslint-react/eslint-plugin": "^2.13.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
||||
"@typescript-eslint/parser": "^8.56.1",
|
||||
"eslint-plugin-de-morgan": "^2.0.0",
|
||||
"@antfu/eslint-config": "^7.7.3",
|
||||
"@eslint-react/eslint-plugin": "^3.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.57.2",
|
||||
"@typescript-eslint/parser": "^8.57.2",
|
||||
"eslint-plugin-de-morgan": "^2.1.1",
|
||||
"eslint-plugin-github": "^6.0.0",
|
||||
"eslint-plugin-react-hooks": "^7.0.1",
|
||||
"eslint-plugin-react-refresh": "^0.5.2",
|
||||
"eslint-plugin-simple-import-sort": "^12.1.1",
|
||||
"globals": "^17.3.0"
|
||||
"globals": "^17.4.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": ">= 9"
|
||||
|
||||
Reference in new issue
Block a user