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 +8 -0
- package/README.md +5 -4
- package/emptyjsxfile.jsx +0 -0
- package/index.js +1 -2
- package/package.json +1 -1
- package/rules/stylistic.mjs +3 -1
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
|
|
18
|
+
import { files, getConfig } from 'eslint-config-vylda-vanilla-react';
|
|
19
19
|
|
|
20
20
|
const eslintConfig = [
|
|
21
|
-
...
|
|
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
|
|
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
|
-
...
|
|
197
|
+
...basicConfig,
|
|
197
198
|
{
|
|
198
199
|
files,
|
|
199
200
|
name: 'my/plugin',
|
package/emptyjsxfile.jsx
ADDED
|
File without changes
|
package/index.js
CHANGED
|
@@ -59,8 +59,7 @@ const reactConfigs = [
|
|
|
59
59
|
];
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* returns eslint config for
|
|
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