Skip to content

Commit

Permalink
Storybook fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amivanoff committed Jun 5, 2019
1 parent 43c7d70 commit e450ec2
Show file tree
Hide file tree
Showing 7 changed files with 7,863 additions and 12,449 deletions.
12 changes: 8 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"node": true,
"jest": true
},
"extends": ["react-app", "airbnb", "prettier", "prettier/react"],
"extends": ["react-app", "plugin:import/errors", "plugin:import/warnings", "airbnb", "prettier", "prettier/react"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
Expand All @@ -17,7 +17,7 @@
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["import", "prettier", "react"],
"plugins": ["import", "prettier", "react", "react-hooks"],
"rules": {
"prettier/prettier": [
"error",
Expand All @@ -30,7 +30,8 @@
"arrowParens": "always",
"trailingComma": "all",
"jsxBracketSameLine": true,
"jsxSingleQuote": true
"jsxSingleQuote": true,
"endOfLine": "lf"
}
],
"class-methods-use-this": [
Expand All @@ -49,6 +50,8 @@
]
}
],
"import/no-default-export": "warn",
"import/prefer-default-export": "off",
"no-alert": "error",
"no-await-in-loop": "warn",
"no-console": "off",
Expand All @@ -69,7 +72,8 @@
"react/no-multi-comp": "off",
"react/no-array-index-key": "off",
"react/no-did-update-set-state": "off",
"import/prefer-default-export": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"jsx-a11y/anchor-is-valid": [
"error",
{
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"arrowParens": "always",
"trailingComma": "all",
"jsxBracketSameLine": true,
"jsxSingleQuote": true
"jsxSingleQuote": true,
"endOfLine": "lf"
}
4 changes: 2 additions & 2 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"baseUrl": ".",
"baseUrl": "src",
"paths": {
"*": ["src/*"]
}
}
}
}
Loading

0 comments on commit e450ec2

Please sign in to comment.