init: correct .eslintrc and add .prettierrc

This commit is contained in:
2023-06-02 21:26:49 +01:00
parent 3a760d2646
commit aa697cb677
2 changed files with 27 additions and 4 deletions

View File

@@ -8,12 +8,15 @@
"parserOptions": {
"requireConfigFile": false,
"babelOptions": {
"presets": ["@babel/preset-react"]
"presets": [
"@babel/preset-react"
]
}
},
},
"extends": [
"react-app",
"airbnb",
"prettier",
"plugin:prettier/recommended"
],
"plugins": [
@@ -58,7 +61,12 @@
]
}
],
"import/no-extraneous-dependencies": ["warn", {"devDependencies": true}],
"import/no-extraneous-dependencies": [
"warn",
{
"devDependencies": true
}
],
"no-unused-vars": "off",
"no-console": "off",
"no-use-before-define": "off",
@@ -82,4 +90,4 @@
"react/jsx-no-bind": "off",
"unused-imports/no-unused-imports": "warn"
}
}
}

15
.prettierrc Normal file
View File

@@ -0,0 +1,15 @@
{
"arrowParens": "always",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 100,
"proseWrap": "always",
"quoteProps": "as-needed",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"endOfLine": "auto"
}