neatlint 1.1.16 → 1.1.18
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/README.md +3 -3
- package/dist/main.js +3 -2
- package/dist/main.mjs +3 -2
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
[Function]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function
|
|
9
9
|
[Promise]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
|
|
10
10
|
[Void]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Undefined
|
|
11
|
-
[NeatlintOptionsDefault]:
|
|
12
|
-
[ESLintConfig]: https://github.com/eslint/eslint/blob/main/lib/types/index.d.ts#
|
|
13
|
-
[NeatlintOptions]:
|
|
11
|
+
[NeatlintOptionsDefault]: ./src/defaults/NeatlintOptions.default.ts
|
|
12
|
+
[ESLintConfig]: https://github.com/eslint/eslint/blob/main/lib/types/index.d.ts#L1750
|
|
13
|
+
[NeatlintOptions]: ./src/types/NeatlintOptions.type.ts
|
|
14
14
|
|
|
15
15
|
<div align="center">
|
|
16
16
|
<br/>
|
package/dist/main.js
CHANGED
|
@@ -35,7 +35,7 @@ __export(main_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(main_exports);
|
|
36
36
|
|
|
37
37
|
// src/utils/Neatlint.util.ts
|
|
38
|
-
var import_lodash = __toESM(require("lodash"));
|
|
38
|
+
var import_lodash = __toESM(require("lodash.merge"));
|
|
39
39
|
|
|
40
40
|
// src/defaults/NeatlintOptions.default.ts
|
|
41
41
|
var import_typescript_eslint = __toESM(require("typescript-eslint"));
|
|
@@ -68,6 +68,7 @@ var javascript_rules = {
|
|
|
68
68
|
"no-new-func": "error",
|
|
69
69
|
"no-new-wrappers": "error",
|
|
70
70
|
"no-object-constructor": "error",
|
|
71
|
+
"no-restricted-imports": ["error", { patterns: ["node:*"] }],
|
|
71
72
|
"no-restricted-syntax": ["error", "CallExpression[callee.name='String']", "CallExpression[callee.name='Boolean']", "CallExpression[callee.name='parseFloat']", "CallExpression[callee.property.name='forEach']", "CallExpression[callee.property.name='join'][callee.object.callee.property.name='split']", "DebuggerStatement", "EmptyStatement", "ForInStatement", "LabeledStatement", "SequenceExpression", "SwitchStatement", "WithStatement"],
|
|
72
73
|
"no-useless-call": "error",
|
|
73
74
|
"no-useless-computed-key": "error",
|
|
@@ -127,7 +128,7 @@ var NeatlintOptionsDefault = {
|
|
|
127
128
|
|
|
128
129
|
// src/utils/Neatlint.util.ts
|
|
129
130
|
var Neatlint = (options = NeatlintOptionsDefault) => {
|
|
130
|
-
options = import_lodash.default
|
|
131
|
+
options = (0, import_lodash.default)({}, NeatlintOptionsDefault, options);
|
|
131
132
|
return [
|
|
132
133
|
{ ignores: options.ignores },
|
|
133
134
|
{
|
package/dist/main.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/utils/Neatlint.util.ts
|
|
2
|
-
import
|
|
2
|
+
import merge from "lodash.merge";
|
|
3
3
|
|
|
4
4
|
// src/defaults/NeatlintOptions.default.ts
|
|
5
5
|
import TSESLint from "typescript-eslint";
|
|
@@ -32,6 +32,7 @@ var javascript_rules = {
|
|
|
32
32
|
"no-new-func": "error",
|
|
33
33
|
"no-new-wrappers": "error",
|
|
34
34
|
"no-object-constructor": "error",
|
|
35
|
+
"no-restricted-imports": ["error", { patterns: ["node:*"] }],
|
|
35
36
|
"no-restricted-syntax": ["error", "CallExpression[callee.name='String']", "CallExpression[callee.name='Boolean']", "CallExpression[callee.name='parseFloat']", "CallExpression[callee.property.name='forEach']", "CallExpression[callee.property.name='join'][callee.object.callee.property.name='split']", "DebuggerStatement", "EmptyStatement", "ForInStatement", "LabeledStatement", "SequenceExpression", "SwitchStatement", "WithStatement"],
|
|
36
37
|
"no-useless-call": "error",
|
|
37
38
|
"no-useless-computed-key": "error",
|
|
@@ -91,7 +92,7 @@ var NeatlintOptionsDefault = {
|
|
|
91
92
|
|
|
92
93
|
// src/utils/Neatlint.util.ts
|
|
93
94
|
var Neatlint = (options = NeatlintOptionsDefault) => {
|
|
94
|
-
options =
|
|
95
|
+
options = merge({}, NeatlintOptionsDefault, options);
|
|
95
96
|
return [
|
|
96
97
|
{ ignores: options.ignores },
|
|
97
98
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neatlint",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.18",
|
|
4
4
|
"description": "Strict ESLint presets for modern TypeScript projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/keift/neatlint",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"lint": "eslint ./"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@eslint/js": "^9.
|
|
19
|
-
"@types/lodash": "^4.
|
|
20
|
-
"eslint": "^9.
|
|
21
|
-
"jiti": "^2.6.
|
|
22
|
-
"lodash": "^4.
|
|
23
|
-
"typescript": "^5.9.
|
|
24
|
-
"typescript-eslint": "^8.
|
|
18
|
+
"@eslint/js": "^9.37.0",
|
|
19
|
+
"@types/lodash.merge": "^4.6.9",
|
|
20
|
+
"eslint": "^9.37.0",
|
|
21
|
+
"jiti": "^2.6.1",
|
|
22
|
+
"lodash.merge": "^4.6.2",
|
|
23
|
+
"typescript": "^5.9.3",
|
|
24
|
+
"typescript-eslint": "^8.45.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"prettier": "^3.6.2",
|