Skip to content

Commit

Permalink
fix: eslint noconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
wkylin committed Nov 10, 2024
1 parent 2cdb7d8 commit 4ab4115
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"browser": true
},
"extends": ["plugin:react/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "react-hooks", "prettier"],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react/display-name": "off",
"react-hooks/exhaustive-deps": "off",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"semi": "off",
"no-use-before-define": "off",
"comma-dangle": "off",
"space-before-function-paren": "off",
"multiline-ternary": "off",
"promise/param-names": "off",
"no-debugger": "off",
"react/prop-types": "off",
"no-extra-parens": "off",
"eol-last": "off",
"jsx-quotes": "off",
"space-before-blocks": "off",
"max-len": "off",
"strict": "off",
"no-promise-executor-return": "off",
"no-bitwise": "off",
"no-return-assign": "off",
"consistent-return": "off",
"global-require": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"no-console": "off",
"import/extensions": "off",
"no-nested-ternary": "off",
"array-callback-return": "off",
"no-shadow": "off",
"no-inner-declarations": "off",
"no-unused-expressions": "off",
"no-unused-vars": "off",
"no-plusplus": "off"
}
}

0 comments on commit 4ab4115

Please sign in to comment.