neatlint 1.1.6 → 1.1.7
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 +7 -9
- package/dist/defaults/NeatlintOptions.default.js +17 -5
- package/dist/defaults/NeatlintOptions.default.mjs +17 -5
- package/dist/main.js +17 -5
- package/dist/main.mjs +17 -5
- package/dist/utils/Neatlint.util.js +17 -5
- package/dist/utils/Neatlint.util.mjs +17 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -47,15 +47,13 @@ Strict ESLint presets for modern TypeScript projects.
|
|
|
47
47
|
|
|
48
48
|
## Features
|
|
49
49
|
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
- Requires
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
- Use of `var` is prohibited and it warns against using `const` and `let` when necessary
|
|
58
|
-
- ... and more!
|
|
50
|
+
- Enforces type safety
|
|
51
|
+
- Encourages modern syntax
|
|
52
|
+
- Prohibits potentially unsafe patterns
|
|
53
|
+
- Requires explicit readonly and accessibility modifiers in classes
|
|
54
|
+
- Disallows interfaces, using only types
|
|
55
|
+
- Bans `var` and warns about proper use of `const` and `let`
|
|
56
|
+
- ...and much more!
|
|
59
57
|
|
|
60
58
|
## Installation
|
|
61
59
|
|
|
@@ -44,8 +44,24 @@ var NeatlintOptionsDefault = {
|
|
|
44
44
|
plugins: {},
|
|
45
45
|
rules: {
|
|
46
46
|
...import_js.default.configs.recommended.rules,
|
|
47
|
+
...Object.assign(
|
|
48
|
+
{},
|
|
49
|
+
...import_typescript_eslint.default.configs.strictTypeChecked.map(
|
|
50
|
+
(item) => Object.fromEntries(
|
|
51
|
+
Object.entries(item.rules ?? {}).filter(([key]) => !key.startsWith("@typescript-eslint")).map(([key]) => [key, "error"])
|
|
52
|
+
)
|
|
53
|
+
)
|
|
54
|
+
),
|
|
55
|
+
...Object.assign(
|
|
56
|
+
{},
|
|
57
|
+
...import_typescript_eslint.default.configs.stylisticTypeChecked.map(
|
|
58
|
+
(item) => Object.fromEntries(
|
|
59
|
+
Object.entries(item.rules ?? {}).filter(([key]) => !key.startsWith("@typescript-eslint")).map(([key]) => [key, "error"])
|
|
60
|
+
)
|
|
61
|
+
)
|
|
62
|
+
),
|
|
63
|
+
...import_typescript_eslint.default.configs.eslintRecommended.rules,
|
|
47
64
|
"no-undef": "off",
|
|
48
|
-
"arrow-body-style": "error",
|
|
49
65
|
"func-style": ["error", "expression", { allowArrowFunctions: true }],
|
|
50
66
|
"no-duplicate-imports": "error",
|
|
51
67
|
"no-eval": "error",
|
|
@@ -53,15 +69,11 @@ var NeatlintOptionsDefault = {
|
|
|
53
69
|
"no-useless-call": "error",
|
|
54
70
|
"no-useless-computed-key": "error",
|
|
55
71
|
"no-useless-concat": "error",
|
|
56
|
-
"no-useless-constructor": "error",
|
|
57
72
|
"no-useless-rename": "error",
|
|
58
73
|
"no-useless-return": "error",
|
|
59
|
-
"no-var": "error",
|
|
60
74
|
"object-shorthand": "error",
|
|
61
75
|
"prefer-arrow-callback": "error",
|
|
62
|
-
"prefer-const": "error",
|
|
63
76
|
"prefer-template": "error",
|
|
64
|
-
"require-await": "error",
|
|
65
77
|
eqeqeq: "error"
|
|
66
78
|
}
|
|
67
79
|
},
|
|
@@ -10,8 +10,24 @@ var NeatlintOptionsDefault = {
|
|
|
10
10
|
plugins: {},
|
|
11
11
|
rules: {
|
|
12
12
|
...ESLintJS.configs.recommended.rules,
|
|
13
|
+
...Object.assign(
|
|
14
|
+
{},
|
|
15
|
+
...TSESLint.configs.strictTypeChecked.map(
|
|
16
|
+
(item) => Object.fromEntries(
|
|
17
|
+
Object.entries(item.rules ?? {}).filter(([key]) => !key.startsWith("@typescript-eslint")).map(([key]) => [key, "error"])
|
|
18
|
+
)
|
|
19
|
+
)
|
|
20
|
+
),
|
|
21
|
+
...Object.assign(
|
|
22
|
+
{},
|
|
23
|
+
...TSESLint.configs.stylisticTypeChecked.map(
|
|
24
|
+
(item) => Object.fromEntries(
|
|
25
|
+
Object.entries(item.rules ?? {}).filter(([key]) => !key.startsWith("@typescript-eslint")).map(([key]) => [key, "error"])
|
|
26
|
+
)
|
|
27
|
+
)
|
|
28
|
+
),
|
|
29
|
+
...TSESLint.configs.eslintRecommended.rules,
|
|
13
30
|
"no-undef": "off",
|
|
14
|
-
"arrow-body-style": "error",
|
|
15
31
|
"func-style": ["error", "expression", { allowArrowFunctions: true }],
|
|
16
32
|
"no-duplicate-imports": "error",
|
|
17
33
|
"no-eval": "error",
|
|
@@ -19,15 +35,11 @@ var NeatlintOptionsDefault = {
|
|
|
19
35
|
"no-useless-call": "error",
|
|
20
36
|
"no-useless-computed-key": "error",
|
|
21
37
|
"no-useless-concat": "error",
|
|
22
|
-
"no-useless-constructor": "error",
|
|
23
38
|
"no-useless-rename": "error",
|
|
24
39
|
"no-useless-return": "error",
|
|
25
|
-
"no-var": "error",
|
|
26
40
|
"object-shorthand": "error",
|
|
27
41
|
"prefer-arrow-callback": "error",
|
|
28
|
-
"prefer-const": "error",
|
|
29
42
|
"prefer-template": "error",
|
|
30
|
-
"require-await": "error",
|
|
31
43
|
eqeqeq: "error"
|
|
32
44
|
}
|
|
33
45
|
},
|
package/dist/main.js
CHANGED
|
@@ -49,8 +49,24 @@ var NeatlintOptionsDefault = {
|
|
|
49
49
|
plugins: {},
|
|
50
50
|
rules: {
|
|
51
51
|
...import_js.default.configs.recommended.rules,
|
|
52
|
+
...Object.assign(
|
|
53
|
+
{},
|
|
54
|
+
...import_typescript_eslint.default.configs.strictTypeChecked.map(
|
|
55
|
+
(item) => Object.fromEntries(
|
|
56
|
+
Object.entries(item.rules ?? {}).filter(([key]) => !key.startsWith("@typescript-eslint")).map(([key]) => [key, "error"])
|
|
57
|
+
)
|
|
58
|
+
)
|
|
59
|
+
),
|
|
60
|
+
...Object.assign(
|
|
61
|
+
{},
|
|
62
|
+
...import_typescript_eslint.default.configs.stylisticTypeChecked.map(
|
|
63
|
+
(item) => Object.fromEntries(
|
|
64
|
+
Object.entries(item.rules ?? {}).filter(([key]) => !key.startsWith("@typescript-eslint")).map(([key]) => [key, "error"])
|
|
65
|
+
)
|
|
66
|
+
)
|
|
67
|
+
),
|
|
68
|
+
...import_typescript_eslint.default.configs.eslintRecommended.rules,
|
|
52
69
|
"no-undef": "off",
|
|
53
|
-
"arrow-body-style": "error",
|
|
54
70
|
"func-style": ["error", "expression", { allowArrowFunctions: true }],
|
|
55
71
|
"no-duplicate-imports": "error",
|
|
56
72
|
"no-eval": "error",
|
|
@@ -58,15 +74,11 @@ var NeatlintOptionsDefault = {
|
|
|
58
74
|
"no-useless-call": "error",
|
|
59
75
|
"no-useless-computed-key": "error",
|
|
60
76
|
"no-useless-concat": "error",
|
|
61
|
-
"no-useless-constructor": "error",
|
|
62
77
|
"no-useless-rename": "error",
|
|
63
78
|
"no-useless-return": "error",
|
|
64
|
-
"no-var": "error",
|
|
65
79
|
"object-shorthand": "error",
|
|
66
80
|
"prefer-arrow-callback": "error",
|
|
67
|
-
"prefer-const": "error",
|
|
68
81
|
"prefer-template": "error",
|
|
69
|
-
"require-await": "error",
|
|
70
82
|
eqeqeq: "error"
|
|
71
83
|
}
|
|
72
84
|
},
|
package/dist/main.mjs
CHANGED
|
@@ -13,8 +13,24 @@ var NeatlintOptionsDefault = {
|
|
|
13
13
|
plugins: {},
|
|
14
14
|
rules: {
|
|
15
15
|
...ESLintJS.configs.recommended.rules,
|
|
16
|
+
...Object.assign(
|
|
17
|
+
{},
|
|
18
|
+
...TSESLint.configs.strictTypeChecked.map(
|
|
19
|
+
(item) => Object.fromEntries(
|
|
20
|
+
Object.entries(item.rules ?? {}).filter(([key]) => !key.startsWith("@typescript-eslint")).map(([key]) => [key, "error"])
|
|
21
|
+
)
|
|
22
|
+
)
|
|
23
|
+
),
|
|
24
|
+
...Object.assign(
|
|
25
|
+
{},
|
|
26
|
+
...TSESLint.configs.stylisticTypeChecked.map(
|
|
27
|
+
(item) => Object.fromEntries(
|
|
28
|
+
Object.entries(item.rules ?? {}).filter(([key]) => !key.startsWith("@typescript-eslint")).map(([key]) => [key, "error"])
|
|
29
|
+
)
|
|
30
|
+
)
|
|
31
|
+
),
|
|
32
|
+
...TSESLint.configs.eslintRecommended.rules,
|
|
16
33
|
"no-undef": "off",
|
|
17
|
-
"arrow-body-style": "error",
|
|
18
34
|
"func-style": ["error", "expression", { allowArrowFunctions: true }],
|
|
19
35
|
"no-duplicate-imports": "error",
|
|
20
36
|
"no-eval": "error",
|
|
@@ -22,15 +38,11 @@ var NeatlintOptionsDefault = {
|
|
|
22
38
|
"no-useless-call": "error",
|
|
23
39
|
"no-useless-computed-key": "error",
|
|
24
40
|
"no-useless-concat": "error",
|
|
25
|
-
"no-useless-constructor": "error",
|
|
26
41
|
"no-useless-rename": "error",
|
|
27
42
|
"no-useless-return": "error",
|
|
28
|
-
"no-var": "error",
|
|
29
43
|
"object-shorthand": "error",
|
|
30
44
|
"prefer-arrow-callback": "error",
|
|
31
|
-
"prefer-const": "error",
|
|
32
45
|
"prefer-template": "error",
|
|
33
|
-
"require-await": "error",
|
|
34
46
|
eqeqeq: "error"
|
|
35
47
|
}
|
|
36
48
|
},
|
|
@@ -47,8 +47,24 @@ var NeatlintOptionsDefault = {
|
|
|
47
47
|
plugins: {},
|
|
48
48
|
rules: {
|
|
49
49
|
...import_js.default.configs.recommended.rules,
|
|
50
|
+
...Object.assign(
|
|
51
|
+
{},
|
|
52
|
+
...import_typescript_eslint.default.configs.strictTypeChecked.map(
|
|
53
|
+
(item) => Object.fromEntries(
|
|
54
|
+
Object.entries(item.rules ?? {}).filter(([key]) => !key.startsWith("@typescript-eslint")).map(([key]) => [key, "error"])
|
|
55
|
+
)
|
|
56
|
+
)
|
|
57
|
+
),
|
|
58
|
+
...Object.assign(
|
|
59
|
+
{},
|
|
60
|
+
...import_typescript_eslint.default.configs.stylisticTypeChecked.map(
|
|
61
|
+
(item) => Object.fromEntries(
|
|
62
|
+
Object.entries(item.rules ?? {}).filter(([key]) => !key.startsWith("@typescript-eslint")).map(([key]) => [key, "error"])
|
|
63
|
+
)
|
|
64
|
+
)
|
|
65
|
+
),
|
|
66
|
+
...import_typescript_eslint.default.configs.eslintRecommended.rules,
|
|
50
67
|
"no-undef": "off",
|
|
51
|
-
"arrow-body-style": "error",
|
|
52
68
|
"func-style": ["error", "expression", { allowArrowFunctions: true }],
|
|
53
69
|
"no-duplicate-imports": "error",
|
|
54
70
|
"no-eval": "error",
|
|
@@ -56,15 +72,11 @@ var NeatlintOptionsDefault = {
|
|
|
56
72
|
"no-useless-call": "error",
|
|
57
73
|
"no-useless-computed-key": "error",
|
|
58
74
|
"no-useless-concat": "error",
|
|
59
|
-
"no-useless-constructor": "error",
|
|
60
75
|
"no-useless-rename": "error",
|
|
61
76
|
"no-useless-return": "error",
|
|
62
|
-
"no-var": "error",
|
|
63
77
|
"object-shorthand": "error",
|
|
64
78
|
"prefer-arrow-callback": "error",
|
|
65
|
-
"prefer-const": "error",
|
|
66
79
|
"prefer-template": "error",
|
|
67
|
-
"require-await": "error",
|
|
68
80
|
eqeqeq: "error"
|
|
69
81
|
}
|
|
70
82
|
},
|
|
@@ -13,8 +13,24 @@ var NeatlintOptionsDefault = {
|
|
|
13
13
|
plugins: {},
|
|
14
14
|
rules: {
|
|
15
15
|
...ESLintJS.configs.recommended.rules,
|
|
16
|
+
...Object.assign(
|
|
17
|
+
{},
|
|
18
|
+
...TSESLint.configs.strictTypeChecked.map(
|
|
19
|
+
(item) => Object.fromEntries(
|
|
20
|
+
Object.entries(item.rules ?? {}).filter(([key]) => !key.startsWith("@typescript-eslint")).map(([key]) => [key, "error"])
|
|
21
|
+
)
|
|
22
|
+
)
|
|
23
|
+
),
|
|
24
|
+
...Object.assign(
|
|
25
|
+
{},
|
|
26
|
+
...TSESLint.configs.stylisticTypeChecked.map(
|
|
27
|
+
(item) => Object.fromEntries(
|
|
28
|
+
Object.entries(item.rules ?? {}).filter(([key]) => !key.startsWith("@typescript-eslint")).map(([key]) => [key, "error"])
|
|
29
|
+
)
|
|
30
|
+
)
|
|
31
|
+
),
|
|
32
|
+
...TSESLint.configs.eslintRecommended.rules,
|
|
16
33
|
"no-undef": "off",
|
|
17
|
-
"arrow-body-style": "error",
|
|
18
34
|
"func-style": ["error", "expression", { allowArrowFunctions: true }],
|
|
19
35
|
"no-duplicate-imports": "error",
|
|
20
36
|
"no-eval": "error",
|
|
@@ -22,15 +38,11 @@ var NeatlintOptionsDefault = {
|
|
|
22
38
|
"no-useless-call": "error",
|
|
23
39
|
"no-useless-computed-key": "error",
|
|
24
40
|
"no-useless-concat": "error",
|
|
25
|
-
"no-useless-constructor": "error",
|
|
26
41
|
"no-useless-rename": "error",
|
|
27
42
|
"no-useless-return": "error",
|
|
28
|
-
"no-var": "error",
|
|
29
43
|
"object-shorthand": "error",
|
|
30
44
|
"prefer-arrow-callback": "error",
|
|
31
|
-
"prefer-const": "error",
|
|
32
45
|
"prefer-template": "error",
|
|
33
|
-
"require-await": "error",
|
|
34
46
|
eqeqeq: "error"
|
|
35
47
|
}
|
|
36
48
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neatlint",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "Strict ESLint presets for modern TypeScript projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/keift/neatlint",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"lint": "eslint ./"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@eslint/js": "^9.
|
|
18
|
+
"@eslint/js": "^9.36.0",
|
|
19
19
|
"@types/lodash": "^4.17.20",
|
|
20
|
-
"eslint": "^9.
|
|
20
|
+
"eslint": "^9.36.0",
|
|
21
21
|
"jiti": "^2.5.1",
|
|
22
22
|
"lodash": "^4.17.21",
|
|
23
23
|
"typescript": "^5.9.2",
|