neatlint 1.1.9 → 1.1.11

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 CHANGED
@@ -50,8 +50,8 @@ Strict ESLint presets for modern TypeScript projects.
50
50
  - Enforces type safety
51
51
  - Encourages modern syntax
52
52
  - Prohibits potentially unsafe patterns
53
- - Requires explicit readonly and accessibility modifiers in classes
54
53
  - Disallows interfaces, using only types
54
+ - Requires explicit readonly and accessibility modifiers in classes
55
55
  - Bans `var` and warns about proper use of `const` and `let`
56
56
  - ...and much more!
57
57
 
package/dist/main.js CHANGED
@@ -70,7 +70,10 @@ var NeatlintOptionsDefault = {
70
70
  "func-style": ["error", "expression", { allowArrowFunctions: true }],
71
71
  "no-duplicate-imports": "error",
72
72
  "no-eval": "error",
73
- "no-restricted-syntax": ["error", "CallExpression[callee.name='parseFloat']", "CallExpression[callee.property.name='forEach']", "DebuggerStatement", "EmptyStatement", "ForInStatement", "LabeledStatement", "SequenceExpression", "SwitchStatement", "WithStatement"],
73
+ "no-new-func": "error",
74
+ "no-new-wrappers": "error",
75
+ "no-object-constructor": "error",
76
+ "no-restricted-syntax": ["error", "CallExpression[callee.name='String']", "CallExpression[callee.name='Boolean']", "CallExpression[callee.name='parseFloat']", "CallExpression[callee.property.name='forEach']", "DebuggerStatement", "EmptyStatement", "ForInStatement", "LabeledStatement", "SequenceExpression", "SwitchStatement", "WithStatement"],
74
77
  "no-useless-call": "error",
75
78
  "no-useless-computed-key": "error",
76
79
  "no-useless-concat": "error",
@@ -102,8 +105,7 @@ var NeatlintOptionsDefault = {
102
105
  "@typescript-eslint/consistent-type-exports": "error",
103
106
  "@typescript-eslint/consistent-type-imports": "error",
104
107
  "@typescript-eslint/explicit-member-accessibility": "error",
105
- "@typescript-eslint/prefer-readonly": "error",
106
- "@typescript-eslint/strict-boolean-expressions": "error"
108
+ "@typescript-eslint/prefer-readonly": "error"
107
109
  }
108
110
  }
109
111
  };
package/dist/main.mjs CHANGED
@@ -34,7 +34,10 @@ var NeatlintOptionsDefault = {
34
34
  "func-style": ["error", "expression", { allowArrowFunctions: true }],
35
35
  "no-duplicate-imports": "error",
36
36
  "no-eval": "error",
37
- "no-restricted-syntax": ["error", "CallExpression[callee.name='parseFloat']", "CallExpression[callee.property.name='forEach']", "DebuggerStatement", "EmptyStatement", "ForInStatement", "LabeledStatement", "SequenceExpression", "SwitchStatement", "WithStatement"],
37
+ "no-new-func": "error",
38
+ "no-new-wrappers": "error",
39
+ "no-object-constructor": "error",
40
+ "no-restricted-syntax": ["error", "CallExpression[callee.name='String']", "CallExpression[callee.name='Boolean']", "CallExpression[callee.name='parseFloat']", "CallExpression[callee.property.name='forEach']", "DebuggerStatement", "EmptyStatement", "ForInStatement", "LabeledStatement", "SequenceExpression", "SwitchStatement", "WithStatement"],
38
41
  "no-useless-call": "error",
39
42
  "no-useless-computed-key": "error",
40
43
  "no-useless-concat": "error",
@@ -66,8 +69,7 @@ var NeatlintOptionsDefault = {
66
69
  "@typescript-eslint/consistent-type-exports": "error",
67
70
  "@typescript-eslint/consistent-type-imports": "error",
68
71
  "@typescript-eslint/explicit-member-accessibility": "error",
69
- "@typescript-eslint/prefer-readonly": "error",
70
- "@typescript-eslint/strict-boolean-expressions": "error"
72
+ "@typescript-eslint/prefer-readonly": "error"
71
73
  }
72
74
  }
73
75
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neatlint",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "Strict ESLint presets for modern TypeScript projects.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/keift/neatlint",