diff --git a/.eslintrc.json b/.eslintrc.json index d189bf8..7c977f9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -25,12 +25,14 @@ "rules": { "project-structure/file-structure": "error", "storybook/default-exports": "off", - "indent": ["warn", "tab", { + "indent": ["error", "tab", { "SwitchCase": 2, "FunctionExpression": { - "parameters": 2, + "parameters": 1, "body": 1 - } + }, + "MemberExpression": 1, + "offsetTernaryExpressions": true }], "quotes": [ "warn", @@ -56,6 +58,7 @@ "@typescript-eslint/no-var-requires": "off", "@typescript-eslint/no-inferrable-types": "off", "@typescript-eslint/ban-ts-comment": "off", + "@typescript-eslint/no-unused-vars": "warn", "react-refresh/only-export-components": [ "warn", { diff --git a/package.json b/package.json index 083c061..7b682a0 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "dev": "storybook dev --port 6006", "lint": "eslint ./src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", - "lint:fix": "eslint ./src --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix", + "lint:fix": "eslint ./src --ext ts,tsx --fix", "lint:structure": "eslint --parser ./node_modules/eslint-plugin-project-structure/dist/parser.js --rule project-structure/file-structure:error --ext .js,.jsx,.ts,.tsx,.html,.css,.svg,.png,.jpg,.json,.md .", "test:unit": "jest ./src/components/**/*.test.tsx --coverage", "storybook": "storybook dev --port 6006",