@agilebot/eslint-plugin 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +10 -4
- package/package.json +3 -2
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license @agilebot/eslint-plugin v0.4.
|
2
|
+
* @license @agilebot/eslint-plugin v0.4.3
|
3
3
|
*
|
4
4
|
* Copyright (c) Agilebot, Inc. and its affiliates.
|
5
5
|
*
|
@@ -32,8 +32,8 @@ function _interopNamespaceDefault(e) {
|
|
32
32
|
var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
|
33
33
|
var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
|
34
34
|
|
35
|
-
const rule = require('eslint-plugin-deprecation/dist/rules/deprecation')["default"];
|
36
|
-
|
35
|
+
const rule$1 = require('eslint-plugin-deprecation/dist/rules/deprecation')["default"];
|
36
|
+
const compatRule$1 = eslintUtils.fixupRule(rule$1);
|
37
37
|
|
38
38
|
var enforceMuiIconAlias = eslintUtils.createESLintRule({
|
39
39
|
meta: {
|
@@ -2132,6 +2132,11 @@ var reactPreferSxProp = eslintUtils.createESLintRule({
|
|
2132
2132
|
}
|
2133
2133
|
});
|
2134
2134
|
|
2135
|
+
const pluginReactHooks = require('eslint-plugin-react-hooks');
|
2136
|
+
const rule = pluginReactHooks.rules['rules-of-hooks'];
|
2137
|
+
const compatRule = eslintUtils.fixupRule(rule);
|
2138
|
+
compatRule.meta.docs.recommended = false;
|
2139
|
+
|
2135
2140
|
function getBasicIdentifier(node) {
|
2136
2141
|
if (node.type === 'Identifier') {
|
2137
2142
|
return node.name;
|
@@ -2791,7 +2796,7 @@ var varNaming = eslintUtils.createESLintRule({
|
|
2791
2796
|
|
2792
2797
|
var ruleFiles = /*#__PURE__*/Object.freeze({
|
2793
2798
|
__proto__: null,
|
2794
|
-
rules_deprecation:
|
2799
|
+
rules_deprecation: compatRule$1,
|
2795
2800
|
rules_enforce_mui_icon_alias: enforceMuiIconAlias,
|
2796
2801
|
rules_import_monorepo: importMonorepo,
|
2797
2802
|
rules_intl_id_missing: intlIdMissing,
|
@@ -2807,6 +2812,7 @@ var ruleFiles = /*#__PURE__*/Object.freeze({
|
|
2807
2812
|
rules_react_hook_use_ref: reactHookUseRef,
|
2808
2813
|
rules_react_prefer_named_property_access: reactPreferNamedPropertyAccess,
|
2809
2814
|
rules_react_prefer_sx_prop: reactPreferSxProp,
|
2815
|
+
rules_react_rules_of_hooks: compatRule,
|
2810
2816
|
rules_tss_class_naming: tssClassNaming,
|
2811
2817
|
rules_tss_no_color_name: tssNoColorName,
|
2812
2818
|
rules_tss_no_color_value: tssNoColorValue,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@agilebot/eslint-plugin",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.3",
|
4
4
|
"description": "Agilebot's ESLint plugin",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -20,7 +20,8 @@
|
|
20
20
|
"dependencies": {
|
21
21
|
"eslint-plugin-deprecation": "^3.0.0",
|
22
22
|
"eslint-plugin-react": "^7.35.0",
|
23
|
-
"
|
23
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
24
|
+
"@agilebot/eslint-utils": "0.4.3"
|
24
25
|
},
|
25
26
|
"peerDependencies": {
|
26
27
|
"eslint": "^7.0.0 || ^8.0.0 || ^9.0.0"
|