Add code style config files

This commit is contained in:
Leonardo Murça 2022-05-25 15:29:15 -03:00
parent ca331a17dc
commit a46cd0b98b
5 changed files with 528 additions and 3566 deletions

17
.editorconfig Normal file
View file

@ -0,0 +1,17 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[{package.json,*.yml,*.js}]
indent_style = space
indent_size = 2

9
.eslintrc Normal file
View file

@ -0,0 +1,9 @@
{
"extends": "react-app",
"plugins": ["prettier", "eslint-plugin-cypress", "react-hooks"],
"rules": {
"prettier/prettier": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}

8
.prettierignore Normal file
View file

@ -0,0 +1,8 @@
/build
/node_modules
/public
*.min.js
/cypress/videos
/cypress/screenshots
/cypress/medias
/coverage

10
.prettierrc Normal file
View file

@ -0,0 +1,10 @@
{
"singleQuote": true,
"useTabs": false,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 80,
"semi": true,
"bracketSpacing": true,
"arrowParens": "avoid"
}

4050
package-lock.json generated

File diff suppressed because it is too large Load diff