Skip to content

Instantly share code, notes, and snippets.

@tgaff
Last active September 11, 2019 07:01
Show Gist options
  • Save tgaff/a20cf66b350175333f6008a393cec82f to your computer and use it in GitHub Desktop.
Save tgaff/a20cf66b350175333f6008a393cec82f to your computer and use it in GitHub Desktop.
.eslintrc.json for working with ignite
{
"parser": "babel-eslint",
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"sourceType": "module",
"allowImportExportEverywhere": false
},
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"no-console": 0
}
}

You'll also need to:

npm install --save-dev eslint eslint-plugin-react babel-eslint

@NobsterDev
Copy link

NobsterDev commented Sep 11, 2019

Almost pulled a gun to my head and this code appeared. Trying

edit: working flawless

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