mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
chore(lint): small clean up of lint errors wip on #312
This commit is contained in:
+6
-3
@@ -15,9 +15,15 @@ module.exports = {
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
"plugin:react/recommended",
|
||||
"plugin:react-hooks/recommended",
|
||||
"prettier",
|
||||
"prettier/@typescript-eslint",
|
||||
],
|
||||
settings: {
|
||||
react: {
|
||||
version: "16.13.1",
|
||||
},
|
||||
},
|
||||
parser: "@typescript-eslint/parser",
|
||||
parserOptions: {
|
||||
project: "tsconfig.json",
|
||||
@@ -185,7 +191,6 @@ module.exports = {
|
||||
"no-var": "error",
|
||||
"object-shorthand": "error",
|
||||
"one-var": ["error", "never"],
|
||||
"prefer-arrow/prefer-arrow-functions": "error",
|
||||
"prefer-const": "error",
|
||||
"prefer-object-spread": "error",
|
||||
"quote-props": "off",
|
||||
@@ -208,9 +213,7 @@ module.exports = {
|
||||
"error",
|
||||
{
|
||||
rules: {
|
||||
"object-curly-spacing": true,
|
||||
"prefer-conditional-expression": true,
|
||||
"react-hooks-nesting": true,
|
||||
typedef: [
|
||||
true,
|
||||
"parameter",
|
||||
|
||||
Reference in New Issue
Block a user