@maz-ui/eslint-config 4.0.0-beta.0 → 4.0.0-beta.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/dist/index.d.mts CHANGED
@@ -25,7 +25,7 @@ interface MazESLintOptions extends OptionsConfig {
25
25
  env?: 'development' | 'production';
26
26
  /**
27
27
  * Files to ignore
28
- * @default ['**\/*.md', 'dist/**', 'node_modules/**']
28
+ * @default ['dist/**', 'node_modules/**']
29
29
  */
30
30
  ignores?: string[];
31
31
  /**
package/dist/index.d.ts CHANGED
@@ -25,7 +25,7 @@ interface MazESLintOptions extends OptionsConfig {
25
25
  env?: 'development' | 'production';
26
26
  /**
27
27
  * Files to ignore
28
- * @default ['**\/*.md', 'dist/**', 'node_modules/**']
28
+ * @default ['dist/**', 'node_modules/**']
29
29
  */
30
30
  ignores?: string[];
31
31
  /**
package/dist/index.mjs CHANGED
@@ -22,7 +22,11 @@ function baseRules(isProduction) {
22
22
  // Allow reasonable complexity
23
23
  "complexity": ["error", { max: 20 }],
24
24
  "max-depth": ["error", { max: 4 }],
25
- "max-nested-callbacks": ["error", { max: 3 }]
25
+ "max-nested-callbacks": ["error", { max: 3 }],
26
+ // Unicorn
27
+ "unicorn/prefer-global-this": "error",
28
+ // Test
29
+ "test/prefer-lowercase-title": "off"
26
30
  };
27
31
  }
28
32
 
@@ -80,6 +84,7 @@ const defaultOptions = {
80
84
  typescript: true,
81
85
  sonarjs: true,
82
86
  tailwindcss: false,
87
+ unicorn: true,
83
88
  ignores: ["dist/**", "node_modules/**"],
84
89
  rules: {}
85
90
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maz-ui/eslint-config",
3
3
  "type": "module",
4
- "version": "4.0.0-beta.0",
4
+ "version": "4.0.0-beta.11",
5
5
  "description": "ESLint configuration for JavaScript/TypeScript projects",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",
@@ -77,9 +77,9 @@
77
77
  "unbuild": "^3.5.0"
78
78
  },
79
79
  "lint-staged": {
80
- "*.{js,jsx,ts,tsx,mjs,mts,cjs,md}": [
80
+ "*.{js,jsx,ts,tsx,mjs,mts,cjs,md,yml,json}": [
81
81
  "eslint --fix"
82
82
  ]
83
83
  },
84
- "gitHead": "9ef7beb4feeee0b0cb44e7df8af7115d5d5ef334"
84
+ "gitHead": "604f754078f4e50e3db39793c28709e1dc1020c7"
85
85
  }