Skip to content

Commit

Permalink
ESLint tweaks (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleedesign authored May 16, 2024
1 parent f8c2cd5 commit 9b98359
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9b98359

Please sign in to comment.