Skip to content

Commit

Permalink
Updated eslint and prettier configs and formatted code (#91)
Browse files Browse the repository at this point in the history
* updated linter and prettier

* formatted files with prettier + lint fix

* added google rules to eslint config

* fixes for linter

* fix

* fixes in .eslintrc.yml

* fixed code style
  • Loading branch information
trean authored Aug 3, 2023
1 parent 4554014 commit d4885c0
Show file tree
Hide file tree
Showing 73 changed files with 6,127 additions and 10,963 deletions.
28 changes: 26 additions & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,39 @@
env:
browser: true
es2021: true
node: true
settings:
react:
version: detect
root: true
extends:
- react-app
- eslint:recommended
- google
- prettier
- plugin:react/recommended
overrides: []
parserOptions:
ecmaVersion: latest
sourceType: module
plugins:
- react
rules: {}
rules:
{
'max-len': [
'error',
{
code: 120,
ignoreComments: true,
ignoreTemplateLiterals: true,
ignoreUrls: true,
},
],
'no-process-env': 'off',
'require-jsdoc': 'off',
'no-unused-vars': [
'error',
{
varsIgnorePattern: '^React$',
},
],
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

dist
build
coverage
node_modules
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"printWidth": 120
}
Loading

0 comments on commit d4885c0

Please sign in to comment.