eslint-plugin-maintainability 3.0.12 → 3.0.13
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.
- package/package.json +2 -3
- package/src/index.js +26 -37
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-maintainability",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.13",
|
|
4
4
|
"description": "ESLint plugin for maintainable code — limits cognitive complexity, nesting depth, parameter counts, duplicate functions, and unhandled or silent errors.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -63,8 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"
|
|
67
|
-
"@interlace/eslint-devkit": "^1.7.0"
|
|
66
|
+
"@interlace/eslint-devkit": "^1.8.0"
|
|
68
67
|
},
|
|
69
68
|
"repository": {
|
|
70
69
|
"type": "git",
|
package/src/index.js
CHANGED
|
@@ -1,48 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.configs = exports.plugin = exports.rules = void 0;
|
|
4
|
-
const cognitive_complexity_1 = require("./rules/maintainability/cognitive-complexity");
|
|
5
|
-
const nested_complexity_hotspots_1 = require("./rules/maintainability/nested-complexity-hotspots");
|
|
6
|
-
const identical_functions_1 = require("./rules/maintainability/identical-functions");
|
|
7
|
-
const max_parameters_1 = require("./rules/maintainability/max-parameters");
|
|
8
|
-
const no_lonely_if_1 = require("./rules/maintainability/no-lonely-if");
|
|
9
|
-
const no_nested_ternary_1 = require("./rules/maintainability/no-nested-ternary");
|
|
10
|
-
const consistent_function_scoping_1 = require("./rules/maintainability/consistent-function-scoping");
|
|
11
|
-
const no_unreadable_iife_1 = require("./rules/maintainability/no-unreadable-iife");
|
|
12
|
-
const error_message_1 = require("./rules/error-handling/error-message");
|
|
13
|
-
const no_missing_error_context_1 = require("./rules/error-handling/no-missing-error-context");
|
|
14
|
-
const no_silent_errors_1 = require("./rules/error-handling/no-silent-errors");
|
|
15
|
-
const no_unhandled_promise_1 = require("./rules/error-handling/no-unhandled-promise");
|
|
16
4
|
exports.rules = {
|
|
17
|
-
'cognitive-complexity'
|
|
18
|
-
'nested-complexity-hotspots'
|
|
19
|
-
'identical-functions'
|
|
20
|
-
'max-parameters'
|
|
21
|
-
'no-lonely-if'
|
|
22
|
-
'no-nested-ternary'
|
|
23
|
-
'consistent-function-scoping'
|
|
24
|
-
'no-unreadable-iife'
|
|
25
|
-
'error-message'
|
|
26
|
-
'no-missing-error-context'
|
|
27
|
-
'no-silent-errors'
|
|
28
|
-
'no-unhandled-promise'
|
|
29
|
-
'maintainability/cognitive-complexity'
|
|
30
|
-
'maintainability/nested-complexity-hotspots'
|
|
31
|
-
'maintainability/identical-functions'
|
|
32
|
-
'maintainability/max-parameters'
|
|
33
|
-
'maintainability/no-lonely-if'
|
|
34
|
-
'maintainability/no-nested-ternary'
|
|
35
|
-
'maintainability/consistent-function-scoping'
|
|
36
|
-
'maintainability/no-unreadable-iife'
|
|
37
|
-
'maintainability/error-message'
|
|
38
|
-
'maintainability/no-missing-error-context'
|
|
39
|
-
'maintainability/no-silent-errors'
|
|
40
|
-
'maintainability/no-unhandled-promise'
|
|
5
|
+
get 'cognitive-complexity'() { return require("./rules/maintainability/cognitive-complexity").cognitiveComplexity; },
|
|
6
|
+
get 'nested-complexity-hotspots'() { return require("./rules/maintainability/nested-complexity-hotspots").nestedComplexityHotspots; },
|
|
7
|
+
get 'identical-functions'() { return require("./rules/maintainability/identical-functions").identicalFunctions; },
|
|
8
|
+
get 'max-parameters'() { return require("./rules/maintainability/max-parameters").maxParameters; },
|
|
9
|
+
get 'no-lonely-if'() { return require("./rules/maintainability/no-lonely-if").noLonelyIf; },
|
|
10
|
+
get 'no-nested-ternary'() { return require("./rules/maintainability/no-nested-ternary").noNestedTernary; },
|
|
11
|
+
get 'consistent-function-scoping'() { return require("./rules/maintainability/consistent-function-scoping").consistentFunctionScoping; },
|
|
12
|
+
get 'no-unreadable-iife'() { return require("./rules/maintainability/no-unreadable-iife").noUnreadableIife; },
|
|
13
|
+
get 'error-message'() { return require("./rules/error-handling/error-message").errorMessage; },
|
|
14
|
+
get 'no-missing-error-context'() { return require("./rules/error-handling/no-missing-error-context").noMissingErrorContext; },
|
|
15
|
+
get 'no-silent-errors'() { return require("./rules/error-handling/no-silent-errors").noSilentErrors; },
|
|
16
|
+
get 'no-unhandled-promise'() { return require("./rules/error-handling/no-unhandled-promise").noUnhandledPromise; },
|
|
17
|
+
get 'maintainability/cognitive-complexity'() { return require("./rules/maintainability/cognitive-complexity").cognitiveComplexity; },
|
|
18
|
+
get 'maintainability/nested-complexity-hotspots'() { return require("./rules/maintainability/nested-complexity-hotspots").nestedComplexityHotspots; },
|
|
19
|
+
get 'maintainability/identical-functions'() { return require("./rules/maintainability/identical-functions").identicalFunctions; },
|
|
20
|
+
get 'maintainability/max-parameters'() { return require("./rules/maintainability/max-parameters").maxParameters; },
|
|
21
|
+
get 'maintainability/no-lonely-if'() { return require("./rules/maintainability/no-lonely-if").noLonelyIf; },
|
|
22
|
+
get 'maintainability/no-nested-ternary'() { return require("./rules/maintainability/no-nested-ternary").noNestedTernary; },
|
|
23
|
+
get 'maintainability/consistent-function-scoping'() { return require("./rules/maintainability/consistent-function-scoping").consistentFunctionScoping; },
|
|
24
|
+
get 'maintainability/no-unreadable-iife'() { return require("./rules/maintainability/no-unreadable-iife").noUnreadableIife; },
|
|
25
|
+
get 'maintainability/error-message'() { return require("./rules/error-handling/error-message").errorMessage; },
|
|
26
|
+
get 'maintainability/no-missing-error-context'() { return require("./rules/error-handling/no-missing-error-context").noMissingErrorContext; },
|
|
27
|
+
get 'maintainability/no-silent-errors'() { return require("./rules/error-handling/no-silent-errors").noSilentErrors; },
|
|
28
|
+
get 'maintainability/no-unhandled-promise'() { return require("./rules/error-handling/no-unhandled-promise").noUnhandledPromise; },
|
|
29
|
+
|
|
41
30
|
};
|
|
42
31
|
exports.plugin = {
|
|
43
32
|
meta: {
|
|
44
33
|
name: 'eslint-plugin-maintainability',
|
|
45
|
-
version: '3.0.
|
|
34
|
+
version: '3.0.13',
|
|
46
35
|
},
|
|
47
36
|
rules: exports.rules,
|
|
48
37
|
};
|