Skip to content

Commit

Permalink
Update Prettier, ESLint Config; Treat Warnings as WARNINGS
Browse files Browse the repository at this point in the history
  • Loading branch information
gigincg committed Apr 5, 2022
1 parent 8f17488 commit 08fc980
Show file tree
Hide file tree
Showing 5 changed files with 3,570 additions and 359 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ REACT_APP_DASHBOARD_URL=http://dashboard.coronasafe.network/
REACT_APP_LIGHT_LOGO=https://cdn.coronasafe.network/light-logo.svg
REACT_APP_LIGHT_COLLAPSE_LOGO=
REACT_APP_BLACK_LOGO=https://cdn.coronasafe.network/black-logo.svg
REACT_APP_RECAPTCHA_SITE_KEY=6LdvxuQUAAAAADDWVflgBqyHGfq-xmvNJaToM0pN
REACT_APP_RECAPTCHA_SITE_KEY=6LdvxuQUAAAAADDWVflgBqyHGfq-xmvNJaToM0pN
ESLINT_NO_DEV_ERRORS=true
7 changes: 6 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
"browser": true,
"es2021": true
},
"settings": {
"react": {
"version": "detect"
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
Expand All @@ -23,5 +28,5 @@
"no-unused-vars": "warn",
"react/react-in-jsx-scope": "off"
},
"ignorePatterns": ["dist", "public", "lib", "build", "*.bs.js"]
"ignorePatterns": ["dist", "public", "lib", "build", "*.bs.js", "*.gen.tsx"]
}
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ dist
public
lib
build
*.css
*.gen.tsx
*.bs.js
9 changes: 8 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
{}
{
"singleQuote": false,
"useTabs": false,
"tabWidth": 2,
"semi": true,
"jsxSingleQuote": false,
"arrowParens": "always"
}
Loading

0 comments on commit 08fc980

Please sign in to comment.