standard
Advanced tools
Comparing version 10.0.2 to 10.0.3
202
CHANGELOG.md
@@ -6,2 +6,6 @@ # Change Log | ||
## 10.0.3 - 2017-08-06 | ||
- Internal changes (incremented dependency versions) | ||
## 10.0.2 - 2017-04-14 | ||
@@ -11,3 +15,3 @@ | ||
- Relax rule: Disallow import of modules using absolute paths ([import/no-absolute-path](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md)) [#861](https://github.com/feross/standard/issues/861) | ||
- Relax rule: Disallow import of modules using absolute paths ([import/no-absolute-path](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md)) [#861](https://github.com/standard/standard/issues/861) | ||
- This rule was responsible for up to 25% of the running time of `standard`, so we are disabling it until its performance improves. | ||
@@ -63,24 +67,24 @@ | ||
- Disallow using deprecated Node.js APIs ([node/no-deprecated-api](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-deprecated-api.md)) [#693](https://github.com/feross/standard/issues/693) (13%) | ||
- Disallow using deprecated Node.js APIs ([node/no-deprecated-api](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-deprecated-api.md)) [#693](https://github.com/standard/standard/issues/693) (13%) | ||
- Ensures that code always runs without warnings on the latest versions of Node.js | ||
- Ensures that safe Buffer methods (`Buffer.from()`, `Buffer.alloc()`) are used instead of `Buffer()` | ||
- Enforce callbacks always called with Node.js-style error first ([standard/no-callback-literal](https://github.com/xjamundx/eslint-plugin-standard#rules-explanations)) [#623](https://github.com/feross/standard/issues/623) (3%) | ||
- Enforce callbacks always called with Node.js-style error first ([standard/no-callback-literal](https://github.com/xjamundx/eslint-plugin-standard#rules-explanations)) [#623](https://github.com/standard/standard/issues/623) (3%) | ||
- Functions named `callback` or `cb` must be invoked with `null`, `undefined`, or an `Error` as the first argument | ||
- Disallows using a string instead of an `Error` object | ||
- Disallows confusing callbacks that do not follow the standard Node.js pattern | ||
- Disallow any imports that come after non-import statements ([import/first](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md)) [#806](https://github.com/feross/standard/issues/806) (1%) | ||
- Disallow unnecessary return await ([no-return-await](http://eslint.org/docs/rules/no-return-await)) [#695](https://github.com/feross/standard/issues/695) (0%) | ||
- Disallow comma-dangle in functions ([comma-dangle](http://eslint.org/docs/rules/comma-dangle)) [#787](https://github.com/feross/standard/issues/787) (0%) | ||
- Disallow repeated exports of names or defaults ([import/export](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/export.md)) [#806](https://github.com/feross/standard/issues/806) (0%) | ||
- Disallow import of modules using absolute paths ([import/no-absolute-path](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md)) [#806](https://github.com/feross/standard/issues/806) (0%) | ||
- Disallow Webpack loader syntax in imports ([import/no-webpack-loader-syntax](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md)) [#806](https://github.com/feross/standard/issues/806) (0%) | ||
- Disallow comparing against -0 ([no-compare-neg-zero](http://eslint.org/docs/rules/no-compare-neg-zero)) [#812](https://github.com/feross/standard/issues/812) (0%) | ||
- Disallow any imports that come after non-import statements ([import/first](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md)) [#806](https://github.com/standard/standard/issues/806) (1%) | ||
- Disallow unnecessary return await ([no-return-await](http://eslint.org/docs/rules/no-return-await)) [#695](https://github.com/standard/standard/issues/695) (0%) | ||
- Disallow comma-dangle in functions ([comma-dangle](http://eslint.org/docs/rules/comma-dangle)) [#787](https://github.com/standard/standard/issues/787) (0%) | ||
- Disallow repeated exports of names or defaults ([import/export](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/export.md)) [#806](https://github.com/standard/standard/issues/806) (0%) | ||
- Disallow import of modules using absolute paths ([import/no-absolute-path](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md)) [#806](https://github.com/standard/standard/issues/806) (0%) | ||
- Disallow Webpack loader syntax in imports ([import/no-webpack-loader-syntax](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md)) [#806](https://github.com/standard/standard/issues/806) (0%) | ||
- Disallow comparing against -0 ([no-compare-neg-zero](http://eslint.org/docs/rules/no-compare-neg-zero)) [#812](https://github.com/standard/standard/issues/812) (0%) | ||
### Changed rules | ||
- Relax rule: allow using `...rest` to omit properties from an object ([no-unused-vars](http://eslint.org/docs/rules/no-unused-vars)) [#800](https://github.com/feross/standard/issues/800) | ||
- Relax rule: allow using `...rest` to omit properties from an object ([no-unused-vars](http://eslint.org/docs/rules/no-unused-vars)) [#800](https://github.com/standard/standard/issues/800) | ||
- This is a common and useful pattern in React/JSX apps! | ||
- Relax rule: allow Flow `import type` statements ([import/no-duplicates](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md)) [#599](https://github.com/feross/standard/issues/599) | ||
- Relax rule: allow Flow `import type` statements ([import/no-duplicates](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md)) [#599](https://github.com/standard/standard/issues/599) | ||
- These are no longer considered to be "duplicate imports" | ||
- Relax rule: Treat `process.exit()` the same as `throw` in code path analysis ([node/process-exit-as-throw](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/process-exit-as-throw.md)) [#699](https://github.com/feross/standard/issues/699) | ||
- Relax rule: Treat `process.exit()` the same as `throw` in code path analysis ([node/process-exit-as-throw](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/process-exit-as-throw.md)) [#699](https://github.com/standard/standard/issues/699) | ||
- Makes certain other rules work better and give fewer false positives | ||
@@ -94,3 +98,3 @@ - Relax rule: allow Unnecessary Labels ([no-extra-label](http://eslint.org/docs/rules/no-extra-label)) | ||
- Relax rule: Allow tagged template string expressions ([no-unused-expressions](http://eslint.org/docs/rules/no-unused-expressions)) [#822](https://github.com/feross/standard/issues/822) | ||
- Relax rule: Allow tagged template string expressions ([no-unused-expressions](http://eslint.org/docs/rules/no-unused-expressions)) [#822](https://github.com/standard/standard/issues/822) | ||
@@ -101,3 +105,3 @@ ## 9.0.1 - 2017-03-07 | ||
- Relax rule: Allow mixing basic operators without parens ([no-mixed-operators](http://eslint.org/docs/rules/no-mixed-operators)) [#816](https://github.com/feross/standard/issues/816) | ||
- Relax rule: Allow mixing basic operators without parens ([no-mixed-operators](http://eslint.org/docs/rules/no-mixed-operators)) [#816](https://github.com/standard/standard/issues/816) | ||
- Specifically, these operators: `+`, `-`, `*`, `/`, `%`, and `**` | ||
@@ -122,3 +126,3 @@ | ||
*Note: If you use the Chai test framework, you will need to make some changes to | ||
your tests to improve their robustness. [Read about the changes you need to make](https://github.com/feross/standard/issues/690#issuecomment-278533482).* | ||
your tests to improve their robustness. [Read about the changes you need to make](https://github.com/standard/standard/issues/690#issuecomment-278533482).* | ||
@@ -134,20 +138,20 @@ ### New features | ||
- Disallow mixing different operators without parens ([no-mixed-operators](http://eslint.org/docs/rules/no-mixed-operators)) [#566](https://github.com/feross/standard/issues/566) (5%) | ||
- Enforce 1 newline at end of file (previously 1 or 2 were ok) ([no-multiple-empty-lines](http://eslint.org/docs/rules/no-multiple-empty-lines)) [#733](https://github.com/feross/standard/issues/733) (3%) | ||
- Disallow Unused Expressions ([no-unused-expressions](http://eslint.org/docs/rules/no-unused-expressions)) [#690](https://github.com/feross/standard/issues/690) (3%) | ||
- Note: this affects users of the Chai test framework. [Read about the changes you need to make](https://github.com/feross/standard/issues/690#issuecomment-278533482). | ||
- Disallow redundant return statements ([no-useless-return](http://eslint.org/docs/rules/no-useless-return)) [#694](https://github.com/feross/standard/issues/694) (1%) | ||
- Disallow Incorrect Early Use ([no-use-before-define](http://eslint.org/docs/rules/no-use-before-define)) [#636](https://github.com/feross/standard/issues/636) (0%) | ||
- Enforce that Promise rejections are passed an Error object as a reason ([prefer-promise-reject-errors](http://eslint.org/docs/rules/prefer-promise-reject-errors)) [#777](https://github.com/feross/standard/issues/777) (0%) | ||
- Enforce comparing `typeof` expressions against string literals ([valid-typeof](http://eslint.org/docs/rules/valid-typeof)) [#629](https://github.com/feross/standard/issues/629) (0%) | ||
- Enforce spacing around * in generator functions ([generator-star-spacing](http://eslint.org/docs/rules/generator-star-spacing)) [#724](https://github.com/feross/standard/issues/724) (0%) | ||
- Disallow Unnecessary Labels ([no-extra-label](http://eslint.org/docs/rules/no-extra-label)) [#736](https://github.com/feross/standard/issues/736) (0%) | ||
- Disallow spacing between template tags and their literals ([template-tag-spacing](http://eslint.org/docs/rules/template-tag-spacing)) [#755](https://github.com/feross/standard/issues/775) (0%) | ||
- Disallow padding within switch statements and classes ([padded-blocks](http://eslint.org/docs/rules/padded-blocks)) [#610](https://github.com/feross/standard/issues/610) (0%) | ||
- Enforce that Symbols are passed a description ([symbol-description](http://eslint.org/docs/rules/symbol-description)) [#630](https://github.com/feross/standard/issues/630) (0%) | ||
- Disallow mixing different operators without parens ([no-mixed-operators](http://eslint.org/docs/rules/no-mixed-operators)) [#566](https://github.com/standard/standard/issues/566) (5%) | ||
- Enforce 1 newline at end of file (previously 1 or 2 were ok) ([no-multiple-empty-lines](http://eslint.org/docs/rules/no-multiple-empty-lines)) [#733](https://github.com/standard/standard/issues/733) (3%) | ||
- Disallow Unused Expressions ([no-unused-expressions](http://eslint.org/docs/rules/no-unused-expressions)) [#690](https://github.com/standard/standard/issues/690) (3%) | ||
- Note: this affects users of the Chai test framework. [Read about the changes you need to make](https://github.com/standard/standard/issues/690#issuecomment-278533482). | ||
- Disallow redundant return statements ([no-useless-return](http://eslint.org/docs/rules/no-useless-return)) [#694](https://github.com/standard/standard/issues/694) (1%) | ||
- Disallow Incorrect Early Use ([no-use-before-define](http://eslint.org/docs/rules/no-use-before-define)) [#636](https://github.com/standard/standard/issues/636) (0%) | ||
- Enforce that Promise rejections are passed an Error object as a reason ([prefer-promise-reject-errors](http://eslint.org/docs/rules/prefer-promise-reject-errors)) [#777](https://github.com/standard/standard/issues/777) (0%) | ||
- Enforce comparing `typeof` expressions against string literals ([valid-typeof](http://eslint.org/docs/rules/valid-typeof)) [#629](https://github.com/standard/standard/issues/629) (0%) | ||
- Enforce spacing around * in generator functions ([generator-star-spacing](http://eslint.org/docs/rules/generator-star-spacing)) [#724](https://github.com/standard/standard/issues/724) (0%) | ||
- Disallow Unnecessary Labels ([no-extra-label](http://eslint.org/docs/rules/no-extra-label)) [#736](https://github.com/standard/standard/issues/736) (0%) | ||
- Disallow spacing between template tags and their literals ([template-tag-spacing](http://eslint.org/docs/rules/template-tag-spacing)) [#755](https://github.com/standard/standard/issues/775) (0%) | ||
- Disallow padding within switch statements and classes ([padded-blocks](http://eslint.org/docs/rules/padded-blocks)) [#610](https://github.com/standard/standard/issues/610) (0%) | ||
- Enforce that Symbols are passed a description ([symbol-description](http://eslint.org/docs/rules/symbol-description)) [#630](https://github.com/standard/standard/issues/630) (0%) | ||
### Changed rules | ||
- Relax rule: allow TypeScript Triple-Slash Directives ([spaced-comment](http://eslint.org/docs/rules/spaced-comment)) [#660](https://github.com/feross/standard/issues/660) | ||
- Relax rule: allow Flow Comments ([spaced-comment](http://eslint.org/docs/rules/spaced-comment)) [#661](https://github.com/feross/standard/issues/661) | ||
- Relax rule: allow TypeScript Triple-Slash Directives ([spaced-comment](http://eslint.org/docs/rules/spaced-comment)) [#660](https://github.com/standard/standard/issues/660) | ||
- Relax rule: allow Flow Comments ([spaced-comment](http://eslint.org/docs/rules/spaced-comment)) [#661](https://github.com/standard/standard/issues/661) | ||
@@ -168,3 +172,3 @@ ## 8.6.0 - 2016-11-22 | ||
- 5 additional rules are now fixable with `standard --fix` | ||
- Use more conservative semver ranges [#654](https://github.com/feross/standard/issues/654) | ||
- Use more conservative semver ranges [#654](https://github.com/standard/standard/issues/654) | ||
@@ -231,5 +235,5 @@ ## 8.3.0 - 2016-09-29 | ||
- Upgrade to ESLint v3 (http://eslint.org/docs/user-guide/migrating-to-3.0.0) [#565](https://github.com/feross/standard/pull/565) | ||
- Upgrade to ESLint v3 (http://eslint.org/docs/user-guide/migrating-to-3.0.0) [#565](https://github.com/standard/standard/pull/565) | ||
- **BREAKING:** Drop support for node < 4 (this was a decision made by the ESLint team) | ||
- Expose ESLint's `--fix` command line flag [#540](https://github.com/feross/standard/issues/540) [standard-engine/#107](https://github.com/Flet/standard-engine/issues/107) | ||
- Expose ESLint's `--fix` command line flag [#540](https://github.com/standard/standard/issues/540) [standard-engine/#107](https://github.com/Flet/standard-engine/issues/107) | ||
- Lightweight, no additional dependencies, fixes dozens of rules automatically | ||
@@ -241,17 +245,17 @@ | ||
- Enforce placing object properties on separate lines ([object-property-newline](http://eslint.org/docs/rules/object-property-newline)) [#524](https://github.com/feross/standard/issues/524) (2%) | ||
- Require block comments to be balanced ([spaced-comment "balanced"](http://eslint.org/docs/rules/spaced-comment)) [#572](https://github.com/feross/standard/issues/572) (2%) | ||
- Disallow constant expressions in conditions ([no-constant-condition](http://eslint.org/docs/rules/no-constant-condition)) [#563](https://github.com/feross/standard/issues/563) (1%) | ||
- Disallow renaming import, export, and destructured assignments to the same name ([no-useless-rename](http://eslint.org/docs/rules/no-useless-rename)) [#537](https://github.com/feross/standard/issues/537) (0%) | ||
- Disallow spacing between rest and spread operators and their expressions ([rest-spread-spacing](http://eslint.org/docs/rules/rest-spread-spacing)) [#567](https://github.com/feross/standard/issues/567) (0%) | ||
- Disallow the Unicode Byte Order Mark (BOM) ([unicode-bom](http://eslint.org/docs/rules/unicode-bom)) [#538](https://github.com/feross/standard/issues/538) (0%) | ||
- Disallow assignment to native objects/global variables ([no-global-assign](http://eslint.org/docs/rules/no-global-assign)) [#596](https://github.com/feross/standard/issues/596) (0%) | ||
- Disallow negating the left operand of relational operators ([no-unsafe-negation](http://eslint.org/docs/rules/no-unsafe-negation)) [#595](https://github.com/feross/standard/issues/595) (0%) | ||
- Disallow template literal placeholder syntax in regular strings ([no-template-curly-in-string](http://eslint.org/docs/rules/no-template-curly-in-string)) [#594](https://github.com/feross/standard/issues/594) (0%) | ||
- Disallow tabs in file ([no-tabs](http://eslint.org/docs/rules/no-tabs)) [#593](https://github.com/feross/standard/issues/593) (0%) | ||
- Enforce placing object properties on separate lines ([object-property-newline](http://eslint.org/docs/rules/object-property-newline)) [#524](https://github.com/standard/standard/issues/524) (2%) | ||
- Require block comments to be balanced ([spaced-comment "balanced"](http://eslint.org/docs/rules/spaced-comment)) [#572](https://github.com/standard/standard/issues/572) (2%) | ||
- Disallow constant expressions in conditions ([no-constant-condition](http://eslint.org/docs/rules/no-constant-condition)) [#563](https://github.com/standard/standard/issues/563) (1%) | ||
- Disallow renaming import, export, and destructured assignments to the same name ([no-useless-rename](http://eslint.org/docs/rules/no-useless-rename)) [#537](https://github.com/standard/standard/issues/537) (0%) | ||
- Disallow spacing between rest and spread operators and their expressions ([rest-spread-spacing](http://eslint.org/docs/rules/rest-spread-spacing)) [#567](https://github.com/standard/standard/issues/567) (0%) | ||
- Disallow the Unicode Byte Order Mark (BOM) ([unicode-bom](http://eslint.org/docs/rules/unicode-bom)) [#538](https://github.com/standard/standard/issues/538) (0%) | ||
- Disallow assignment to native objects/global variables ([no-global-assign](http://eslint.org/docs/rules/no-global-assign)) [#596](https://github.com/standard/standard/issues/596) (0%) | ||
- Disallow negating the left operand of relational operators ([no-unsafe-negation](http://eslint.org/docs/rules/no-unsafe-negation)) [#595](https://github.com/standard/standard/issues/595) (0%) | ||
- Disallow template literal placeholder syntax in regular strings ([no-template-curly-in-string](http://eslint.org/docs/rules/no-template-curly-in-string)) [#594](https://github.com/standard/standard/issues/594) (0%) | ||
- Disallow tabs in file ([no-tabs](http://eslint.org/docs/rules/no-tabs)) [#593](https://github.com/standard/standard/issues/593) (0%) | ||
### Changed rules | ||
- Relax rule: Allow template literal strings (backtick strings) to avoid escaping [#421](https://github.com/feross/standard/issues/421) | ||
- Relax rule: Do not enforce spacing around * in generator functions (https://github.com/feross/standard/issues/564#issuecomment-234699126) | ||
- Relax rule: Allow template literal strings (backtick strings) to avoid escaping [#421](https://github.com/standard/standard/issues/421) | ||
- Relax rule: Do not enforce spacing around * in generator functions (https://github.com/standard/standard/issues/564#issuecomment-234699126) | ||
- This is a temporary workaround for `babel` users who use async generator functions. | ||
@@ -285,3 +289,3 @@ | ||
- Upgrade eslint to version ~2.9.0 | ||
- Remove "rules" configuration option [#367](https://github.com/feross/standard/issues/367) from `package.json` (Reasoning is [here](https://github.com/feross/standard/issues/399#issuecomment-180961891)) | ||
- Remove "rules" configuration option [#367](https://github.com/standard/standard/issues/367) from `package.json` (Reasoning is [here](https://github.com/standard/standard/issues/399#issuecomment-180961891)) | ||
@@ -312,3 +316,3 @@ ### New rules | ||
- Revert: Use install location of standard as eslint `cwd` (fixes [#429](https://github.com/feross/standard/issues/429)) | ||
- Revert: Use install location of standard as eslint `cwd` (fixes [#429](https://github.com/standard/standard/issues/429)) | ||
@@ -318,3 +322,3 @@ ## 6.0.6 - 2016-02-18 | ||
- Use eslint 2.1.0 | ||
- Fix: Use install location of standard as eslint `cwd` (fixes [snazzy/#8](https://github.com/feross/snazzy/issues/8)) | ||
- Fix: Use install location of standard as eslint `cwd` (fixes [snazzy/#8](https://github.com/standard/snazzy/issues/8)) | ||
@@ -345,3 +349,3 @@ ## 6.0.5 - 2016-02-12 | ||
### Remove `standard-format` ([#340](https://github.com/feross/standard/issues/340)) ([#397](https://github.com/feross/standard/issues/397)) | ||
### Remove `standard-format` ([#340](https://github.com/standard/standard/issues/340)) ([#397](https://github.com/standard/standard/issues/397)) | ||
@@ -353,3 +357,3 @@ - Eliminates 250 packages, and cuts install time in half! | ||
### React-specific linting rules are removed ([#351](https://github.com/feross/standard/issues/351)) ([#367](https://github.com/feross/standard/issues/367)) ([eslint-config-standard-react/#13](https://github.com/feross/eslint-config-standard-react/pull/13)) | ||
### React-specific linting rules are removed ([#351](https://github.com/standard/standard/issues/351)) ([#367](https://github.com/standard/standard/issues/367)) ([eslint-config-standard-react/#13](https://github.com/standard/eslint-config-standard-react/pull/13)) | ||
@@ -364,10 +368,10 @@ - JSX is still supported, and it continues to be checked for style. | ||
- Disallow `__dirname`/`__filename` string concatenation ([#403](https://github.com/feross/standard/issues/403)) ([no-path-concat](http://eslint.org/docs/2.0.0/rules/no-path-concat)) [5%] | ||
- Require parens in arrow function arguments ([#309](https://github.com/feross/standard/issues/309)) ([arrow-parens](http://eslint.org/docs/2.0.0/rules/arrow-parens.html)) [5%] | ||
- Disallow `__dirname`/`__filename` string concatenation ([#403](https://github.com/standard/standard/issues/403)) ([no-path-concat](http://eslint.org/docs/2.0.0/rules/no-path-concat)) [5%] | ||
- Require parens in arrow function arguments ([#309](https://github.com/standard/standard/issues/309)) ([arrow-parens](http://eslint.org/docs/2.0.0/rules/arrow-parens.html)) [5%] | ||
- Ensure that `new Promise()` is instantiated with the parameter names | ||
`resolve`, `reject` ([#282](https://github.com/feross/standard/issues/282)) ([promise/param-names](https://github.com/xjamundx/eslint-plugin-promise#param-names)) [1%] | ||
`resolve`, `reject` ([#282](https://github.com/standard/standard/issues/282)) ([promise/param-names](https://github.com/xjamundx/eslint-plugin-promise#param-names)) [1%] | ||
- Enforce Usage of Spacing in Template Strings ([template-curly-spacing](http://eslint.org/docs/2.0.0/rules/template-curly-spacing)) [1%] | ||
- Template strings are only allowed when necessary, i.e. template string features are being used (eslint got stricter: https://github.com/eslint/eslint/issues/5147) [1%] | ||
- Better dead code detection after conditional statements (eslint got stricter) [1%] | ||
- Enforce spaces around `*` in `yield * something` ([#335](https://github.com/feross/standard/issues/335)) ([yield-star-spacing](http://eslint.org/docs/2.0.0/rules/yield-star-spacing)) [0%] | ||
- Enforce spaces around `*` in `yield * something` ([#335](https://github.com/standard/standard/issues/335)) ([yield-star-spacing](http://eslint.org/docs/2.0.0/rules/yield-star-spacing)) [0%] | ||
- Disallow labels on loops/switch statements too (made rule stricter) ([no-labels](http://eslint.org/docs/2.0.0/rules/no-labels.html)) [0%] | ||
@@ -381,3 +385,3 @@ - Disallow unnecessary constructor ([no-useless-constructor](http://eslint.org/docs/2.0.0/rules/no-useless-constructor)) [0%] | ||
- `parseInt()` radix rule because ES5 fixes this issue ([#384](https://github.com/feross/standard/issues/384)) ([radix](http://eslint.org/docs/2.0.0/rules/radix.html)) [0%] | ||
- `parseInt()` radix rule because ES5 fixes this issue ([#384](https://github.com/standard/standard/issues/384)) ([radix](http://eslint.org/docs/2.0.0/rules/radix.html)) [0%] | ||
@@ -389,5 +393,5 @@ ### Expose eslint configuration via command line options and `package.json` | ||
- Set eslint "plugins" ([#386](https://github.com/feross/standard/issues/386)) | ||
- Set eslint "rules" ([#367](https://github.com/feross/standard/issues/367)) | ||
- Set eslint "env" ([#371](https://github.com/feross/standard/issues/371)) | ||
- Set eslint "plugins" ([#386](https://github.com/standard/standard/issues/386)) | ||
- Set eslint "rules" ([#367](https://github.com/standard/standard/issues/367)) | ||
- Set eslint "env" ([#371](https://github.com/standard/standard/issues/371)) | ||
@@ -420,9 +424,9 @@ To set custom ESLint plugins, rules, or envs, use the command line `--plugin`, `--rules`, and `--env` flags. | ||
- standard ([v5.4.1...v6.0.0](https://github.com/feross/standard/compare/v5.4.1...v6.0.0)) | ||
- eslint-config-standard ([v4.4.0...v5.0.0](https://github.com/feross/eslint-config-standard/compare/v4.4.0...v5.0.0)) | ||
- eslint-config-standard-jsx ([v1.0.0](https://github.com/feross/eslint-config-standard-jsx/commit/47d5e248e2e078eb87619493999e3e74d4b7e70e)) | ||
- standard ([v5.4.1...v6.0.0](https://github.com/standard/standard/compare/v5.4.1...v6.0.0)) | ||
- eslint-config-standard ([v4.4.0...v5.0.0](https://github.com/standard/eslint-config-standard/compare/v4.4.0...v5.0.0)) | ||
- eslint-config-standard-jsx ([v1.0.0](https://github.com/standard/eslint-config-standard-jsx/commit/47d5e248e2e078eb87619493999e3e74d4b7e70e)) | ||
- standard-engine ([v2.2.4...v3.2.1](https://github.com/Flet/standard-engine/compare/v2.2.4...v3.2.1)) | ||
## 5.4.1 - 2015-11-16 | ||
[view diff](https://github.com/feross/standard/compare/v5.4.0...v5.4.1) | ||
[view diff](https://github.com/standard/standard/compare/v5.4.0...v5.4.1) | ||
@@ -434,3 +438,3 @@ ### Fixed | ||
## 5.4.0 - 2015-11-16 | ||
[view diff](https://github.com/feross/standard/compare/v5.3.1...v5.4.0) | ||
[view diff](https://github.com/standard/standard/compare/v5.3.1...v5.4.0) | ||
@@ -443,3 +447,3 @@ ### Added | ||
## 5.3.1 - 2015-09-18 | ||
[view diff](https://github.com/feross/standard/compare/v5.3.0...v5.3.1) | ||
[view diff](https://github.com/standard/standard/compare/v5.3.0...v5.3.1) | ||
@@ -450,9 +454,9 @@ ### Changed | ||
## 5.3.0 - 2015-09-16 | ||
[view diff](https://github.com/feross/standard/compare/v5.2.2...v5.3.0) | ||
[view diff](https://github.com/standard/standard/compare/v5.2.2...v5.3.0) | ||
### Changed | ||
* eslint-config-standard@4.4.0 ([history][eslint-config-standard]) | ||
* **New rule:** must have space after semicolon in for-loop ([commit](https://github.com/feross/eslint-config-standard/commit/6e5025eef8900f686e19b4a31836743d98323119)) | ||
* **New rule:** No default assignment with ternary operator ([commit](https://github.com/feross/eslint-config-standard/commit/0903c19ca6a8bc0c8625c41ca844ee69968bf948)) | ||
* **New rule:** Require spaces before keywords ([commit](https://github.com/feross/eslint-config-standard/commit/656ba93cda9cd4ab38e032649aafb795993d5176)) | ||
* **New rule:** must have space after semicolon in for-loop ([commit](https://github.com/standard/eslint-config-standard/commit/6e5025eef8900f686e19b4a31836743d98323119)) | ||
* **New rule:** No default assignment with ternary operator ([commit](https://github.com/standard/eslint-config-standard/commit/0903c19ca6a8bc0c8625c41ca844ee69968bf948)) | ||
* **New rule:** Require spaces before keywords ([commit](https://github.com/standard/eslint-config-standard/commit/656ba93cda9cd4ab38e032649aafb795993d5176)) | ||
* eslint-config-standard-react@1.1.0 ([history][eslint-config-standard-react]) | ||
@@ -463,3 +467,3 @@ * eslint-plugin-react@3.4.0 ([history][eslint-plugin-react]) | ||
## 5.2.2 | ||
[view diff](https://github.com/feross/standard/compare/v5.2.1...v5.2.2) | ||
[view diff](https://github.com/standard/standard/compare/v5.2.1...v5.2.2) | ||
@@ -472,3 +476,3 @@ ### Fixed | ||
## 5.2.1 - 2015-09-03 | ||
[view diff](https://github.com/feross/standard/compare/v5.2.0...v5.2.1) | ||
[view diff](https://github.com/standard/standard/compare/v5.2.0...v5.2.1) | ||
@@ -484,3 +488,3 @@ ### Changed | ||
## 5.2.0 - 2015-09-03 | ||
[view diff](https://github.com/feross/standard/compare/v5.1.1...v5.2.0) | ||
[view diff](https://github.com/standard/standard/compare/v5.1.1...v5.2.0) | ||
@@ -492,3 +496,3 @@ ### Added | ||
* **New rule:** enforce spaces inside of single line blocks | ||
* **Re-add rule:** padded-blocks ([Closes #170](https://github.com/feross/standard/issues/170)) | ||
* **Re-add rule:** padded-blocks ([Closes #170](https://github.com/standard/standard/issues/170)) | ||
@@ -503,7 +507,7 @@ ### Changed | ||
* Fix object rest/spread handling. | ||
* Added white background to badge.svg to make it work with dark backgrounds ([Closes #234](https://github.com/feross/standard/issues/234)) | ||
* Added white background to badge.svg to make it work with dark backgrounds ([Closes #234](https://github.com/standard/standard/issues/234)) | ||
* Minor updates to README.md | ||
## 5.1.1 - 2015-08-28 | ||
[view diff](https://github.com/feross/standard/compare/v5.1.0...v5.1.1) | ||
[view diff](https://github.com/standard/standard/compare/v5.1.0...v5.1.1) | ||
@@ -517,7 +521,7 @@ ### Fixed | ||
## 5.1.0 - 2015-08-14 | ||
[view diff](https://github.com/feross/standard/compare/v5.0.2...v5.1.0) | ||
[view diff](https://github.com/standard/standard/compare/v5.0.2...v5.1.0) | ||
## Fixed | ||
* eslint-config-standard@4.1.0 ([history][eslint-config-standard]) | ||
* Added rest/spread feature to `eslintrc.json` to fix [#226](https://github.com/feross/standard/issues/226) and [eslint-plugin-standard#3](https://github.com/xjamundx/eslint-plugin-standard/issues/3) | ||
* Added rest/spread feature to `eslintrc.json` to fix [#226](https://github.com/standard/standard/issues/226) and [eslint-plugin-standard#3](https://github.com/xjamundx/eslint-plugin-standard/issues/3) | ||
* eslint-plugin-react@3.2.2 ([CHANGELOG][eslint-plugin-react]) | ||
@@ -533,3 +537,3 @@ * Fix crash when propTypes don't have any parent | ||
## 5.0.2 - 2015-08-06 | ||
[view diff](https://github.com/feross/standard/compare/v5.0.1...v5.0.2) | ||
[view diff](https://github.com/standard/standard/compare/v5.0.1...v5.0.2) | ||
@@ -542,62 +546,62 @@ ### Changed | ||
## 5.0.1 - 2015-08-05 | ||
[view diff](https://github.com/feross/standard/compare/v5.0.0...v5.0.1) | ||
[view diff](https://github.com/standard/standard/compare/v5.0.0...v5.0.1) | ||
## 5.0.0 - 2015-08-03 | ||
[view diff](https://github.com/feross/standard/compare/v4.5.4...v5.0.0) | ||
[view diff](https://github.com/standard/standard/compare/v4.5.4...v5.0.0) | ||
## 4.5.4 - 2015-07-13 | ||
[view diff](https://github.com/feross/standard/compare/v4.5.3...v4.5.4) | ||
[view diff](https://github.com/standard/standard/compare/v4.5.3...v4.5.4) | ||
## 4.5.3 - 2015-07-10 | ||
[view diff](https://github.com/feross/standard/compare/v4.5.2...v4.5.3) | ||
[view diff](https://github.com/standard/standard/compare/v4.5.2...v4.5.3) | ||
## 4.5.2 - 2015-07-02 | ||
[view diff](https://github.com/feross/standard/compare/v4.5.1...v4.5.2) | ||
[view diff](https://github.com/standard/standard/compare/v4.5.1...v4.5.2) | ||
## 4.5.1 - 2015-06-30 | ||
[view diff](https://github.com/feross/standard/compare/v4.5.0...v4.5.1) | ||
[view diff](https://github.com/standard/standard/compare/v4.5.0...v4.5.1) | ||
## 4.5.0 - 2015-06-30 | ||
[view diff](https://github.com/feross/standard/compare/v4.4.1...v4.5.0) | ||
[view diff](https://github.com/standard/standard/compare/v4.4.1...v4.5.0) | ||
## 4.4.1 - 2015-06-29 | ||
[view diff](https://github.com/feross/standard/compare/v4.4.0...v4.4.1) | ||
[view diff](https://github.com/standard/standard/compare/v4.4.0...v4.4.1) | ||
## 4.4.0 - 2015-06-27 | ||
[view diff](https://github.com/feross/standard/compare/v4.3.3...v4.4.0) | ||
[view diff](https://github.com/standard/standard/compare/v4.3.3...v4.4.0) | ||
## 4.3.3 - 2015-06-26 | ||
[view diff](https://github.com/feross/standard/compare/v4.3.2...v4.3.3) | ||
[view diff](https://github.com/standard/standard/compare/v4.3.2...v4.3.3) | ||
## 4.3.2 - 2015-06-23 | ||
[view diff](https://github.com/feross/standard/compare/v4.3.1...v4.3.2) | ||
[view diff](https://github.com/standard/standard/compare/v4.3.1...v4.3.2) | ||
## 4.3.1 - 2015-06-18 | ||
[view diff](https://github.com/feross/standard/compare/v4.3.0...v4.3.1) | ||
[view diff](https://github.com/standard/standard/compare/v4.3.0...v4.3.1) | ||
## 4.3.0 - 2015-06-16 | ||
[view diff](https://github.com/feross/standard/compare/v4.2.1...v4.3.0) | ||
[view diff](https://github.com/standard/standard/compare/v4.2.1...v4.3.0) | ||
## 4.2.1 - 2015-06-12 | ||
[view diff](https://github.com/feross/standard/compare/v4.2.0...v4.2.1) | ||
[view diff](https://github.com/standard/standard/compare/v4.2.0...v4.2.1) | ||
## 4.2.0 - 2015-06-11 | ||
[view diff](https://github.com/feross/standard/compare/v4.1.1...v4.2.0) | ||
[view diff](https://github.com/standard/standard/compare/v4.1.1...v4.2.0) | ||
## 4.1.1 - 2015-06-11 | ||
[view diff](https://github.com/feross/standard/compare/v4.1.0...v4.1.1) | ||
[view diff](https://github.com/standard/standard/compare/v4.1.0...v4.1.1) | ||
## 4.1.0 - 2015-06-10 | ||
[view diff](https://github.com/feross/standard/compare/v4.0.1...v4.1.0) | ||
[view diff](https://github.com/standard/standard/compare/v4.0.1...v4.1.0) | ||
## 4.0.1 - 2015-06-01 | ||
[view diff](https://github.com/feross/standard/compare/v4.0.0...v4.0.1) | ||
[view diff](https://github.com/standard/standard/compare/v4.0.0...v4.0.1) | ||
## 4.0.0 - 2015-05-30 | ||
[view diff](https://github.com/feross/standard/compare/v3.9.0...v4.0.0) | ||
[view diff](https://github.com/standard/standard/compare/v3.9.0...v4.0.0) | ||
[eslint-config-standard-react]: https://github.com/feross/eslint-config-standard-react/commits/master | ||
[eslint-config-standard]: https://github.com/feross/eslint-config-standard/commits/master | ||
[eslint-config-standard-react]: https://github.com/standard/eslint-config-standard-react/commits/master | ||
[eslint-config-standard]: https://github.com/standard/eslint-config-standard/commits/master | ||
[eslint-plugin-react]: https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md | ||
[eslint-plugin-standard]: https://github.com/xjamundx/eslint-plugin-standard/commits/master | ||
[eslint]: https://github.com/eslint/eslint/blob/master/CHANGELOG.md |
<h1 align="center"> | ||
<a href="https://standardjs.com"><img src="https://cdn.rawgit.com/feross/standard/master/sticker.svg" alt="Standard - JavaScript Style Guide" width="200"></a> | ||
<a href="https://standardjs.com"><img src="https://cdn.rawgit.com/standard/standard/master/sticker.svg" alt="Standard - JavaScript Style Guide" width="200"></a> | ||
<br> | ||
@@ -10,3 +10,3 @@ JavaScript Standard Style | ||
<p align="center"> | ||
<a href="https://travis-ci.org/feross/standard"><img src="https://img.shields.io/travis/feross/standard/master.svg" alt="Travis"></a> | ||
<a href="https://travis-ci.org/standard/standard"><img src="https://img.shields.io/travis/standard/standard/master.svg" alt="Travis"></a> | ||
<a href="https://standardjs.com"><img src="https://img.shields.io/badge/code_style-standard-brightgreen.svg" alt="Standard - JavaScript Style Guide"></a> | ||
@@ -17,10 +17,12 @@ <a href="https://www.npmjs.com/package/standard"><img src="https://img.shields.io/npm/dm/standard.svg" alt="npm downloads"></a> | ||
<h4 align="center">Una guía de estilos Javascript para gobernarlos a todos</h4> | ||
<h4 align="center">Una guía de estilos JavaScript para gobernarlos a todos</h4> | ||
<p align="center"> | ||
Translations: | ||
<a href="../README.md">English</a>, | ||
<a href="README-ptbr.md">Português</a>, | ||
<a href="README-zhtw.md">繁體中文</a>, | ||
<a href="README-zhcn.md">简体中文</a> | ||
<a href="README-en.md">English</a> • | ||
<a href="README-esla.md">Español (Latinoamérica)</a> • | ||
<a href="README-iteu.md">Italiano (Italian)</a> • | ||
<a href="README-kokr.md">한국어 (Korean)</a> • | ||
<a href="README-ptbr.md">Português (Brasil)</a> • | ||
<a href="README-zhcn.md">简体中文 (Simplified Chinese)</a> • | ||
<a href="README-zhtw.md">繁體中文 (Taiwanese Mandarin)</a> | ||
</p> | ||
@@ -75,3 +77,3 @@ | ||
en JavaScript Standard Style. O, mira alguno de los | ||
[miles de proyectos](https://raw.githubusercontent.com/feross/standard-packages/master/all.json) | ||
[miles de proyectos](https://raw.githubusercontent.com/standard/standard-packages/master/all.json) | ||
que usan `standard`! | ||
@@ -85,3 +87,3 @@ | ||
- [Lo que podrías hacer si eres inteligente](#lo-que-podrías-hacer-si-eres-inteligente) | ||
- FAQ | ||
@@ -196,22 +198,22 @@ - [¿Por qué debería usar JavaScript Standard Style?](#por-qué-deberia-usar-javascript-standard-style) | ||
[<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/npm.png>](https://www.npmjs.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/github.png>](https://github.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/opbeat.png>](https://opbeat.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/nearform.png>](http://www.nearform.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/brave.png>](https://www.brave.com) | | ||
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/npm.png>](https://www.npmjs.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/github.png>](https://github.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/opbeat.png>](https://opbeat.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/nearform.png>](http://www.nearform.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/brave.png>](https://www.brave.com) | | ||
|---|---|---|---|---| | ||
| [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/zeit.png>](https://zeit.co) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/zendesk.png>](https://www.zendesk.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/mongodb.jpg>](https://www.mongodb.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/typeform.jpg>](https://www.typeform.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/gov-uk.png>](https://gds.blog.gov.uk) | | ||
| [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/zeit.png>](https://zeit.co) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/zendesk.png>](https://www.zendesk.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/mongodb.jpg>](https://www.mongodb.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/typeform.jpg>](https://www.typeform.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/gov-uk.png>](https://gds.blog.gov.uk) | | ||
|---|---|---|---|---| | ||
[<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/express.png>](http://expressjs.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/webtorrent.png>](https://webtorrent.io) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/ipfs.png>](https://ipfs.io) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/dat.png>](https://datproject.org) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/bitcoinjs.png>](https://bitcoinjs.org) | | ||
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/express.png>](http://expressjs.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/webtorrent.png>](https://webtorrent.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/ipfs.png>](https://ipfs.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/dat.png>](https://datproject.org) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/bitcoinjs.png>](https://bitcoinjs.org) | | ||
|---|---|---|---|---| | ||
[<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/atom.png>](https://atom.io) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/electron.png>](http://electron.atom.io) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/voltra.png>](https://voltra.co) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/treasuredata.png>](https://www.treasuredata.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/clevertech.png>](https://clevertech.biz) | | ||
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/atom.png>](https://atom.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/electron.png>](http://electron.atom.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/voltra.png>](https://voltra.co) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/treasuredata.png>](https://www.treasuredata.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/clevertech.png>](https://clevertech.biz) | | ||
|---|---|---|---|---| | ||
[<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/studynotes.jpg>](https://www.apstudynotes.org) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/optiopay.png>](https://www.optiopay.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/jaguar-landrover.png>](https://www.jlrtechincubator.com/jlrti/) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/bustle.jpg>](https://www.bustle.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/zentrick.png>](https://www.zentrick.com) | | ||
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/studynotes.jpg>](https://www.apstudynotes.org) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/optiopay.png>](https://www.optiopay.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/jaguar-landrover.png>](https://www.jlrtechincubator.com/jlrti/) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/bustle.jpg>](https://www.bustle.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/zentrick.png>](https://www.zentrick.com) | | ||
|---|---|---|---|---| | ||
[<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/nodesource.png>](https://nodesource.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/greenkeeper.png>](https://greenkeeper.io) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/karma.png>](https://karma-runner.github.io) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/taser.png>](https://www.taser.com) | | ||
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/nodesource.png>](https://nodesource.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/greenkeeper.png>](https://greenkeeper.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/karma.png>](https://karma-runner.github.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/taser.png>](https://www.taser.com) | | ||
|---|---|---|---|---| | ||
Adicionalmente a compañías, muchos miembros de la comunidad usan `standard` en modulos que son | ||
[muy numerosos](https://raw.githubusercontent.com/feross/standard-packages/master/all.json) para listar aquí. | ||
[muy numerosos](https://raw.githubusercontent.com/standard/standard-packages/master/all.json) para listar aquí. | ||
@@ -304,6 +306,6 @@ También `standard` es el linter con más estrellas en GitHub | ||
[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) | ||
```markdown | ||
[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) | ||
``` | ||
@@ -321,3 +323,3 @@ | ||
Si realmente quieres configurar cientos de reglas individualmente, puedes usar `eslint` directamente con [eslint-config-standard](https://github.com/feross/eslint-config-standard) aplicando | ||
Si realmente quieres configurar cientos de reglas individualmente, puedes usar `eslint` directamente con [eslint-config-standard](https://github.com/standard/eslint-config-standard) aplicando | ||
cambios encima de este. | ||
@@ -332,3 +334,3 @@ | ||
¡Por su puesto que no lo es! Este estilo no está afiliado a ningún grupo oficial de estándar web, por eso este repositorio se llama `feross/standard` y no `ECMA/standard`. | ||
¡Por su puesto que no lo es! Este estilo no está afiliado a ningún grupo oficial de estándar web, por eso este repositorio se llama `standard/standard` y no `ECMA/standard`. | ||
@@ -464,3 +466,3 @@ La palabra “estándar” tiene más significados que solo “estándar web” :-) Por ejemplo: | ||
`standard` soporta plugins ESLint. Usa uno de estos para transformar el código a javascript válido antes de que `standard` lo vea. Para usar un parser customizado, instálalo desde | ||
`standard` soporta plugins ESLint. Usa uno de estos para transformar el código a JavaScript válido antes de que `standard` lo vea. Para usar un parser customizado, instálalo desde | ||
npm (example: `npm install eslint-plugin-flowtype`) y ejecuta: | ||
@@ -639,20 +641,20 @@ | ||
Las contribuciones son bienvenidas! Comprueba los [issues](https://github.com/feross/standard/issues) o [PRs](https://github.com/feross/standard/pulls), o haz el tuyo propio si quieres algo que nos ves allí | ||
Las contribuciones son bienvenidas! Comprueba los [issues](https://github.com/standard/standard/issues) o [PRs](https://github.com/standard/standard/pulls), o haz el tuyo propio si quieres algo que nos ves allí | ||
Unete a nosotros `#standard` en freenode. | ||
- **[standard](https://github.com/feross/standard)** - este repositorio | ||
- **[standard](https://github.com/standard/standard)** - este repositorio | ||
- **[standard-engine](https://github.com/flet/standard-engine)** - motor arbitrario cli de relgas eslint | ||
- **[eslint-config-standard](https://github.com/feross/eslint-config-standard)** - reglas eslint para standard | ||
- **[eslint-config-standard-jsx](https://github.com/feross/eslint-config-standard-jsx)** - reglas eslint para standard (JSX) | ||
- **[eslint-config-standard](https://github.com/standard/eslint-config-standard)** - reglas eslint para standard | ||
- **[eslint-config-standard-jsx](https://github.com/standard/eslint-config-standard-jsx)** - reglas eslint para standard (JSX) | ||
- **[eslint-plugin-standard](https://github.com/xjamundx/eslint-plugin-standard)** - reglas customizadas eslint para standard (no es parte del nucleo eslint) | ||
- **[eslint](https://github.com/eslint/eslint)** - linter que da poder a standard | ||
- **[snazzy](https://github.com/feross/snazzy)** - salida colorida o *bonita* en el terminal para standard | ||
- **[standard-www](https://github.com/feross/standard-www)** - codigo de https://standardjs.com | ||
- **[snazzy](https://github.com/standard/snazzy)** - salida colorida o *bonita* en el terminal para standard | ||
- **[standard-www](https://github.com/standard/standard-www)** - codigo de https://standardjs.com | ||
- **[semistandard](https://github.com/Flet/semistandard)** - standard, con punto y coma (sí es necesario) | ||
También hay un montón **[plugins editores de textos](#plugins-editores-de-textos)**, una lista de | ||
**[paquetes npm que usan `standard`](https://github.com/feross/standard-packages)**, | ||
**[paquetes npm que usan `standard`](https://github.com/standard/standard-packages)**, | ||
y una impresionante lista de | ||
**[paquetes en el ecosistema `standard`](https://github.com/feross/awesome-standard)**. | ||
**[paquetes en el ecosistema `standard`](https://github.com/standard/awesome-standard)**. | ||
@@ -659,0 +661,0 @@ ## Licencia |
<h1 align="center"> | ||
<a href="https://standardjs.com"><img src="https://cdn.rawgit.com/feross/standard/master/sticker.svg" alt="Standard - JavaScript Style Guide" width="200"></a> | ||
<a href="https://standardjs.com"><img src="https://cdn.rawgit.com/standard/standard/master/sticker.svg" alt="Standard - JavaScript Style Guide" width="200"></a> | ||
<br> | ||
@@ -10,3 +10,3 @@ JavaScript Standard Style | ||
<p align="center"> | ||
<a href="https://travis-ci.org/feross/standard"><img src="https://img.shields.io/travis/feross/standard/master.svg" alt="Travis"></a> | ||
<a href="https://travis-ci.org/standard/standard"><img src="https://img.shields.io/travis/standard/standard/master.svg" alt="Travis"></a> | ||
<a href="https://standardjs.com"><img src="https://img.shields.io/badge/code_style-standard-brightgreen.svg" alt="Standard - JavaScript Style Guide"></a> | ||
@@ -20,7 +20,9 @@ <a href="https://www.npmjs.com/package/standard"><img src="https://img.shields.io/npm/dm/standard.svg" alt="npm downloads"></a> | ||
<p align="center"> | ||
Translations: | ||
<a href="../README.md">English</a>, | ||
<a href="README-esla.md">Spanish</a>, | ||
<a href="README-zhtw.md">繁體中文</a>, | ||
<a href="README-zhcn.md">简体中文</a> | ||
<a href="README-en.md">English</a> • | ||
<a href="README-esla.md">Español (Latinoamérica)</a> • | ||
<a href="README-iteu.md">Italiano (Italian)</a> • | ||
<a href="README-kokr.md">한국어 (Korean)</a> • | ||
<a href="README-ptbr.md">Português (Brasil)</a> • | ||
<a href="README-zhcn.md">简体中文 (Simplified Chinese)</a> • | ||
<a href="README-zhtw.md">繁體中文 (Taiwanese Mandarin)</a> | ||
</p> | ||
@@ -47,3 +49,3 @@ | ||
- **Aspas simples para strings** – exceto para evitar escapamentos | ||
- **Sem variáveis não-utilizadas** – resolve *uma porraad* de bugs! | ||
- **Sem variáveis não-utilizadas** – resolve *uma porrada* de bugs! | ||
- **Sem vírgulas-e-vírgula** – [Dá][1] [boa.][2] [Sério!][3] | ||
@@ -69,4 +71,4 @@ - **Nunca comece uma linha com `(`, `[`, ou `` ` ``** | ||
Para ter uma idéia melhor, dê uma olhada | ||
[num arquivo amostra](https://github.com/feross/bittorrent-dht/blob/master/client.js) escrito no JavaScript Standard Style, ou dê uma olhada em alguns dos | ||
[repositórios](https://github.com/feross/standard-packages/blob/master/all.json) que usam | ||
[num arquivo amostra](https://github.com/webtorrent/bittorrent-dht/blob/master/client.js) escrito no JavaScript Standard Style, ou dê uma olhada em alguns dos | ||
[repositórios](https://github.com/standard/standard-packages/blob/master/all.json) que usam | ||
`standard`. | ||
@@ -90,3 +92,3 @@ | ||
- [Posso usar um custom parser de JS novinho em folha que saiu ontem para suporte ao ES Next?](#posso-usar-um-custom-parser-de-js-novinho-em-folha-que-saiu-ontem-para-suporte-ao-es-next) | ||
- [Posso usar uma linguagem variante de Javascript, tipo Flow?](#posso-usar-uma-linguagem-variante-de-javascript-tipo-flow) | ||
- [Posso usar uma linguagem variante de JavaScript, tipo Flow?](#posso-usar-uma-linguagem-variante-de-javascript-tipo-flow) | ||
- [Você pode tornar regra X configurável?](#voc%C3%AA-pode-tornar-regra-x-configur%C3%A1vel) | ||
@@ -173,6 +175,6 @@ - [E os Web Workers?](#e-os-web-workers) | ||
[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) | ||
```markdown | ||
[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) | ||
``` | ||
@@ -263,3 +265,3 @@ | ||
[webstorm-1]: https://www.jetbrains.com/webstorm/ | ||
[webstorm-2]: https://github.com/feross/standard/blob/master/docs/webstorm.md | ||
[webstorm-2]: https://github.com/standard/standard/blob/master/docs/webstorm.md | ||
@@ -287,3 +289,3 @@ ## FAQ | ||
Claro que não! O estilo aqui disposto não é afiliado com nenhum grupo de padrões web oficiais, e é por isso que esse repo se chama `feross/standard` e não `ECMA/standard`. | ||
Claro que não! O estilo aqui disposto não é afiliado com nenhum grupo de padrões web oficiais, e é por isso que esse repo se chama `standard/standard` e não `ECMA/standard`. | ||
@@ -401,3 +403,3 @@ A palavra "standard" tem muito mais significado do que só "web standard" :-) Por exemplo: | ||
### Posso usar uma linguagem variante de Javascript, tipo Flow? | ||
### Posso usar uma linguagem variante de JavaScript, tipo Flow? | ||
@@ -427,3 +429,3 @@ Antes de usar uma variante de JS customizada, considere se a complexidade a mais no seu processo de construção (e os esforços necessários para conseguir contribuíntes numa velocidade boa) valem a pena. | ||
Se você apenas quer trocar algumas regras, considere usar | ||
[essa configuração compartilhável](https://github.com/feross/eslint-config-standard) e jogue suas mudanças em cima. | ||
[essa configuração compartilhável](https://github.com/standard/eslint-config-standard) e jogue suas mudanças em cima. | ||
@@ -548,3 +550,3 @@ Dica: Use `standard` e pronto. Há problemas reais que você poderia usar seu tempo resolvendo! :P | ||
Contribuições são bem-vindas! Cheque o [issues](https://github.com/feross/standard/issues) ou os [PRs](https://github.com/feross/standard/pulls), e faça o seu próprio se quiser algo que não encontra aqui. | ||
Contribuições são bem-vindas! Cheque o [issues](https://github.com/standard/standard/issues) ou os [PRs](https://github.com/standard/standard/pulls), e faça o seu próprio se quiser algo que não encontra aqui. | ||
@@ -555,16 +557,16 @@ Junte-se ao `#standard` no freenode. | ||
- **[standard](https://github.com/feross/standard)** - esse repo | ||
- **[standard](https://github.com/standard/standard)** - esse repo | ||
- **[standard-engine](https://github.com/flet/standard-engine)** - Motor cli para regras arbritrárias de ESLint | ||
- **[eslint-config-standard](https://github.com/feross/eslint-config-standard)** - Regras ESLint para `standard` | ||
- **[eslint-config-standard](https://github.com/standard/eslint-config-standard)** - Regras ESLint para `standard` | ||
- **[eslint-plugin-standard](https://github.com/xjamundx/eslint-plugin-standard)** - Regras ESLint custom para `standard` (Não fazem parte do core do ESLint) | ||
- **[eslint](https://github.com/eslint/eslint)** - O linter que move o `standard` | ||
- **[standard-format](https://github.com/maxogden/standard-format)** - Formatador de código automático | ||
- **[snazzy](https://github.com/feross/snazzy)** - Output de terminal bonitinho | ||
- **[standard-www](https://github.com/feross/standard-www)** - código do https://standardjs.com | ||
- **[snazzy](https://github.com/standard/snazzy)** - Output de terminal bonitinho | ||
- **[standard-www](https://github.com/standard/standard-www)** - código do https://standardjs.com | ||
- **[semistandard](https://github.com/Flet/semistandard)** - standard, com ponto-e-vírgula (se você precisar) | ||
Há vários **[plugins de editores](#text-editor-plugins)**, uma lista de | ||
**[packages que usam `standard`](https://github.com/feross/standard-packages)**, | ||
**[packages que usam `standard`](https://github.com/standard/standard-packages)**, | ||
e uma awesome list de | ||
**[packages do ecossistema `standard` ](https://github.com/feross/awesome-standard)**. | ||
**[packages do ecossistema `standard` ](https://github.com/standard/awesome-standard)**. | ||
@@ -571,0 +573,0 @@ ## License |
<h1 align="center"> | ||
<a href="https://standardjs.com"><img src="https://cdn.rawgit.com/feross/standard/master/sticker.svg" alt="Standard - JavaScript 代码规范" width="200"></a> | ||
<a href="https://standardjs.com"><img src="https://cdn.rawgit.com/standard/standard/master/sticker.svg" alt="Standard - JavaScript 代码规范" width="200"></a> | ||
<br> | ||
@@ -10,3 +10,3 @@ JavaScript Standard Style | ||
<p align="center"> | ||
<a href="https://travis-ci.org/feross/standard"><img src="https://img.shields.io/travis/feross/standard/master.svg" alt="travis"></a> | ||
<a href="https://travis-ci.org/standard/standard"><img src="https://img.shields.io/travis/standard/standard/master.svg" alt="travis"></a> | ||
<a href="https://www.npmjs.com/package/standard"><img src="https://img.shields.io/npm/v/standard.svg" alt="npm version"></a> | ||
@@ -20,7 +20,9 @@ <a href="https://www.npmjs.com/package/eslint-config-standard"><img src="https://img.shields.io/npm/dm/eslint-config-standard.svg" alt="npm downloads"></a> | ||
<p align="center"> | ||
其他语言: | ||
<a href="../README.md">English</a>, | ||
<a href="docs/README-ptbr.md">Português</a>, | ||
<a href="docs/README-esla.md">Spanish</a>, | ||
<a href="docs/README-zhtw.md">繁體中文</a> | ||
<a href="README-en.md">English</a> • | ||
<a href="README-esla.md">Español (Latinoamérica)</a> • | ||
<a href="README-iteu.md">Italiano (Italian)</a> • | ||
<a href="README-kokr.md">한국어 (Korean)</a> • | ||
<a href="README-ptbr.md">Português (Brasil)</a> • | ||
<a href="README-zhcn.md">简体中文 (Simplified Chinese)</a> • | ||
<a href="README-zhtw.md">繁體中文 (Taiwanese Mandarin)</a> | ||
</p> | ||
@@ -67,6 +69,6 @@ | ||
[3]: https://www.youtube.com/watch?v=gsfbh17Ax9I | ||
[4]: RULES.md#semicolons | ||
[5]: RULES.md#javascript-standard-style | ||
[4]: RULES-zhcn.md#semicolons | ||
[5]: RULES-zhcn.md#javascript-standard-style | ||
说了那么多,看看[这个遵循了 Standard 规范的示例文件](https://github.com/expressjs/body-parser/blob/master/index.js) 中的代码吧。或者,这里还有[一大波使用了此规范的项目](https://raw.githubusercontent.com/feross/standard-packages/master/all.json) 代码可供参考。 | ||
说了那么多,看看[这个遵循了 Standard 规范的示例文件](https://github.com/expressjs/body-parser/blob/master/index.js) 中的代码吧。或者,这里还有[一大波使用了此规范的项目](https://raw.githubusercontent.com/standard/standard-packages/master/all.json) 代码可供参考。 | ||
@@ -85,3 +87,3 @@ ## 目录 | ||
- [如果我不同意某条规则,可以改吗?](#i-disagree-with-rule-x-can-you-change-it) | ||
- [毕竟这不是一分正式的 Web 规范啊!](#but-this-isnt-a-real-web-standard) | ||
- [毕竟这不是一份正式的 Web 规范啊!](#but-this-isnt-a-real-web-standard) | ||
- [有自动格式化工具么?](#is-there-an-automatic-formatter) | ||
@@ -92,3 +94,3 @@ - [如何排除某些文件?](#how-do-i-ignore-files) | ||
- [如何才能使用处于实验阶段的 JavaScript 特性(譬如 ES Next)?](#how-do-i-use-experimental-javascript-es-next-features) | ||
- [我能使用其他 Javascript 变种吗,例如 Flow?](#can-i-use-a-javascript-language-variant-like-flow) | ||
- [我能使用其他 JavaScript 变种吗,例如 Flow?](#can-i-use-a-javascript-language-variant-like-flow) | ||
- [如何与 Mocha,Jasmine 和 QUnit 这些测试工具搭配工作?](#what-about-mocha-jasmine-qunit-etc) | ||
@@ -179,21 +181,21 @@ - [Web Workers 有考虑过么?](#what-about-web-workers) | ||
[<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/npm.png>](https://www.npmjs.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/github.png>](https://github.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/opbeat.png>](https://opbeat.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/nearform.png>](http://www.nearform.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/brave.png>](https://www.brave.com) | | ||
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/npm.png>](https://www.npmjs.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/github.png>](https://github.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/opbeat.png>](https://opbeat.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/nearform.png>](http://www.nearform.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/brave.png>](https://www.brave.com) | | ||
|---|---|---|---|---| | ||
| [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/zeit.png>](https://zeit.co) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/zendesk.png>](https://www.zendesk.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/mongodb.jpg>](https://www.mongodb.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/typeform.jpg>](https://www.typeform.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/gov-uk.png>](https://gds.blog.gov.uk) | | ||
| [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/zeit.png>](https://zeit.co) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/zendesk.png>](https://www.zendesk.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/mongodb.jpg>](https://www.mongodb.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/typeform.jpg>](https://www.typeform.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/gov-uk.png>](https://gds.blog.gov.uk) | | ||
|---|---|---|---|---| | ||
[<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/express.png>](http://expressjs.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/webtorrent.png>](https://webtorrent.io) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/ipfs.png>](https://ipfs.io) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/dat.png>](https://datproject.org) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/bitcoinjs.png>](https://bitcoinjs.org) | | ||
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/express.png>](http://expressjs.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/webtorrent.png>](https://webtorrent.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/ipfs.png>](https://ipfs.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/dat.png>](https://datproject.org) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/bitcoinjs.png>](https://bitcoinjs.org) | | ||
|---|---|---|---|---| | ||
[<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/atom.png>](https://atom.io) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/electron.png>](http://electron.atom.io) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/voltra.png>](https://voltra.co) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/treasuredata.png>](https://www.treasuredata.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/clevertech.png>](https://clevertech.biz) | | ||
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/atom.png>](https://atom.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/electron.png>](http://electron.atom.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/voltra.png>](https://voltra.co) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/treasuredata.png>](https://www.treasuredata.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/clevertech.png>](https://clevertech.biz) | | ||
|---|---|---|---|---| | ||
[<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/studynotes.jpg>](https://www.apstudynotes.org) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/optiopay.png>](https://www.optiopay.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/jaguar-landrover.png>](https://www.jlrtechincubator.com/jlrti/) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/bustle.jpg>](https://www.bustle.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/zentrick.png>](https://www.zentrick.com) | | ||
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/studynotes.jpg>](https://www.apstudynotes.org) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/optiopay.png>](https://www.optiopay.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/jaguar-landrover.png>](https://www.jlrtechincubator.com/jlrti/) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/bustle.jpg>](https://www.bustle.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/zentrick.png>](https://www.zentrick.com) | | ||
|---|---|---|---|---| | ||
[<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/nodesource.png>](https://nodesource.com) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/greenkeeper.png>](https://greenkeeper.io) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/karma.png>](https://karma-runner.github.io) | [<img width=150 src=https://cdn.rawgit.com/feross/standard/master/docs/logos/taser.png>](https://www.taser.com) | | ||
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/nodesource.png>](https://nodesource.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/greenkeeper.png>](https://greenkeeper.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/karma.png>](https://karma-runner.github.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/taser.png>](https://www.taser.com) | | ||
|---|---|---|---| | ||
除公司组织外,[很多个人](https://raw.githubusercontent.com/feross/standard-packages/master/all.json)也在项目中使用,这里就不一一罗列了。 | ||
除公司组织外,[很多个人](https://raw.githubusercontent.com/standard/standard-packages/master/all.json)也在项目中使用,这里就不一一罗列了。 | ||
@@ -281,6 +283,6 @@ 并且 `standard` 在 GitHub 的[代码检查类工具](https://github.com/showcases/clean-code-linters) 展示列表中也排名第一。 | ||
[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) | ||
```md | ||
[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) | ||
``` | ||
@@ -299,3 +301,3 @@ | ||
如果你非要自己去配置成百上千项的 ESLint 规则,那你可以直接使用 | ||
[eslint-config-standard](https://github.com/feross/eslint-config-standard) 来将个人配置包装在上层。 | ||
[eslint-config-standard](https://github.com/standard/eslint-config-standard) 来将个人配置包装在上层。 | ||
@@ -306,5 +308,5 @@ 小贴士:选择 `standard` 然后保持吧。把时间留下来解决其他有意义的问题!\(^____^)/ | ||
## 毕竟这不是一分正式的 Web 规范啊! | ||
## 毕竟这不是一份正式的 Web 规范啊! | ||
确实!这份规范不隶属于任何官方组织,所以才叫 `feross/standard` 而不是 `ECMA/standard` 嘛。 | ||
确实!这份规范不隶属于任何官方组织,所以才叫 `standard/standard` 而不是 `ECMA/standard` 嘛。 | ||
@@ -428,7 +430,7 @@ 而 `standard` (标准) 一词在这里不局限于 “web 标准” :-) 。 举个例子: | ||
## 我能使用其他 Javascript 变种吗,例如 Flow? | ||
## 我能使用其他 JavaScript 变种吗,例如 Flow? | ||
同样地,想要使用一个 JS 变种之前,先考虑添加和使用它所带来的复杂度看是否值得这么去做。 | ||
`standard` 支付 ESLint 插件。在 `standard` 处理代码前,使用任何一个插件来将代码编译成合法的 JS 即可。 从 npm 安装一个自定义的解析器 (示例:`npm install eslint-plugin-flowtype`) 然后运行: | ||
`standard` 支持 ESLint 插件。在 `standard` 处理代码前,使用任何一个插件来将代码编译成合法的 JS 即可。 从 npm 安装一个自定义的解析器 (示例:`npm install eslint-plugin-flowtype`) 然后运行: | ||
@@ -520,3 +522,3 @@ ```bash | ||
#!/bin/sh | ||
# 确保将要提交的所有 JavaScript 代码通过 standard 规范的检查 | ||
# 确保将要提交的所有 JavaScript 代码通过 standard 规范的检查 | ||
git diff --name-only --cached --relative | grep '\.jsx\?$' | xargs standard | ||
@@ -613,3 +615,3 @@ if [ $? -ne 0 ]; then exit 1; fi | ||
欢迎参与进来!逛逛 [issues](https://github.com/feross/standard/issues) 或者 [PRs](https://github.com/feross/standard/pulls) 页面,如果发现没有找到想要的问题可以自己提一个。 | ||
欢迎参与进来!逛逛 [issues](https://github.com/standard/standard/issues) 或者 [PRs](https://github.com/standard/standard/pulls) 页面,如果发现没有找到想要的问题可以自己提一个。 | ||
@@ -620,14 +622,14 @@ 来 freenode 的 `#standard` 频道与其他人一起聊天讨论! | ||
- **[standard](https://github.com/feross/standard)** - 本仓库 | ||
- **[standard](https://github.com/standard/standard)** - 本仓库 | ||
- **[standard-engine](https://github.com/flet/standard-engine)** - 一个 eslint 命令行引擎 | ||
- **[eslint-config-standard](https://github.com/feross/eslint-config-standard)** -standard 规范的 eslint 检查器 | ||
- **[eslint-config-standard-jsx](https://github.com/feross/eslint-config-standard-jsx)** - standard (JSX) 的 eslint 规范 | ||
- **[eslint-config-standard](https://github.com/standard/eslint-config-standard)** -standard 规范的 eslint 检查器 | ||
- **[eslint-config-standard-jsx](https://github.com/standard/eslint-config-standard-jsx)** - standard (JSX) 的 eslint 规范 | ||
- **[eslint-plugin-standard](https://github.com/xjamundx/eslint-plugin-standard)** - standard 规范自定义的 eslint 规则(不在 eslint 核心规则里面) | ||
- **[eslint](https://github.com/eslint/eslint)** - standard 基于它来实现的 | ||
- **[snazzy](https://github.com/feross/snazzy)** - 美化输出 | ||
- **[standard-www](https://github.com/feross/standard-www)** - https://standardjs.com 站点的源码 | ||
- **[snazzy](https://github.com/standard/snazzy)** - 美化输出 | ||
- **[standard-www](https://github.com/standard/standard-www)** - https://standardjs.com 站点的源码 | ||
- **[semistandard](https://github.com/Flet/semistandard)** - standard 规范带逗号的版本(如果你需要的话) | ||
还有很多 **[编辑器插件](#text-editor-plugins)**、一个 | ||
**[使用 `standard` 规范开发的 npm 包](https://github.com/feross/standard-packages)**的列表、还有一分非常棒的**[ `standard` 生态中所使用到的包](https://github.com/feross/awesome-standard)**的列表。 | ||
**[使用 `standard` 规范开发的 npm 包](https://github.com/standard/standard-packages)**的列表、还有一分非常棒的**[ `standard` 生态中所使用到的包](https://github.com/standard/awesome-standard)**的列表。 | ||
@@ -634,0 +636,0 @@ ## 协议 |
<h1 align="center"> | ||
<a href="https://standardjs.com"><img src="https://cdn.rawgit.com/feross/standard/master/sticker.svg" alt="Standard - JavaScript 樣式教學" width="200"></a> | ||
<a href="https://standardjs.com"><img src="https://cdn.rawgit.com/standard/standard/master/sticker.svg" alt="Standard - JavaScript 樣式教學" width="200"></a> | ||
<br> | ||
@@ -10,3 +10,3 @@ JavaScript Standard Style | ||
<p align="center"> | ||
<a href="https://travis-ci.org/feross/standard"><img src="https://img.shields.io/travis/feross/standard/master.svg" alt="Travis"></a> | ||
<a href="https://travis-ci.org/standard/standard"><img src="https://img.shields.io/travis/standard/standard/master.svg" alt="Travis"></a> | ||
<a href="https://standardjs.com"><img src="https://img.shields.io/badge/code_style-standard-brightgreen.svg" alt="Standard - JavaScript Style Guide"></a> | ||
@@ -20,7 +20,9 @@ <a href="https://www.npmjs.com/package/standard"><img src="https://img.shields.io/npm/dm/standard.svg" alt="npm downloads"></a> | ||
<p align="center"> | ||
翻譯: | ||
<a href="../README.md">English</a>, | ||
<a href="README-ptbr.md">Português</a>, | ||
<a href="README-esla.md">Spanish</a>, | ||
<a href="README-zhcn.md">简体中文</a> | ||
<a href="README-en.md">English</a> • | ||
<a href="README-esla.md">Español (Latinoamérica)</a> • | ||
<a href="README-iteu.md">Italiano (Italian)</a> • | ||
<a href="README-kokr.md">한국어 (Korean)</a> • | ||
<a href="README-ptbr.md">Português (Brasil)</a> • | ||
<a href="README-zhcn.md">简体中文 (Simplified Chinese)</a> • | ||
<a href="README-zhtw.md">繁體中文 (Taiwanese Mandarin)</a> | ||
</p> | ||
@@ -66,3 +68,3 @@ | ||
看看一些[用 JavaScript Standard Style 寫的範例](https://github.com/expressjs/body-parser/blob/master/index.js)來了解更多,或查看其他[數以千計使用 `standard` 的專案。](https://raw.githubusercontent.com/feross/standard-packages/master/all.json) | ||
看看一些[用 JavaScript Standard Style 寫的範例](https://github.com/expressjs/body-parser/blob/master/index.js)來了解更多,或查看其他[數以千計使用 `standard` 的專案。](https://raw.githubusercontent.com/standard/standard-packages/master/all.json) | ||
@@ -189,3 +191,3 @@ ## 目錄 | ||
除了公司之外,非常多的社群也在套件中採用了 `standard` [因為太多了](https://raw.githubusercontent.com/feross/standard-packages/master/all.json) 無法在此一一列舉。 | ||
除了公司之外,非常多的社群也在套件中採用了 `standard` [因為太多了](https://raw.githubusercontent.com/standard/standard-packages/master/all.json) 無法在此一一列舉。 | ||
@@ -274,6 +276,6 @@ `standard` 也是 GitHub 的 | ||
[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) | ||
```md | ||
[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) | ||
``` | ||
@@ -291,3 +293,3 @@ | ||
如果你真的非常想要去客製化設定幾百行的規則,應該直接去用 `eslint` 和 [eslint-config-standard](https://github.com/feross/eslint-config-standard),可以把你想要的規則列在最前面。 | ||
如果你真的非常想要去客製化設定幾百行的規則,應該直接去用 `eslint` 和 [eslint-config-standard](https://github.com/standard/eslint-config-standard),可以把你想要的規則列在最前面。 | ||
@@ -300,3 +302,3 @@ 專業建議:就直接用 `standard` 然後開始吧。把時間花在那些你真正該解決的問題上吧!:P | ||
這當然不是!這個風格訂定並不是隸屬於什麼正式網路團體的,所以這個專案才叫做 `feross/standard` 而不是 | ||
這當然不是!這個風格訂定並不是隸屬於什麼正式網路團體的,所以這個專案才叫做 `standard/standard` 而不是 | ||
`ECMA/standard`. | ||
@@ -406,3 +408,3 @@ | ||
為了支援實驗性質的語法,`standard` 支援客製化 Javascript 語法解析器。在使用客製化語法解析器前,請考慮清楚是否值得去增加這些複雜度。 | ||
為了支援實驗性質的語法,`standard` 支援客製化 JavaScript 語法解析器。在使用客製化語法解析器前,請考慮清楚是否值得去增加這些複雜度。 | ||
@@ -593,3 +595,3 @@ 要使用客製化語法解析器,可以從 npm 安裝(比如說:`npm install babel-eslint`),然後執行: | ||
我們非常歡迎貢獻!可以看看[議題](https://github.com/feross/standard/issues) 或 [PRs](https://github.com/feross/standard/pulls),如果沒看到想要的東西,也可以自己建立。 | ||
我們非常歡迎貢獻!可以看看[議題](https://github.com/standard/standard/issues) 或 [PRs](https://github.com/standard/standard/pulls),如果沒看到想要的東西,也可以自己建立。 | ||
@@ -600,14 +602,14 @@ 加入 freenode 的 `#standard` 群組來跟其他貢獻者聊天吧! | ||
- **[standard](https://github.com/feross/standard)** - 本專案 | ||
- **[standard](https://github.com/standard/standard)** - 本專案 | ||
- **[standard-engine](https://github.com/flet/standard-engine)** - 命令列引擎 | ||
- **[eslint-config-standard](https://github.com/feross/eslint-config-standard)** - standard 的 eslint 規則 | ||
- **[eslint-config-standard-jsx](https://github.com/feross/eslint-config-standard-jsx)** - standard (JSX) 的 eslint 規則 | ||
- **[eslint-config-standard](https://github.com/standard/eslint-config-standard)** - standard 的 eslint 規則 | ||
- **[eslint-config-standard-jsx](https://github.com/standard/eslint-config-standard-jsx)** - standard (JSX) 的 eslint 規則 | ||
- **[eslint-plugin-standard](https://github.com/xjamundx/eslint-plugin-standard)** - standard 客製化 eslint 規則(非 eslint 核心) | ||
- **[eslint](https://github.com/eslint/eslint)** - 驅動 standard 的核心 | ||
- **[snazzy](https://github.com/feross/snazzy)** - standard 的終端機美麗輸出 | ||
- **[standard-www](https://github.com/feross/standard-www)** - https://standardjs.com 網站程式 | ||
- **[snazzy](https://github.com/standard/snazzy)** - standard 的終端機美麗輸出 | ||
- **[standard-www](https://github.com/standard/standard-www)** - https://standardjs.com 網站程式 | ||
- **[semistandard](https://github.com/Flet/semistandard)** - standard,含分號版本(如果你真的真的必須要加分號) | ||
也有非常多的 **[編輯器外掛](#text-editor-plugins)**、 | ||
**[有使用 `standard` 的 npm 套件清單](https://github.com/feross/standard-packages)**和 **[`standard` 生態系的清單](https://github.com/feross/awesome-standard)**。 | ||
**[有使用 `standard` 的 npm 套件清單](https://github.com/standard/standard-packages)**和 **[`standard` 生態系的清單](https://github.com/standard/awesome-standard)**。 | ||
@@ -614,0 +616,0 @@ ## 授權 |
# JavaScript Standard Style | ||
Translations: [English](../RULES.md), [Português](RULES-ptbr.md), [繁體中文](RULES-zhtw.md), [简体中文](RULES-zhcn.md) | ||
<p align="center"> | ||
<a href="RULES-en.md">English</a> • | ||
<a href="RULES-esla.md">Español (Latinoamérica)</a> • | ||
<a href="RULES-iteu.md">Italiano (Italian)</a> • | ||
<a href="RULES-kokr.md">한국어 (Korean)</a> • | ||
<a href="RULES-ptbr.md">Português (Brasil)</a> • | ||
<a href="RULES-zhcn.md">简体中文 (Simplified Chinese)</a> • | ||
<a href="RULES-zhtw.md">繁體中文 (Taiwanese Mandarin)</a> | ||
</p> | ||
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
[![js-standard-style](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) | ||
Esto es un TL;DR (muy largo, no lo leí) de reglas JavaScript [standard](https://github.com/feross/standard). | ||
Esto es un TL;DR (muy largo, no lo leí) de reglas JavaScript [standard](https://github.com/standard/standard). | ||
@@ -9,0 +17,0 @@ La mejor manera de aprender acerca de `standard` es instalarlo darle una prueba en tu código. |
# JavaScript Standard Style | ||
Translations: [English](../RULES.md), [Spanish](RULES-esla.md), [繁體中文](RULES-zhtw.md), [简体中文](RULES-zhcn.md) | ||
<p align="center"> | ||
<a href="RULES-en.md">English</a> • | ||
<a href="RULES-esla.md">Español (Latinoamérica)</a> • | ||
<a href="RULES-iteu.md">Italiano (Italian)</a> • | ||
<a href="RULES-kokr.md">한국어 (Korean)</a> • | ||
<a href="RULES-ptbr.md">Português (Brasil)</a> • | ||
<a href="RULES-zhcn.md">简体中文 (Simplified Chinese)</a> • | ||
<a href="RULES-zhtw.md">繁體中文 (Taiwanese Mandarin)</a> | ||
</p> | ||
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
[![js-standard-style](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) | ||
Esse é um "TL;DR" (ou "muito grande; nemli") das regras do [standard](https://github.com/feross/standard) | ||
Esse é um "TL;DR" (ou "muito grande; nemli") das regras do [standard](https://github.com/standard/standard) | ||
@@ -9,0 +17,0 @@ A melhor forma de aprender sobre o `standard` é instalar e usar no seu código. |
# JavaScript Standard Style | ||
其他语言: [English](../RULES.md)、[Português](docs/RULES-ptbr.md)、[Spanish](docs/RULES-esla.md)、[繁體中文](docs/RULES-zhtw.md) | ||
<p align="center"> | ||
<a href="RULES-en.md">English</a> • | ||
<a href="RULES-esla.md">Español (Latinoamérica)</a> • | ||
<a href="RULES-iteu.md">Italiano (Italian)</a> • | ||
<a href="RULES-kokr.md">한국어 (Korean)</a> • | ||
<a href="RULES-ptbr.md">Português (Brasil)</a> • | ||
<a href="RULES-zhcn.md">简体中文 (Simplified Chinese)</a> • | ||
<a href="RULES-zhtw.md">繁體中文 (Taiwanese Mandarin)</a> | ||
</p> | ||
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
[![js-standard-style](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) | ||
这是 JavaScript [standard](https://github.com/feross/standard) 代码规范的全文。 | ||
这是 JavaScript [standard](https://github.com/standard/standard) 代码规范的全文。 | ||
@@ -9,0 +17,0 @@ 掌握本规范的最好方法是安装并在自己的代码中使用它。 |
# JavaScript Standard Style | ||
翻譯: [English](../RULES.md)、[Português](RULES-ptbr.md)、[Spanish](RULES-esla.md)、[简体中文](RULES-zhcn.md) | ||
<p align="center"> | ||
<a href="RULES-en.md">English</a> • | ||
<a href="RULES-esla.md">Español (Latinoamérica)</a> • | ||
<a href="RULES-iteu.md">Italiano (Italian)</a> • | ||
<a href="RULES-kokr.md">한국어 (Korean)</a> • | ||
<a href="RULES-ptbr.md">Português (Brasil)</a> • | ||
<a href="RULES-zhcn.md">简体中文 (Simplified Chinese)</a> • | ||
<a href="RULES-zhtw.md">繁體中文 (Taiwanese Mandarin)</a> | ||
</p> | ||
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
[![js-standard-style](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) | ||
這是 [standard](https://github.com/feross/standard) 語法規則的摘要。 | ||
這是 [standard](https://github.com/standard/standard) 語法規則的摘要。 | ||
@@ -9,0 +17,0 @@ 最快速掌握 `standard` 的方法,就是直接安裝並在你的程式碼中開始使用。 |
{ | ||
"name": "standard", | ||
"description": "JavaScript Standard Style", | ||
"version": "10.0.2", | ||
"version": "10.0.3", | ||
"author": { | ||
@@ -12,3 +12,3 @@ "email": "feross@feross.org", | ||
"bugs": { | ||
"url": "https://github.com/feross/standard/issues" | ||
"url": "https://github.com/standard/standard/issues" | ||
}, | ||
@@ -18,3 +18,3 @@ "dependencies": { | ||
"eslint-config-standard": "10.2.1", | ||
"eslint-config-standard-jsx": "4.0.1", | ||
"eslint-config-standard-jsx": "4.0.2", | ||
"eslint-plugin-import": "~2.2.0", | ||
@@ -70,3 +70,3 @@ "eslint-plugin-node": "~4.2.2", | ||
"type": "git", | ||
"url": "git://github.com/feross/standard.git" | ||
"url": "git://github.com/standard/standard.git" | ||
}, | ||
@@ -73,0 +73,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
454781
25
768
1
+ Addedeslint-config-standard-jsx@4.0.2(transitive)
- Removedeslint-config-standard-jsx@4.0.1(transitive)