eslint-config-vylda-vanilla-react 4.0.0 → 4.0.2

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/Changelog.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to this component will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [4.0.2] - 2025-11-01
8
+ ### Updated
9
+ - Readme: basic usage instructions [Vilda Lipold]
10
+
11
+ ## [4.0.1] - 2025-11-01
12
+ ### Fixed
13
+ - @stylistic/jsx-curly-spacing rule configuration [Vilda Lipold]
14
+
7
15
  ## [4.0.0] - 2025-11-01
8
16
  ### Added
9
17
  - Rules (some rules are not officially documented)
package/README.md CHANGED
@@ -15,10 +15,10 @@ create `eslint.config.mjs` file in project root
15
15
 
16
16
  ```javascript
17
17
  // eslint.config.mjs
18
- import config, { files } from 'eslint-config-vylda-vanilla-react';
18
+ import { files, getConfig } from 'eslint-config-vylda-vanilla-react';
19
19
 
20
20
  const eslintConfig = [
21
- ...config,
21
+ ...getConfig(),
22
22
  {
23
23
  files,
24
24
  name: 'my-rules',
@@ -140,6 +140,7 @@ export const defaultImportNoExtraneousDependenciesDevDependencies = [
140
140
  All default values are optional and can be overridden in the `eslint.config.mjs` file.
141
141
 
142
142
  ### Example of ESLint config with custom extensions
143
+
143
144
  ```javascript
144
145
  // eslint.config.mjs
145
146
  import {
@@ -183,7 +184,7 @@ const plugins = {
183
184
  'my/plugin': myPlugin,
184
185
  };
185
186
 
186
- const rjConfig = getConfig({
187
+ const basicConfig = getConfig({
187
188
  files,
188
189
  importExtensions,
189
190
  importExtensionsRuleGranularOption,
@@ -193,7 +194,7 @@ const rjConfig = getConfig({
193
194
  });
194
195
 
195
196
  const config = [
196
- ...rjConfig,
197
+ ...basicConfig,
197
198
  {
198
199
  files,
199
200
  name: 'my/plugin',
File without changes
package/index.js CHANGED
@@ -59,8 +59,7 @@ const reactConfigs = [
59
59
  ];
60
60
 
61
61
  /**
62
- * returns eslint config for typescript
63
- * @param {string} baseDir - base directory for tsconfig.json
62
+ * returns eslint config for vanilla react
64
63
  * @param {object} [options={}] - options
65
64
  * @param {Array.<string>} [options.barrelsFiles=['**\/index.{js,mjs}']] - file patterns for barrel files
66
65
  * @param {Array.<string>} [options.files=['**\/*.{cjs,js,jsx,mjs}']] - file patterns to lint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-vylda-vanilla-react",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Eslint rules for JS React projects",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -39,7 +39,9 @@ const config = [
39
39
  {
40
40
  allowMultiline: true,
41
41
  children: true,
42
- objectLiterals: 'never',
42
+ spacing: {
43
+ objectLiterals: 'never',
44
+ },
43
45
  when: 'never',
44
46
  },
45
47
  ],