Skip to content

Commit

Permalink
chore: fix rules
Browse files Browse the repository at this point in the history
  • Loading branch information
boomchanotai committed Dec 20, 2023
1 parent c66ae6d commit 5aba434
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,24 @@
},
"plugins": ["react", "@typescript-eslint", "react-hooks"],
"rules": {
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"react/jsx-filename-extension": ["warn", { "extensions": [".tsx"] }],
"import/extensions": ["error", "ignorePackages", { "ts": "never", "tsx": "never" }],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }],
"max-len": ["warn", { "code": 100, "ignoreComments": true, "ignoreUrls": true }],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/prefer-default-export": "off",
"react/prop-types": "off",
"prettier/prettier": ["error", { "endOfLine": "auto" }]
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"typescript": {}
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": ["node_modules", "src/"]
}
}
}
}

0 comments on commit 5aba434

Please sign in to comment.