| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1438d00 commit dd5a4e1
722 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -84,7 +84,11 @@ rules: | |||
| 84 | 84 | eol-last: 2 | |
| 85 | 85 | func-call-spacing: 2 | |
| 86 | 86 | func-name-matching: 2 | |
| 87 | - indent: [2, 2, {SwitchCase: 1, MemberExpression: 1}] | ||
| 87 | + indent: [2, 2, {ArrayExpression: first, | ||
| 88 | + CallExpression: {arguments: first}, | ||
| 89 | + MemberExpression: 1, | ||
| 90 | + ObjectExpression: first, | ||
| 91 | + SwitchCase: 1}] | ||
| 88 | 92 | key-spacing: [2, {mode: minimum}] | |
| 89 | 93 | keyword-spacing: 2 | |
| 90 | 94 | linebreak-style: [2, unix] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | ESLint | |
| 2 | - Copyright jQuery Foundation and other contributors, https://jquery.org/ | ||
| 2 | + Copyright JS Foundation and other contributors, https://js.foundation | ||
| 3 | 3 | ||
| 4 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 5 | 5 | of this software and associated documentation files (the "Software"), to deal | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ | |||
| 13 | 13 | [Rules](http://eslint.org/docs/rules/) | | |
| 14 | 14 | [Contributing](http://eslint.org/docs/developer-guide/contributing) | | |
| 15 | 15 | [Reporting Bugs](http://eslint.org/docs/developer-guide/contributing/reporting-bugs) | | |
| 16 | - [Code of Conduct](https://jquery.org/conduct/) | | ||
| 16 | + [Code of Conduct](https://js.foundation/conduct/) | | ||
| 17 | 17 | [Twitter](https://twitter.com/geteslint) | | |
| 18 | 18 | [Mailing List](https://groups.google.com/group/eslint) | | |
| 19 | 19 | [Chat Room](https://gitter.im/eslint/eslint) | |
@@ -210,10 +210,7 @@ ESLint has full support for ECMAScript 6. By default, this support is off. You c | |||
| 210 | 210 | ||
| 211 | 211 | ESLint doesn't natively support experimental ECMAScript language features. You can use [babel-eslint](https://github.com/babel/babel-eslint) to use any option available in Babel. | |
| 212 | 212 | ||
| 213 | - Once a language feature has been adopted into the ECMAScript standard, we will accept | ||
| 214 | - issues and pull requests related to the new feature, subject to our [contributing | ||
| 215 | - guidelines](http://eslint.org/docs/developer-guide/contributing). Until then, please use | ||
| 216 | - the appropriate parser and plugin(s) for your experimental feature. | ||
| 213 | + Once a language feature has been adopted into the ECMAScript standard (stage 4 according to the [TC39 process](https://tc39.github.io/process-document/)), we will accept issues and pull requests related to the new feature, subject to our [contributing guidelines](http://eslint.org/docs/developer-guide/contributing). Until then, please use the appropriate parser and plugin(s) for your experimental feature. | ||
| 217 | 214 | ||
| 218 | 215 | ### Where to ask for help? | |
| 219 | 216 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ | |||
| 5 | 5 | * @author Nicholas C. Zakas | |
| 6 | 6 | */ | |
| 7 | 7 | ||
| 8 | - /* eslint no-console:off, no-process-exit:off */ | ||
| 8 | + /* eslint no-console:off */ | ||
| 9 | 9 | ||
| 10 | 10 | "use strict"; | |
| 11 | 11 | ||
@@ -36,7 +36,7 @@ const concat = require("concat-stream"), | |||
| 36 | 36 | // Execution | |
| 37 | 37 | //------------------------------------------------------------------------------ | |
| 38 | 38 | ||
| 39 | - process.on("uncaughtException", function(err) { | ||
| 39 | + process.once("uncaughtException", err => { | ||
| 40 | 40 | ||
| 41 | 41 | // lazy load | |
| 42 | 42 | const lodash = require("lodash"); | |
@@ -51,17 +51,17 @@ process.on("uncaughtException", function(err) { | |||
| 51 | 51 | console.log(err.stack); | |
| 52 | 52 | } | |
| 53 | 53 | ||
| 54 | - process.exit(1); | ||
| 54 | + process.exitCode = 1; | ||
| 55 | 55 | }); | |
| 56 | 56 | ||
| 57 | 57 | if (useStdIn) { | |
| 58 | - process.stdin.pipe(concat({ encoding: "string" }, function(text) { | ||
| 58 | + process.stdin.pipe(concat({ encoding: "string" }, text => { | ||
| 59 | 59 | process.exitCode = cli.execute(process.argv, text); | |
| 60 | 60 | })); | |
| 61 | 61 | } else if (init) { | |
| 62 | 62 | const configInit = require("../lib/config/config-initializer"); | |
| 63 | 63 | ||
| 64 | - configInit.initializeConfig(function(err) { | ||
| 64 | + configInit.initializeConfig(err => { | ||
| 65 | 65 | if (err) { | |
| 66 | 66 | process.exitCode = 1; | |
| 67 | 67 | console.error(err.message); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,7 @@ | |||
| 4 | 4 | "rules": { | |
| 5 | 5 | "no-alert": "off", | |
| 6 | 6 | "no-array-constructor": "off", | |
| 7 | + "no-await-in-loop": "off", | ||
| 7 | 8 | "no-bitwise": "off", | |
| 8 | 9 | "no-caller": "off", | |
| 9 | 10 | "no-case-declarations": "error", | |
@@ -41,7 +42,7 @@ | |||
| 41 | 42 | "no-fallthrough": "error", | |
| 42 | 43 | "no-floating-decimal": "off", | |
| 43 | 44 | "no-func-assign": "error", | |
| 44 | - "no-global-assign": "off", | ||
| 45 | + "no-global-assign": "error", | ||
| 45 | 46 | "no-implicit-coercion": "off", | |
| 46 | 47 | "no-implicit-globals": "off", | |
| 47 | 48 | "no-implied-eval": "off", | |
@@ -63,9 +64,9 @@ | |||
| 63 | 64 | "no-multi-spaces": "off", | |
| 64 | 65 | "no-multi-str": "off", | |
| 65 | 66 | "no-multiple-empty-lines": "off", | |
| 66 | - "no-native-reassign": "error", | ||
| 67 | + "no-native-reassign": "off", | ||
| 67 | 68 | "no-negated-condition": "off", | |
| 68 | - "no-negated-in-lhs": "error", | ||
| 69 | + "no-negated-in-lhs": "off", | ||
| 69 | 70 | "no-nested-ternary": "off", | |
| 70 | 71 | "no-new": "off", | |
| 71 | 72 | "no-new-func": "off", | |
@@ -91,6 +92,7 @@ | |||
| 91 | 92 | "no-restricted-properties": "off", | |
| 92 | 93 | "no-restricted-syntax": "off", | |
| 93 | 94 | "no-return-assign": "off", | |
| 95 | + "no-return-await": "off", | ||
| 94 | 96 | "no-script-url": "off", | |
| 95 | 97 | "no-self-assign": "error", | |
| 96 | 98 | "no-self-compare": "off", | |
@@ -115,7 +117,7 @@ | |||
| 115 | 117 | "no-unneeded-ternary": "off", | |
| 116 | 118 | "no-unreachable": "error", | |
| 117 | 119 | "no-unsafe-finally": "error", | |
| 118 | - "no-unsafe-negation": "off", | ||
| 120 | + "no-unsafe-negation": "error", | ||
| 119 | 121 | "no-unused-expressions": "off", | |
| 120 | 122 | "no-unused-labels": "error", | |
| 121 | 123 | "no-unused-vars": "error", | |
@@ -126,6 +128,7 @@ | |||
| 126 | 128 | "no-useless-constructor": "off", | |
| 127 | 129 | "no-useless-escape": "off", | |
| 128 | 130 | "no-useless-rename": "off", | |
| 131 | + "no-useless-return": "off", | ||
| 129 | 132 | "no-void": "off", | |
| 130 | 133 | "no-var": "off", | |
| 131 | 134 | "no-warning-comments": "off", | |
@@ -141,6 +144,7 @@ | |||
| 141 | 144 | "brace-style": "off", | |
| 142 | 145 | "callback-return": "off", | |
| 143 | 146 | "camelcase": "off", | |
| 147 | + "capitalized-comments": "off", | ||
| 144 | 148 | "class-methods-use-this": "off", | |
| 145 | 149 | "comma-dangle": "off", | |
| 146 | 150 | "comma-spacing": "off", | |
@@ -200,6 +204,7 @@ | |||
| 200 | 204 | "padded-blocks": "off", | |
| 201 | 205 | "prefer-arrow-callback": "off", | |
| 202 | 206 | "prefer-const": "off", | |
| 207 | + "prefer-destructuring": "off", | ||
| 203 | 208 | "prefer-numeric-literals": "off", | |
| 204 | 209 | "prefer-reflect": "off", | |
| 205 | 210 | "prefer-rest-params": "off", | |
@@ -208,6 +213,7 @@ | |||
| 208 | 213 | "quote-props": "off", | |
| 209 | 214 | "quotes": "off", | |
| 210 | 215 | "radix": "off", | |
| 216 | + "require-await": "off", | ||
| 211 | 217 | "require-jsdoc": "off", | |
| 212 | 218 | "require-yield": "error", | |
| 213 | 219 | "rest-spread-spacing": "off", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments