Mutual-Aid-Medford-and-Somerville / mamas-needs-offers

MIT License
0 stars 4 forks source link

Eslint config #19

Open esetnik opened 4 years ago

esetnik commented 4 years ago

Currently the gatsby starter doesn't support showing linter errors in vscode out of the box. It'd be nice to add a .eslintrc to the project following these instructions https://www.gatsbyjs.org/docs/eslint/#how-to-use-eslint and by adding plugins https://www.gatsbyjs.org/packages/gatsby-plugin-eslint/

This issue is also reported in a few places: https://github.com/gatsbyjs/gatsby/issues/15959 https://github.com/gatsbyjs/gatsby/issues/15971

esetnik commented 4 years ago

For what it's worth I'm happy to use the react-app linter rules.

module.exports = {
  globals: {
    __PATH_PREFIX__: true,
  },
  extends: `react-app`,
}