@shayanthenerd/eslint-config 0.29.0 → 0.29.1

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.
@@ -132,11 +132,9 @@ const defaultOptions = {
132
132
  unicorn: {
133
133
  functionStyle: {
134
134
  callbacks: "arrow-function",
135
- default: "declaration",
136
135
  defaultExport: "declaration",
137
136
  namedExports: "declaration",
138
137
  namedFunctions: "declaration",
139
- objectProperties: "method",
140
138
  reassignedVariables: "arrow-function",
141
139
  typedVariables: "arrow-function"
142
140
  },
@@ -393,16 +393,18 @@ interface Options {
393
393
  */
394
394
  unicorn?: boolean | ConfigWithOverrides<PluginRules<'unicorn'>> & {
395
395
  /**
396
- * Enforce a consistent style across different function types.
396
+ * Enforce a consistent style for different types of functions.
397
+ *
398
+ * Object properties and functions that don't match a specified role are ignored.
399
+ *
400
+ * New entries are merged with the defaults and take precedence over them.
397
401
  *
398
402
  * @default
399
403
  * {
400
404
  * callbacks: 'arrow-function',
401
- * default: 'declaration',
402
405
  * defaultExport: 'declaration',
403
406
  * namedExports: 'declaration',
404
407
  * namedFunctions: 'declaration',
405
- * objectProperties: 'method',
406
408
  * reassignedVariables: 'arrow-function',
407
409
  * typedVariables: 'arrow-function',
408
410
  * }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shayanthenerd/eslint-config",
3
- "version": "0.29.0",
3
+ "version": "0.29.1",
4
4
  "description": "A modern, flexible ESLint configuration for enforcing best practices and maintaining a consistent coding style",
5
5
  "keywords": [
6
6
  "eslint",
@@ -65,7 +65,7 @@
65
65
  "eslint-plugin-astro": "3.1.0",
66
66
  "eslint-plugin-baseline-js": "0.7.0",
67
67
  "eslint-plugin-better-tailwindcss": "4.7.0",
68
- "eslint-plugin-cypress": "6.4.3",
68
+ "eslint-plugin-cypress": "6.4.4",
69
69
  "eslint-plugin-import-x": "4.17.1",
70
70
  "eslint-plugin-jsx-a11y": "6.10.2",
71
71
  "eslint-plugin-n": "18.2.2",