{ "parser": "babel-eslint", "extends": [ "airbnb-base" ], "root": true, "env": { "browser": true, "node": true }, "rules": { "class-methods-use-this": "off", "no-new": "off", "no-underscore-dangle": [ "error", { "allowAfterThis": true } ], "no-restricted-syntax": [ "error", { "selector": "ForInStatement", "message": "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array." }, //Only forOfStatement is allowed on this project // { // "selector": "ForOfStatement", // "message": "iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations." // }, { "selector": "LabeledStatement", "message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand." }, { "selector": "WithStatement", "message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize." } ] } }