Skip to content

Commit

Permalink
SMA-20: added Prettier, ESLint and Husky configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ivamach committed Jan 28, 2024
1 parent 2861f9e commit 72069a5
Show file tree
Hide file tree
Showing 6 changed files with 1,486 additions and 66 deletions.
18 changes: 0 additions & 18 deletions frontend/sportsmatch-app/.eslintrc.cjs

This file was deleted.

47 changes: 47 additions & 0 deletions frontend/sportsmatch-app/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:import/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"react",
"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" } ]
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}
Loading

0 comments on commit 72069a5

Please sign in to comment.