diff --git a/.eslintrc.js b/.eslintrc.js index 0cf56bc..c1f73c1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -39,9 +39,22 @@ module.exports = { } ], 'no-console': 'warn', + 'no-empty-function': 'error', + 'no-unused-vars': 'off', 'react/prop-types': 0, 'react/react-in-jsx-scope': 0, - 'no-unused-vars': 'off', + 'react/jsx-no-duplicate-props': 1, + 'object-curly-spacing': ['error', 'always'], + 'react/sort-prop-types': [ + 2, + { + callbacksLast: true, + ignoreCase: true, + requiredFirst: true, + sortShapeProp: true, + noSortAlphabetically: true + } + ], 'unused-imports/no-unused-imports': 'error', 'unused-imports/no-unused-vars': [ 'warn', diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..3ca6aaf --- /dev/null +++ b/.prettierignore @@ -0,0 +1,4 @@ +node_modules +public +package-lock.json +.nyc_output \ No newline at end of file diff --git a/src/components/Banner.jsx b/src/components/Banner.jsx index 23909b2..a0acda2 100644 --- a/src/components/Banner.jsx +++ b/src/components/Banner.jsx @@ -112,9 +112,9 @@ export const Banner = ({ Banner.propTypes = { title: PropTypes.string.isRequired, + description: PropTypes.string.isRequired, titleOptions: PropTypes.object, descriptionOptions: PropTypes.object, - description: PropTypes.string.isRequired, image: PropTypes.string, video: PropTypes.string, mediaOptions: PropTypes.object, diff --git a/src/components/findwork/Body.jsx b/src/components/findwork/Body.jsx index a05b1e2..e42ef3b 100644 --- a/src/components/findwork/Body.jsx +++ b/src/components/findwork/Body.jsx @@ -5,8 +5,7 @@ import { Search } from './Search'; export const Body = () => { const jobsDummy = [ - { - title: 'Web & Product Designer', + { title: 'Web & Product Designer', location: 'Austin TX', logo: 'https://cdn.dribbble.com/users/732492/avatars/normal/7bb885b4424533a2d8806b1f90f97704.png?1613640457&compress=1&resize=96x96', post: 'The Graphic Standard', diff --git a/src/components/learnDesign/Banner.jsx b/src/components/learnDesign/Banner.jsx index 258cd82..0cf2835 100644 --- a/src/components/learnDesign/Banner.jsx +++ b/src/components/learnDesign/Banner.jsx @@ -1,3 +1,5 @@ +import React from 'react'; + import { Box, Button, @@ -8,7 +10,6 @@ import { Text, VStack, } from '@chakra-ui/react'; -import React from 'react'; const Banner = () => { return (