How/Where do you add EsLint to Theme?July 25, 2019 at 7:16pm
I'm following along with https://www.gatsbyjs.org/tutorial/building-a-theme/ and I'm confused about how\where to implement eslint and where to put an eslintrc.
Thanks to the new v6 of eslint, everything must be installed within a current working project = no more global installs nor .eslintrc files for vscode. + I know that Gatsby has some sort of default internal .eslint config....
- What packages should I install? eslint, eslint-react, anything else?
- Where do I install and put an eslintrc? Is there a way to do it just at the yarn-workspace root and have both folders share the config\files? Should I be installing it twice as dev dependencies in both site and theme separately?
I've used gatsby-plugin-eslint before with a starter so should I be installing that to the theme folder? as a dev-dependency?
(Mainly, I'm just annoyed by my linter constantly complaining about not being configured._)
Plz advise as I haz no idea whut I should be doing much less with themes.
July 25, 2019 at 7:48pm