First implementation of eslint/prettier

This commit is contained in:
Michael
2021-08-10 12:50:47 +02:00
parent fbd57c837c
commit 9bc6fae2c4
52 changed files with 2780 additions and 7675 deletions

52
.eslintrc.json Normal file
View File

@@ -0,0 +1,52 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"cypress/globals": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"prettier"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react",
"cypress",
"simple-import-sort",
"prettier"
],
"rules": {
"no-console": "off",
"react/no-unescaped-entities": "off",
"prettier/prettier": "error",
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [
2,
{
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
]
},
"settings": {
"import/resolver": {
"node": {
"paths": [
"."
]
}
}
}
}