loading...
markdown guide
 

Something like this?

This is for ES6

{
  "extends": "airbnb-base",
  "parserOptions": {
    "ecmaVersion": 6,
    "ecmaFeatures": {
      "impliedStrict": true
    }
  },
  "env": {
    "browser": true,
    "es6": true
  }
}

This is for ES5

{
  "extends": "eslint:recommended",
  "parserOptions": {
    "ecmaVersion": 5,
    "ecmaFeatures": {
      "impliedStrict": true
    }
  },
  "env": {
    "browser": true
  }
}

I have an old project with mixed ES5 and ES6 files and they are linted by different .eslintrc.json, with something like this:

eslint --fix --color --config .eslintrc.es5.json
 

The main problem is that the eslint config file is a yml file which is autocreated by yeoman. I couldn't use async await with that config.

Classic DEV Post from Feb 16

What Do You Find Difficult about SQL and Databases?

What Do You Find Difficult about SQL and Databases?

Sathish profile image
Developer, SkcriptHQ. Codes without coffee. I work on NodeJS, ReactJS, Ruby on Rails by day & Rust lang by night.