eslint-plugin-nima 0.0.3 → 0.0.4
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/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,6 @@ declare const rules: {
|
|
|
38
38
|
noConsoleWarn?: boolean;
|
|
39
39
|
}[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
40
40
|
};
|
|
41
|
-
export type RuleKey = keyof typeof rules;
|
|
42
41
|
interface Plugin extends Omit<ESLint.Plugin, "rules"> {
|
|
43
42
|
configs: {
|
|
44
43
|
"flat/recommended": Linter.Config;
|
|
@@ -46,6 +45,7 @@ interface Plugin extends Omit<ESLint.Plugin, "rules"> {
|
|
|
46
45
|
};
|
|
47
46
|
rules: Record<RuleKey, RuleModule<any, any, any>>;
|
|
48
47
|
}
|
|
48
|
+
type RuleKey = keyof typeof rules;
|
|
49
49
|
declare const plugin: {
|
|
50
50
|
configs: Plugin["configs"];
|
|
51
51
|
meta: {
|
|
@@ -90,4 +90,4 @@ declare const plugin: {
|
|
|
90
90
|
}[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
|
-
export
|
|
93
|
+
export = plugin;
|
package/dist/index.js
CHANGED
|
@@ -32,8 +32,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const recommended_js_1 = require("./configs/recommended.js");
|
|
37
35
|
const BooleanNamingConvention = __importStar(require("./rules/boolean-naming-convention.js"));
|
|
38
36
|
const NoHandlerSuffix = __importStar(require("./rules/no-handler-suffix.js"));
|
|
39
37
|
const NoObjectsInDeps = __importStar(require("./rules/no-objects-in-deps.js"));
|
|
@@ -61,17 +59,22 @@ const plugin = {
|
|
|
61
59
|
},
|
|
62
60
|
rules,
|
|
63
61
|
};
|
|
62
|
+
const recommended = {
|
|
63
|
+
"dragonswap/no-handler-suffix": "error",
|
|
64
|
+
"dragonswap/prefer-react-fc": "warn",
|
|
65
|
+
"dragonswap/restrict-console-methods": "error",
|
|
66
|
+
};
|
|
64
67
|
Object.assign(plugin.configs, {
|
|
65
68
|
"flat/recommended": {
|
|
66
69
|
plugins: {
|
|
67
70
|
nima: plugin,
|
|
68
71
|
},
|
|
69
|
-
rules:
|
|
72
|
+
rules: recommended,
|
|
70
73
|
},
|
|
71
74
|
recommended: {
|
|
72
75
|
plugins: ["nima"],
|
|
73
|
-
rules:
|
|
76
|
+
rules: recommended,
|
|
74
77
|
},
|
|
75
78
|
});
|
|
76
|
-
exports
|
|
79
|
+
module.exports = plugin;
|
|
77
80
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,8FAAgF;AAChF,8EAAgE;AAChE,+EAAiE;AACjE,qFAAuE;AACvE,4FAA8E;AAC9E,wFAA0E;AAC1E,0EAA4D;AAC5D,yFAA2E;AAC3E,4FAA8E;AAE9E,MAAM,KAAK,GAAG;IACZ,CAAC,uBAAuB,CAAC,IAAI,CAAC,EAAE,uBAAuB,CAAC,IAAI;IAC5D,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,eAAe,CAAC,IAAI;IAC5C,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,eAAe,CAAC,IAAI;IAC5C,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC,IAAI;IAClD,CAAC,sBAAsB,CAAC,IAAI,CAAC,EAAE,sBAAsB,CAAC,IAAI;IAC1D,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,oBAAoB,CAAC,IAAI;IACtD,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC,IAAI;IACxC,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,oBAAoB,CAAC,IAAI;IACtD,CAAC,sBAAsB,CAAC,IAAI,CAAC,EAAE,sBAAsB,CAAC,IAAI;CAC3D,CAAC;AAYF,MAAM,MAAM,GAAG;IACb,OAAO,EAAE,EAAuB;IAEhC,IAAI,EAAE;QACJ,IAAI,EAAE,oBAAoB;KAC3B;IAED,KAAK;CACN,CAAC;AAEF,MAAM,WAAW,GAEb;IACF,8BAA8B,EAAE,OAAO;IACvC,4BAA4B,EAAE,MAAM;IACpC,qCAAqC,EAAE,OAAO;CAC/C,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE;IAC5B,kBAAkB,EAAE;QAClB,OAAO,EAAE;YACP,IAAI,EAAE,MAAM;SACb;QACD,KAAK,EAAE,WAAW;KACnB;IACD,WAAW,EAAE;QACX,OAAO,EAAE,CAAC,MAAM,CAAC;QACjB,KAAK,EAAE,WAAW;KACnB;CACF,CAAC,CAAC;AAEH,iBAAS,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-nima",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "ESLint plugin for NIMA Labs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"repository": "NIMA-Enterprises/eslint-plugin",
|
|
12
12
|
"author": "NIMA",
|
|
13
|
-
"main": "
|
|
13
|
+
"main": "dist/index.js",
|
|
14
14
|
"files": [
|
|
15
15
|
"/dist",
|
|
16
16
|
"README.md"
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.recommended = void 0;
|
|
4
|
-
exports.recommended = {
|
|
5
|
-
"dragonswap/no-handler-suffix": "error",
|
|
6
|
-
"dragonswap/prefer-react-fc": "warn",
|
|
7
|
-
"dragonswap/restrict-console-methods": "error",
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=recommended.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recommended.js","sourceRoot":"","sources":["../../src/configs/recommended.ts"],"names":[],"mappings":";;;AAIa,QAAA,WAAW,GAEpB;IACF,8BAA8B,EAAE,OAAO;IACvC,4BAA4B,EAAE,MAAM;IACpC,qCAAqC,EAAE,OAAO;CAC/C,CAAC"}
|