zeno-config 2.2.0 → 3.0.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.
package/README.md CHANGED
@@ -70,7 +70,7 @@ export default defineZenoConfig(
70
70
  ts: true,
71
71
 
72
72
  // Additional directories to ignore (added to defaults: node_modules, dist, build, coverage)
73
- ignoreDirs: ['out', '.next'],
73
+ ignores: ['out', '.next'],
74
74
 
75
75
  // If using .js extensions for React files, specify React directories
76
76
  reactDirs: ['src/client', 'src/components'],
@@ -199,7 +199,7 @@ import {
199
199
  | `react` | `boolean` | `false` | Enable React-specific rules |
200
200
  | `ts` | `boolean` | `false` | Enable TypeScript-specific rules |
201
201
  | `performanceMode` | `boolean` | `false` | Disables expensive rules for better performance |
202
- | `ignoreDirs` | `string[]` | `[]` | Additional directories to ignore (added to defaults: node_modules, dist, build, coverage) |
202
+ | `ignores` | `string[]` | `[]` | Additional directories to ignore (added to defaults: node_modules, dist, build, coverage) |
203
203
  | `reactDirs` | `string[]` | `[]` | Directories containing React files (for projects using .js for both React and Node) |
204
204
  | `nodeIgnoreDirs` | `string[]` | `[]` | Directories to ignore for Node-specific rules (defaults to `reactDirs` if not set) |
205
205
  | `ignoreExports` | `string[]` | `[]` | Export patterns to ignore for import/no-unresolved rule |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zeno-config",
3
- "version": "2.2.0",
3
+ "version": "3.0.0",
4
4
  "description": "Preconfigured and opinionated ESLint, Prettier, and TypeScript setup",
5
5
  "author": "Rick Brenn <brenn.rick@gmail.com>",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@ interface DefineZenoConfigOptions {
38
38
  /** Disables expensive rules for performance */
39
39
  performanceMode?: boolean;
40
40
  /** Additional directories to ignore (added to defaults: dist, build) */
41
- ignoreDirs?: string[];
41
+ ignores?: string[];
42
42
  /** Directories containing React files (for projects using .js for both React and Node) */
43
43
  reactDirs?: string[];
44
44
  /** Directories to ignore for Node-specific rules only */
@@ -308,7 +308,7 @@ const internals = {
308
308
  * @param {boolean} [arg1.react=false] - Enable React-specific rules.
309
309
  * @param {boolean} [arg1.ts=true] - Enable TypeScript-specific rules.
310
310
  * @param {boolean} [arg1.performanceMode=false] - Disables expensive rules for performance.
311
- * @param {string[]} [arg1.ignoreDirs=[]] - Additional directories to ignore (added to defaults: dist, build).
311
+ * @param {string[]} [arg1.ignores=[]] - Additional directories to ignore (added to defaults: dist, build).
312
312
  * @param {string[]} [arg1.reactDirs=[]] - Directories containing React files (for projects using .js for both React and Node).
313
313
  * @param {string[]} [arg1.nodeIgnoreDirs=[]] - Directories to ignore for Node-specific rules only.
314
314
  * @param {string[]} [arg1.ignoreExports=[]] - Export patterns to ignore for import rules.
@@ -337,7 +337,7 @@ const defineZenoConfig = (arg1, arg2) => {
337
337
  performanceMode: false,
338
338
 
339
339
  // additional directories to ignore (added to defaults: dist, build)
340
- ignoreDirs: [],
340
+ ignores: [],
341
341
 
342
342
  // if a project uses .js file extension for both react and node files this will help separate the rules for each
343
343
  reactDirs: [],
@@ -358,8 +358,8 @@ const defineZenoConfig = (arg1, arg2) => {
358
358
  }
359
359
 
360
360
  // Ensure array options are arrays
361
- if (!Array.isArray(options.ignoreDirs)) {
362
- options.ignoreDirs = [];
361
+ if (!Array.isArray(options.ignores)) {
362
+ options.ignores = [];
363
363
  }
364
364
  if (!Array.isArray(options.reactDirs)) {
365
365
  options.reactDirs = [];
@@ -401,7 +401,7 @@ const defineZenoConfig = (arg1, arg2) => {
401
401
  : [];
402
402
 
403
403
  return defineConfig([
404
- { ignores: [...defaultIgnoreDirs, ...options.ignoreDirs] },
404
+ { ignores: [...defaultIgnoreDirs, ...options.ignores] },
405
405
  ...configs.getBase({
406
406
  ignoreExports: options.ignoreExports,
407
407
  additionalDevDependencies: options.additionalDevDependencies,
@@ -386,7 +386,7 @@ const getUnicornPluginRules = () => {
386
386
  'unicorn/prefer-string-trim-start-end': 'warn',
387
387
 
388
388
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-structured-clone.md
389
- 'unicorn/prefer-structured-clone': 'error',
389
+ 'unicorn/prefer-structured-clone': 'off',
390
390
 
391
391
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-switch.md
392
392
  'unicorn/prefer-switch': 'off',