Skip to content

Commit

Permalink
chore(eslint): tweak lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaskasky committed Sep 24, 2024
1 parent a5f7881 commit 8f34eed
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,46 @@
}
},
"rules": {
"no-shadow": "off",
"no-return-await": "off",
"consistent-return": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
],
"react/button-has-type": "off",
"react/jsx-filename-extension": [
"error",
{ "extensions": [".js", ".tsx"] }
],
"react/prop-types": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-no-useless-fragment": "off",
"import/extensions": ["error", "never"],
"import/prefer-default-export": "off",
"import/no-unresolved": ["error", { "ignore": ["jotai-scope"] }],
"no-param-reassign": "off",
"no-promise-executor-return": "off",
"no-plusplus": "off",
"no-bitwise": "off",
"symbol-description": "off",
"prefer-object-spread": "off",
"no-return-assign": "off",
"no-use-before-define": "off",
"no-unused-vars": "off",
"no-redeclare": "off",
"camelcase": ["error", { "allow": ["^INTERNAL_"] }],
"camelcase": ["error", { "allow": ["^INTERNAL_", "^unstable_"] }],
"react/function-component-definition": [
"error",
{ "namedComponents": "function-declaration" }
],
"react/no-unescaped-entities": "off",
"react/no-array-index-key": "off",
"react/require-default-props": "off",
"react/destructuring-assignment": "off",
"react/jsx-no-constructed-context-values": "off",
Expand Down
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"singleQuote": true,
"trailingComma": "all"
"trailingComma": "all",
"semi": false,
"printWidth": 100
}

0 comments on commit 8f34eed

Please sign in to comment.