// http://eslint.org/docs/user-guide/configuring module.exports = { root: true, parser: 'babel-eslint', parserOptions: { ecmaVersion: 2017, ecmaFeatures: { experimentalObjectRestSpread: true, generators: true }, sourceType: 'module' }, env: { jest: true, es6: true, node: true, browser: true, commonjs: true, jquery: true, mocha: true }, // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style extends: 'standard', // required to lint *.vue files plugins: [ 'html' ], // add your custom rules here rules: { "no-console": [ "warn", { "allow": [ "warn", "error" ] } ], "no-return-assign": 0, "no-underscore-dangle": 0, "arrow-body-style": 0, "prefer-arrow-callback": 0, "func-names": 0, "global-require": 0, "semi": [ 2, "never" ], "newline-per-chained-call": [ 0 ], "no-proto": 0, "no-plusplus": 0, "quote-props": [ 2, "consistent-as-needed" ], "import/no-extraneous-dependencies": [ 0, { "devDependencies": false, "optionalDependencies": false } ], "no-confusing-arrow": "off", "no-unused-vars": "off", "arrow-parens": [ "error", "as-needed" ], "no-unused-expressions": [ "off", { "allowShortCircuit": true, "allowTernary": true } ], "no-empty-function": 0, "no-param-reassign": [ 0, { "props": true, "ignorePropertyModificationsFor": [ "res", "chunk" ] } ], "consistent-return": [ 1, { "treatUndefinedAsUnspecified": false } ], "no-void": 0, "curly": [ 1, "multi" ], "class-methods-use-this": [ 0, { "exceptMethods": [ "_write", "_transform" ] } ], "no-bitwise": [ 1, { int32Hint: true } ], "quotes": [ 1, "single", { "allowTemplateLiterals": true } ], "import/no-dynamic-require": 0, "import/no-duplicates": 0, "import/extensions": 0, "import/no-unresolved": 0, "no-use-before-define": [ 2, { "functions": false, "variables": false } ], "max-len": [ 1, { "code": 120 } ], "symbol-description": 0, "new-parens": 0, "no-invalid-regexp": 0, "no-eval": 0, "new-cap": 0, "no-shadow": 0, "space-infix-ops": 0, "space-unary-ops": 0, "no-fallthrough": 0, "vars-on-top": 0, "no-var": 0, "indent": [ "error", 2 ], "camelcase": "off", "no-duplicate-imports": "off", "one-var-declaration-per-line": [ "error", "initializations" ], "one-var": [ "error", { initialized: 'never' } ], // allow async-await 'generator-star-spacing': 0, // allow debugger during development 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, 'comma-dangle': [2, 'only-multiline'], 'space-before-function-paren': ["error", { "anonymous": "always", "named": "never", "asyncArrow": "always" }], 'no-redeclare': 0, 'no-new':0 } }