{ // http://eslint.org/docs/rules/ "parser": "babel-eslint", "extends": ["prettier"], "env": { "browser": true, // browser global variables. "node": true, // Node.js global variables and Node.js-specific rules. "worker": false, // web workers global variables. "amd": false, // defines require() and define() as global variables as per the amd spec. "mocha": false, // adds all of the Mocha testing global variables. "jasmine": false, // adds all of the Jasmine testing global variables for version 1.3 and 2.0. "phantomjs": false, // phantomjs global variables. "jquery": false, // jquery global variables. "prototypejs": false, // prototypejs global variables. "shelljs": false, // shelljs global variables. "meteor": false, // meteor global variables. "mongo": false, // mongo global variables. "applescript": false, // applescript global variables. "es6": true // enable all ECMAScript 6 features except for modules. }, "globals": { "goog": true }, "plugins": ["prettier"], "rules": { "no-extra-semi": 1, // disallow unnecessary semicolons "no-inner-declarations": 2, // disallow function or variable declarations in nested blocks "no-use-before-define": ["error", { "functions": true, "classes": true }], "curly": 2, // specify curly brace conventions for all control statements "no-eval": 2, "no-extend-native": 2, // disallow adding to native types "no-new-wrappers": 2, // disallows creating new instances of String, Number, and Boolean "no-with": 2, "no-return-await": 2, "no-undef": 2, // disallow use of undeclared variables unless mentioned in a /*global */ block "no-var": 2, "prefer-const": ["error", { "destructuring": "all", "ignoreReadBeforeAssign": false }], "no-array-constructor": 2, "no-new-object": 2, "prettier/prettier": "error", "react/jsx-no-bind": 0, "react/jsx-no-duplicate-props": 2, "react/self-closing-comp": 2, "react/prefer-es6-class": 2, "react/no-string-refs": 2, "react/require-render-return": 2, "react/no-find-dom-node": 1, "react/no-is-mounted": 2, "react/jsx-no-comment-textnodes": 2, "react/jsx-curly-spacing": 2, "react/jsx-no-undef": 2, "react/jsx-uses-react": 2 } }