@tucchi-/eslint-config 1.2.0 → 1.3.0

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.
Files changed (2) hide show
  1. package/index.js +5 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -29,6 +29,11 @@ export default function modernConfig(options = {}) {
29
29
  // TypeScript
30
30
  "@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
31
31
  "@typescript-eslint/consistent-type-definitions": ["error", "type"], // type > interface
32
+ "@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "never" }], // no type assertions
33
+
34
+ // Variable declarations
35
+ "prefer-const": "error", // const > let
36
+ "no-var": "error", // no var
32
37
 
33
38
  // Function style
34
39
  "func-style": ["error", "expression"], // arrow function > function
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tucchi-/eslint-config",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Modern ESLint config with TypeScript strict, unicorn, and complexity rules",
5
5
  "author": "tucchi-",
6
6
  "license": "MIT",