Skip to content

Instantly share code, notes, and snippets.

@gcnit
Last active June 26, 2021 12:55
Show Gist options
  • Save gcnit/b9a43a261ff9fbff45f2963a35226582 to your computer and use it in GitHub Desktop.
Save gcnit/b9a43a261ff9fbff45f2963a35226582 to your computer and use it in GitHub Desktop.
# Install eslint and prettier by running this on terminal in your project folder
npm install --save-dev babel-eslint css-loader eslint eslint-config-airbnb-base eslint-config-airbnb eslint-config-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks prettier style-loader
# Add .eslintrc.json to project folder. Make sure that the file that gets downloaded contains the '.' prefix.
https://raw.githubusercontent.com/workattech/ern-app/master/.eslintrc.json
# Add .prettierrc to project folder. Make sure that the file that gets downloaded contains the '.' prefix.
https://raw.githubusercontent.com/workattech/ern-app/master/.prettierrc
# Verify that both the files are in the project folder. Also verify if package.json and package-lock.json are updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment