eslint/prettier config files added

This commit is contained in:
Adrian Pirela 2021-08-26 21:24:08 -05:00
parent f50d3af74b
commit f9f6d6ce8e
4 changed files with 38 additions and 0 deletions

3
.env Normal file
View File

@ -0,0 +1,3 @@
# supress error of the eslint latest version with
# older packages of create-react-app
SKIP_PREFLIGHT_CHECK=true

1
.eslintignore Normal file
View File

@ -0,0 +1 @@
node_modules/

26
.eslintrc.json Normal file
View File

@ -0,0 +1,26 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"prettier/prettier": "warn",
"react/prop-types": "off"
}
}

8
.prettierrc.json Normal file
View File

@ -0,0 +1,8 @@
{
"arrowParens": "avoid",
"bracketSpacing": true,
"printWidth": 120,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "all"
}