chore: Add eslintrc and prettierrc

This commit is contained in:
Marcelo Fortunato 2020-11-05 10:44:23 +00:00
parent bbcf63b892
commit ae0d44a953
5 changed files with 1579 additions and 18 deletions

37
.eslintrc.json Normal file
View File

@ -0,0 +1,37 @@
{
"env": {
"browser": true,
"es2020": true,
"jest": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "react-hooks"],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off"
}
}

2
.gitignore vendored
View File

@ -18,6 +18,8 @@ out/
# misc # misc
.DS_Store .DS_Store
*.pem *.pem
.idea
.vscode
# debug # debug
npm-debug.log* npm-debug.log*

5
.prettierrc Normal file
View File

@ -0,0 +1,5 @@
{
"trailingComma": "none",
"semi": false,
"singleQuote": true
}

View File

@ -76,8 +76,15 @@
"@types/lodash.random": "^3.2.6", "@types/lodash.random": "^3.2.6",
"@types/node": "^14.11.2", "@types/node": "^14.11.2",
"@types/react": "^16.9.49", "@types/react": "^16.9.49",
"@typescript-eslint/eslint-plugin": "^4.6.1",
"@typescript-eslint/parser": "^4.6.1",
"bunyan": "^1.8.14", "bunyan": "^1.8.14",
"bunyan-prettystream": "^0.1.3", "bunyan-prettystream": "^0.1.3",
"eslint": "^7.12.1",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0",
"next-unused": "^0.0.3", "next-unused": "^0.0.3",
"postcss-flexbugs-fixes": "^4.2.1", "postcss-flexbugs-fixes": "^4.2.1",
"postcss-preset-env": "^6.7.0", "postcss-preset-env": "^6.7.0",

1546
yarn.lock

File diff suppressed because it is too large Load Diff