Skip to content

Commit

Permalink
Merge pull request #14 from chdonncha/chore/add-eslintrc-config
Browse files Browse the repository at this point in the history
🔧 Add eslintrc config file
  • Loading branch information
chdonncha authored Jul 17, 2024
2 parents 27e9dd9 + 69c40ab commit d8c41b3
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
module.exports = {
extends: [
"react-app",
"react-app/jest",
],
settings: {
react: {
version: "detect",
},
},
env: {
browser: true,
jest: true,
},
rules: {
"semi": [2, "always"],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never",
},
],
"no-unused-expressions": "off",
"no-unused-vars": "off",
"dot-notation": "off",
"camelcase": "off",
"@typescript-eslint/no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true,
"allowTaggedTemplates": true,
},
],
"@typescript-eslint/no-unused-vars": ["warn", {
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_",
}],
"react/prop-types": "off",
"react/display-name": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/order": ["error", {
"newlines-between": "always-and-inside-groups",
"groups": ["builtin", "external", ["parent", "sibling"], "index"],
"alphabetize": {
"order": "asc",
"caseInsensitive": true,
},
}],
"import/no-default-export": "error",
},
};

0 comments on commit d8c41b3

Please sign in to comment.