Skip to content

Instantly share code, notes, and snippets.

@adrianmcli
Last active December 28, 2021 01:15
Show Gist options
  • Save adrianmcli/f33bbf7dad8cf3775b8178fdd3e18b57 to your computer and use it in GitHub Desktop.
Save adrianmcli/f33bbf7dad8cf3775b8178fdd3e18b57 to your computer and use it in GitHub Desktop.
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
},
"ecmaFeatures": {
"modules": true,
"jsx": true
}
}
@benkoshy
Copy link

benkoshy commented May 6, 2021

Hi Adrian

Thank you for your post here: https://medium.com/@adrianmcli/setting-up-sublime-text-3-for-reactjs-3bf6baceb73a

In it a comment is made:

As for configuration, you’ll add a .eslintrc file to your project folders. In order to enable ES6, JSX, and modules, you’ll need to have the following rules in the config file:

Would you be able to elaborate on where the .eslintrc file should go, and which / where config file to put it in?

Chrs, Appreciate the post.

@adrianmcli
Copy link
Author

The project root is where it should go, but I am not sure if the configuration above is still relevant. Please refer to the ESLint documentation: https://eslint.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment