|
440 | 440 | "getter-return": { |
441 | 441 | "type": "problem", |
442 | 442 | "defaultOptions": [ |
443 | | - {} |
| 443 | + { |
| 444 | + "allowImplicit": false |
| 445 | + } |
444 | 446 | ], |
445 | 447 | "docs": { |
446 | 448 | "description": "Enforce `return` statements in getters", |
|
515 | 517 | { |
516 | 518 | "exceptionPatterns": [], |
517 | 519 | "exceptions": [], |
518 | | - "min": 2 |
| 520 | + "min": 2, |
| 521 | + "properties": "always" |
519 | 522 | } |
520 | 523 | ], |
521 | 524 | "docs": { |
|
528 | 531 | "type": "suggestion", |
529 | 532 | "defaultOptions": [ |
530 | 533 | "^.+$", |
531 | | - {} |
| 534 | + { |
| 535 | + "classFields": false, |
| 536 | + "ignoreDestructuring": false, |
| 537 | + "onlyDeclarations": false, |
| 538 | + "properties": false |
| 539 | + } |
532 | 540 | ], |
533 | 541 | "docs": { |
534 | 542 | "description": "Require identifiers to match a specified regular expression", |
|
891 | 899 | "type": "suggestion", |
892 | 900 | "defaultOptions": [ |
893 | 901 | { |
894 | | - "allow": [] |
| 902 | + "allow": [], |
| 903 | + "int32Hint": false |
895 | 904 | } |
896 | 905 | ], |
897 | 906 | "docs": { |
|
1113 | 1122 | "no-duplicate-imports": { |
1114 | 1123 | "type": "problem", |
1115 | 1124 | "defaultOptions": [ |
1116 | | - {} |
| 1125 | + { |
| 1126 | + "includeExports": false |
| 1127 | + } |
1117 | 1128 | ], |
1118 | 1129 | "docs": { |
1119 | 1130 | "description": "Disallow duplicate module imports", |
|
1173 | 1184 | "no-empty-pattern": { |
1174 | 1185 | "type": "problem", |
1175 | 1186 | "defaultOptions": [ |
1176 | | - {} |
| 1187 | + { |
| 1188 | + "allowObjectPatternsAsParameters": false |
| 1189 | + } |
1177 | 1190 | ], |
1178 | 1191 | "docs": { |
1179 | 1192 | "description": "Disallow empty destructuring patterns", |
|
1200 | 1213 | "no-eval": { |
1201 | 1214 | "type": "suggestion", |
1202 | 1215 | "defaultOptions": [ |
1203 | | - {} |
| 1216 | + { |
| 1217 | + "allowIndirect": false |
| 1218 | + } |
1204 | 1219 | ], |
1205 | 1220 | "docs": { |
1206 | 1221 | "description": "Disallow the use of `eval()`", |
|
1349 | 1364 | "no-implicit-globals": { |
1350 | 1365 | "type": "suggestion", |
1351 | 1366 | "defaultOptions": [ |
1352 | | - {} |
| 1367 | + { |
| 1368 | + "lexicalBindings": false |
| 1369 | + } |
1353 | 1370 | ], |
1354 | 1371 | "docs": { |
1355 | 1372 | "description": "Disallow declarations in the global scope", |
|
1387 | 1404 | "no-inner-declarations": { |
1388 | 1405 | "type": "problem", |
1389 | 1406 | "defaultOptions": [ |
1390 | | - "functions" |
| 1407 | + "functions", |
| 1408 | + { |
| 1409 | + "blockScopedFunctions": "allow" |
| 1410 | + } |
1391 | 1411 | ], |
1392 | 1412 | "docs": { |
1393 | 1413 | "description": "Disallow variable or `function` declarations in nested blocks", |
|
1549 | 1569 | "no-multi-assign": { |
1550 | 1570 | "type": "suggestion", |
1551 | 1571 | "defaultOptions": [ |
1552 | | - {} |
| 1572 | + { |
| 1573 | + "ignoreNonDeclaration": false |
| 1574 | + } |
1553 | 1575 | ], |
1554 | 1576 | "docs": { |
1555 | 1577 | "description": "Disallow use of chained assignment expressions", |
|
1756 | 1778 | "no-plusplus": { |
1757 | 1779 | "type": "suggestion", |
1758 | 1780 | "defaultOptions": [ |
1759 | | - {} |
| 1781 | + { |
| 1782 | + "allowForLoopAfterthoughts": false |
| 1783 | + } |
1760 | 1784 | ], |
1761 | 1785 | "docs": { |
1762 | 1786 | "description": "Disallow the unary operators `++` and `--`", |
|
1787 | 1811 | "no-promise-executor-return": { |
1788 | 1812 | "type": "problem", |
1789 | 1813 | "defaultOptions": [ |
1790 | | - {} |
| 1814 | + { |
| 1815 | + "allowVoid": false |
| 1816 | + } |
1791 | 1817 | ], |
1792 | 1818 | "docs": { |
1793 | 1819 | "description": "Disallow returning values from Promise executor functions", |
|
1963 | 1989 | "defaultOptions": [ |
1964 | 1990 | { |
1965 | 1991 | "allow": [], |
1966 | | - "hoist": "functions" |
| 1992 | + "builtinGlobals": false, |
| 1993 | + "hoist": "functions", |
| 1994 | + "ignoreOnInitialization": false |
1967 | 1995 | } |
1968 | 1996 | ], |
1969 | 1997 | "docs": { |
|
2067 | 2095 | "no-undef": { |
2068 | 2096 | "type": "problem", |
2069 | 2097 | "defaultOptions": [ |
2070 | | - {} |
| 2098 | + { |
| 2099 | + "typeof": false |
| 2100 | + } |
2071 | 2101 | ], |
2072 | 2102 | "docs": { |
2073 | 2103 | "description": "Disallow the use of undeclared variables unless mentioned in `/*global */` comments", |
|
2103 | 2133 | "allowFunctionParams": true, |
2104 | 2134 | "allowInArrayDestructuring": true, |
2105 | 2135 | "allowInObjectDestructuring": true, |
| 2136 | + "enforceInClassFields": false, |
2106 | 2137 | "enforceInMethodNames": false |
2107 | 2138 | } |
2108 | 2139 | ], |
|
2174 | 2205 | "no-unsafe-negation": { |
2175 | 2206 | "type": "problem", |
2176 | 2207 | "defaultOptions": [ |
2177 | | - {} |
| 2208 | + { |
| 2209 | + "enforceForOrderingRelations": false |
| 2210 | + } |
2178 | 2211 | ], |
2179 | 2212 | "docs": { |
2180 | 2213 | "description": "Disallow negating the left operand of relational operators", |
|
2187 | 2220 | "no-unsafe-optional-chaining": { |
2188 | 2221 | "type": "problem", |
2189 | 2222 | "defaultOptions": [ |
2190 | | - {} |
| 2223 | + { |
| 2224 | + "disallowArithmeticOperators": false |
| 2225 | + } |
2191 | 2226 | ], |
2192 | 2227 | "docs": { |
2193 | 2228 | "description": "Disallow use of optional chaining in contexts where the `undefined` value is not allowed", |
|
2248 | 2283 | { |
2249 | 2284 | "classes": true, |
2250 | 2285 | "functions": true, |
2251 | | - "variables": true |
| 2286 | + "variables": true, |
| 2287 | + "allowNamedExports": false |
2252 | 2288 | } |
2253 | 2289 | ] |
2254 | 2290 | }, |
|
2327 | 2363 | "no-useless-rename": { |
2328 | 2364 | "type": "suggestion", |
2329 | 2365 | "defaultOptions": [ |
2330 | | - {} |
| 2366 | + { |
| 2367 | + "ignoreDestructuring": false, |
| 2368 | + "ignoreImport": false, |
| 2369 | + "ignoreExport": false |
| 2370 | + } |
2331 | 2371 | ], |
2332 | 2372 | "docs": { |
2333 | 2373 | "description": "Disallow renaming import, export, and destructured assignments to the same name", |
|
2357 | 2397 | "no-void": { |
2358 | 2398 | "type": "suggestion", |
2359 | 2399 | "defaultOptions": [ |
2360 | | - {} |
| 2400 | + { |
| 2401 | + "allowAsStatement": false |
| 2402 | + } |
2361 | 2403 | ], |
2362 | 2404 | "docs": { |
2363 | 2405 | "description": "Disallow `void` operators", |
|
2539 | 2581 | "type": "suggestion", |
2540 | 2582 | "defaultOptions": [ |
2541 | 2583 | { |
2542 | | - "destructuring": "any" |
| 2584 | + "destructuring": "any", |
| 2585 | + "ignoreReadBeforeAssign": false |
2543 | 2586 | } |
2544 | 2587 | ], |
2545 | 2588 | "docs": { |
|
2606 | 2649 | "prefer-promise-reject-errors": { |
2607 | 2650 | "type": "suggestion", |
2608 | 2651 | "defaultOptions": [ |
2609 | | - {} |
| 2652 | + { |
| 2653 | + "allowEmptyReject": false |
| 2654 | + } |
2610 | 2655 | ], |
2611 | 2656 | "docs": { |
2612 | 2657 | "description": "Require using Error objects as Promise rejection reasons", |
|
2628 | 2673 | "prefer-regex-literals": { |
2629 | 2674 | "type": "suggestion", |
2630 | 2675 | "defaultOptions": [ |
2631 | | - {} |
| 2676 | + { |
| 2677 | + "disallowRedundantWrapping": false |
| 2678 | + } |
2632 | 2679 | ], |
2633 | 2680 | "docs": { |
2634 | 2681 | "description": "Disallow use of the `RegExp` constructor in favor of regular expression literals", |
|
2700 | 2747 | "require-atomic-updates": { |
2701 | 2748 | "type": "problem", |
2702 | 2749 | "defaultOptions": [ |
2703 | | - {} |
| 2750 | + { |
| 2751 | + "allowProperties": false |
| 2752 | + } |
2704 | 2753 | ], |
2705 | 2754 | "docs": { |
2706 | 2755 | "description": "Disallow assignments that can lead to race conditions due to usage of `await` or `yield`", |
|
2809 | 2858 | { |
2810 | 2859 | "allowLineSeparatedGroups": false, |
2811 | 2860 | "caseSensitive": true, |
| 2861 | + "ignoreComputedKeys": false, |
2812 | 2862 | "minKeys": 2, |
2813 | 2863 | "natural": false |
2814 | 2864 | } |
|
2822 | 2872 | "sort-vars": { |
2823 | 2873 | "type": "suggestion", |
2824 | 2874 | "defaultOptions": [ |
2825 | | - {} |
| 2875 | + { |
| 2876 | + "ignoreCase": false |
| 2877 | + } |
2826 | 2878 | ], |
2827 | 2879 | "docs": { |
2828 | 2880 | "description": "Require variables within the same declaration block to be sorted", |
|
2981 | 3033 | "valid-typeof": { |
2982 | 3034 | "type": "problem", |
2983 | 3035 | "defaultOptions": [ |
2984 | | - {} |
| 3036 | + { |
| 3037 | + "requireStringLiterals": false |
| 3038 | + } |
2985 | 3039 | ], |
2986 | 3040 | "docs": { |
2987 | 3041 | "description": "Enforce comparing `typeof` expressions against valid strings", |
|
0 commit comments