Shared Superbalist linting rules for js
npm install Superbalist/eslint
In your project root
.eslintrc.js
module.exports={
extends: [
"./node_modules/eslint-config-superbalist/index.js"
]
}For additional support, one could add more sections to the extends array. Sections supported:
eslint-config-superbalist/index.jsStandard JavaScript / ES6 supporteslint-config-superbalist/vue.jsVueJs project supporteslint-config-superbalist/mocha.jsMocha project support
These are only starting points and you will need to specify any additional properties dierctly in your eslintrc.json file at project level
If you're using async (e.g. it("should pass", async () => {) you'll get the following error:
Parsing error: Unexpected token =>
Add the following to your .eslintrc.json:
"parserOptions": {
"ecmaVersion": 2017
}