eslint-plugin-etc-misc 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Disallow function declarations that appear after a `return` statement in the same block scope.
|
|
4
4
|
|
|
5
|
+
## Why this rule is included here
|
|
6
|
+
|
|
7
|
+
This rule was integrated into `eslint-plugin-etc-misc` to avoid requiring a separate single-rule plugin dependency.
|
|
8
|
+
|
|
9
|
+
Original plugin source: [`eslint-plugin-no-function-declare-after-return`](https://github.com/bhumijgupta/eslint-plugin-no-function-declare-after-return).
|
|
10
|
+
|
|
5
11
|
## Rule details
|
|
6
12
|
|
|
7
13
|
JavaScript hoists `function` declarations to the top of their enclosing scope,
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Disallow usage of non-native members on built-in JavaScript objects.
|
|
4
4
|
|
|
5
|
+
## Why this rule is included here
|
|
6
|
+
|
|
7
|
+
This rule was integrated into `eslint-plugin-etc-misc` to avoid requiring a separate single-rule plugin dependency.
|
|
8
|
+
|
|
9
|
+
Original plugin source: [`eslint-plugin-no-use-extend-native`](https://github.com/dustinspecker/eslint-plugin-no-use-extend-native).
|
|
10
|
+
|
|
5
11
|
## Rule details
|
|
6
12
|
|
|
7
13
|
This rule helps prevent implicit reliance on monkey-patched native prototypes (for example from legacy libraries that add methods like `String.prototype.green`).
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Disallow regular expressions that are potentially vulnerable to ReDoS (Regular Expression Denial of Service).
|
|
4
4
|
|
|
5
|
+
## Why this rule is included here
|
|
6
|
+
|
|
7
|
+
This rule was integrated into `eslint-plugin-etc-misc` to avoid requiring a separate single-rule plugin dependency.
|
|
8
|
+
|
|
9
|
+
Original plugin source: [`eslint-plugin-redos-detector`](https://github.com/tjenkinson/eslint-plugin-redos-detector).
|
|
10
|
+
|
|
5
11
|
## Rule details
|
|
6
12
|
|
|
7
13
|
This rule analyzes regular expression literals and statically-resolvable `RegExp(...)` constructor calls using [`recheck`](https://www.npmjs.com/package/recheck).
|
package/package.json
CHANGED