Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
commonjs: true,
es2021: true
},
extends: ['plugin:react/recommended', 'standard'],
extends: ['plugin:react/recommended', 'standard', 'plugin:storybook/recommended'],
overrides: [],
parserOptions: {
ecmaVersion: 'latest'
Expand All @@ -13,15 +13,13 @@ module.exports = {
rules: {
'multiline-ternary': ['error', 'never'],
'react/jsx-props-no-spreading': 'error',
'react/no-unused-prop-types': [
'error',
{
skipShapeProps: true,
additionalHooks: 'useRecoilCallback', // allows specific hooks as well
propTypes: {
css: PropTypes.any // allows the css prop to be unused
}
'react/no-unused-prop-types': ['error', {
skipShapeProps: true,
additionalHooks: 'useRecoilCallback',
// allows specific hooks as well
propTypes: {
css: PropTypes.any // allows the css prop to be unused
}
]
}]
}
}
};
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ build-storybook.log
.env.production.local
.cache
.parcel-cache

.yarn
npm-debug.log*
yarn-debug.log*
yarn-error.log*
storybook.log
3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.6.1.cjs
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@
"@storybook/addon-essentials": "^6.5.10",
"@storybook/addon-interactions": "^6.5.10",
"@storybook/addon-links": "^6.5.10",
"@storybook/addon-onboarding": "1.0.8",
"@storybook/blocks": "7.1.1",
"@storybook/builder-webpack5": "^6.5.16",
"@storybook/jest": "^0.0.10",
"@storybook/manager-webpack5": "^6.5.16",
"@storybook/react": "^6.5.10",
"@storybook/react-webpack5": "7.1.1",
"@storybook/test-runner": "^0.7.1",
"@storybook/testing-library": "^0.0.13",
"auto": "^10.37.6",
Expand All @@ -53,11 +56,13 @@
"eslint-plugin-n": "^15.2.5",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-react": "^7.31.8",
"eslint-plugin-storybook": "^0.6.13",
"jest": "^27.5.1",
"parcel": "^2.8.3",
"prettier": "^2.7.1",
"sass": "^1.58.3",
"sass-loader": "^13.2.0",
"storybook": "7.1.1",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
Expand All @@ -84,7 +89,8 @@
"react"
],
"engines": {
"node": "16.19.1",
"npm": "8.19.3"
}
"node": ">=16.19.1",
"npm": ">=8.19.3"
},
"packageManager": "[email protected]"
}
Loading