Add code style config files
This commit is contained in:
parent
ca331a17dc
commit
a46cd0b98b
5 changed files with 528 additions and 3566 deletions
17
.editorconfig
Normal file
17
.editorconfig
Normal 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
9
.eslintrc
Normal 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
8
.prettierignore
Normal file
|
@ -0,0 +1,8 @@
|
|||
/build
|
||||
/node_modules
|
||||
/public
|
||||
*.min.js
|
||||
/cypress/videos
|
||||
/cypress/screenshots
|
||||
/cypress/medias
|
||||
/coverage
|
10
.prettierrc
Normal file
10
.prettierrc
Normal 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
4050
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue