Skip to content

Commit

Permalink
add eslint files
Browse files Browse the repository at this point in the history
  • Loading branch information
YehiaFarghaly committed Oct 6, 2023
1 parent 70c7f0e commit df6e102
Show file tree
Hide file tree
Showing 88 changed files with 11,477 additions and 4,761 deletions.
46 changes: 46 additions & 0 deletions client/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"env": {
"node": true,
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"react-hooks"
],
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"windows"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"react/react-in-jsx-scope": "off",
"react/display-name": "off",
"react/prop-types": "off",
"react-hooks/exhaustive-deps": "error",
"object-curly-spacing": ["error", "always"],
"no-unused-vars": "error",
"arrow-spacing": ["error", { "before": true, "after": true }],
"no-duplicate-imports": "error",
"prefer-const": "error"
}
}
Loading

0 comments on commit df6e102

Please sign in to comment.