eslint-plugin-operability 3.0.13 → 3.0.14
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 +14 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-operability",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.14",
|
|
4
4
|
"description": "ESLint plugin for production operability — bans debug code and console logging in production, verbose error messages, and process.exit calls.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -49,8 +49,7 @@
|
|
|
49
49
|
"node": ">=18.0.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"
|
|
53
|
-
"@interlace/eslint-devkit": "^1.6.1"
|
|
52
|
+
"@interlace/eslint-devkit": "^1.8.0"
|
|
54
53
|
},
|
|
55
54
|
"repository": {
|
|
56
55
|
"type": "git",
|
package/src/index.js
CHANGED
|
@@ -1,30 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.configs = exports.plugin = exports.rules = void 0;
|
|
4
|
-
const no_console_log_1 = require("./rules/operability/no-console-log");
|
|
5
|
-
const no_process_exit_1 = require("./rules/operability/no-process-exit");
|
|
6
|
-
const no_debug_code_in_production_1 = require("./rules/operability/no-debug-code-in-production");
|
|
7
|
-
const no_verbose_error_messages_1 = require("./rules/operability/no-verbose-error-messages");
|
|
8
|
-
const require_code_minification_1 = require("./rules/operability/require-code-minification");
|
|
9
|
-
const require_data_minimization_1 = require("./rules/operability/require-data-minimization");
|
|
10
4
|
exports.rules = {
|
|
11
|
-
'no-console-log'
|
|
12
|
-
'no-process-exit'
|
|
13
|
-
'no-debug-code-in-production'
|
|
14
|
-
'no-verbose-error-messages'
|
|
15
|
-
'require-code-minification'
|
|
16
|
-
'require-data-minimization'
|
|
17
|
-
'operability/no-console-log'
|
|
18
|
-
'operability/no-process-exit'
|
|
19
|
-
'operability/no-debug-code-in-production'
|
|
20
|
-
'operability/no-verbose-error-messages'
|
|
21
|
-
'operability/require-code-minification'
|
|
22
|
-
'operability/require-data-minimization'
|
|
5
|
+
get 'no-console-log'() { return require("./rules/operability/no-console-log").noConsoleLog; },
|
|
6
|
+
get 'no-process-exit'() { return require("./rules/operability/no-process-exit").noProcessExit; },
|
|
7
|
+
get 'no-debug-code-in-production'() { return require("./rules/operability/no-debug-code-in-production").noDebugCodeInProduction; },
|
|
8
|
+
get 'no-verbose-error-messages'() { return require("./rules/operability/no-verbose-error-messages").noVerboseErrorMessages; },
|
|
9
|
+
get 'require-code-minification'() { return require("./rules/operability/require-code-minification").requireCodeMinification; },
|
|
10
|
+
get 'require-data-minimization'() { return require("./rules/operability/require-data-minimization").requireDataMinimization; },
|
|
11
|
+
get 'operability/no-console-log'() { return require("./rules/operability/no-console-log").noConsoleLog; },
|
|
12
|
+
get 'operability/no-process-exit'() { return require("./rules/operability/no-process-exit").noProcessExit; },
|
|
13
|
+
get 'operability/no-debug-code-in-production'() { return require("./rules/operability/no-debug-code-in-production").noDebugCodeInProduction; },
|
|
14
|
+
get 'operability/no-verbose-error-messages'() { return require("./rules/operability/no-verbose-error-messages").noVerboseErrorMessages; },
|
|
15
|
+
get 'operability/require-code-minification'() { return require("./rules/operability/require-code-minification").requireCodeMinification; },
|
|
16
|
+
get 'operability/require-data-minimization'() { return require("./rules/operability/require-data-minimization").requireDataMinimization; },
|
|
17
|
+
|
|
23
18
|
};
|
|
24
19
|
exports.plugin = {
|
|
25
20
|
meta: {
|
|
26
21
|
name: 'eslint-plugin-operability',
|
|
27
|
-
version: '3.0.
|
|
22
|
+
version: '3.0.14',
|
|
28
23
|
},
|
|
29
24
|
rules: exports.rules,
|
|
30
25
|
};
|