|
| 1 | +diff --git a/lib/rules/no-empty-function.js b/lib/rules/no-empty-function.js |
| 2 | +index 16e611bb138acd0bf4f36218c32235f317f51f9d..1a39313f3b9dfc280eb74f9df699ac8f16011364 100644 |
| 3 | +--- a/lib/rules/no-empty-function.js |
| 4 | ++++ b/lib/rules/no-empty-function.js |
| 5 | +@@ -122,7 +122,7 @@ module.exports = { |
| 6 | + }, |
| 7 | + |
| 8 | + create(context) { |
| 9 | +- const [{ allow }] = context.options; |
| 10 | ++ const [{ allow } = this.meta.defaultOptions[0]] = context.options; |
| 11 | + const sourceCode = context.sourceCode; |
| 12 | + |
| 13 | + /** |
| 14 | +diff --git a/lib/rules/no-unused-expressions.js b/lib/rules/no-unused-expressions.js |
| 15 | +index fd1437c1606a56cbce147d040d601d0acef3d24a..1ac2d6e45fbb04f93d9cccdc5265bb38c3701aca 100644 |
| 16 | +--- a/lib/rules/no-unused-expressions.js |
| 17 | ++++ b/lib/rules/no-unused-expressions.js |
| 18 | +@@ -76,7 +76,7 @@ module.exports = { |
| 19 | + allowTernary, |
| 20 | + allowTaggedTemplates, |
| 21 | + enforceForJSX |
| 22 | +- }] = context.options; |
| 23 | ++ } = {}] = context.options; |
| 24 | + |
| 25 | + /** |
| 26 | + * Has AST suggesting a directive. |
| 27 | +diff --git a/lib/rules/no-warning-comments.js b/lib/rules/no-warning-comments.js |
| 28 | +index 628f5a2ac513303cc3fe2cc9adcbf1ae54128747..a42e8318e028c6a3717afceef3c949bf8eab5827 100644 |
| 29 | +--- a/lib/rules/no-warning-comments.js |
| 30 | ++++ b/lib/rules/no-warning-comments.js |
| 31 | +@@ -64,7 +64,7 @@ module.exports = { |
| 32 | + |
| 33 | + create(context) { |
| 34 | + const sourceCode = context.sourceCode; |
| 35 | +- const [{ decoration, location, terms: warningTerms }] = context.options; |
| 36 | ++ const [{ decoration, location, terms: warningTerms } = this.meta.defaultOptions[0]] = context.options; |
| 37 | + const escapedDecoration = escapeRegExp(decoration ? decoration.join("") : ""); |
| 38 | + const selfConfigRegEx = /\bno-warning-comments\b/u; |
| 39 | + |
0 commit comments