eslint-config-vylda-vanilla-react 5.1.0 → 5.2.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/Changelog.md +9 -0
- package/index.js +2 -2
- package/package.json +4 -4
- package/rules/index.mjs +1 -2
- package/rules/stylistic.mjs +0 -16
- package/rules/perfectionist.mjs +0 -33
package/Changelog.md
CHANGED
|
@@ -4,6 +4,15 @@ 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
|
+
## [5.2.0] - 2026-01-21
|
|
8
|
+
### Changed
|
|
9
|
+
- Perfectionist only from eslint-config-vylda-vanilla [Vilda Lipold]
|
|
10
|
+
### Removed
|
|
11
|
+
- Rules
|
|
12
|
+
- deprecated @stylistic/jsx-sort-props [Vilda Lipold]
|
|
13
|
+
### Updated
|
|
14
|
+
- Packages [Vilda Lipold]
|
|
15
|
+
|
|
7
16
|
## [5.1.0] - 2026-01-05
|
|
8
17
|
### Changed
|
|
9
18
|
- Rules
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
barrels, barrelsFiles, customs, errors, es6, getImportConfig, ignores, mapFiles, node,
|
|
3
|
-
plus, strict, stylistic, variables,
|
|
3
|
+
perfectionist, plus, strict, stylistic, variables,
|
|
4
4
|
} from 'eslint-config-vylda-vanilla';
|
|
5
5
|
import config, {
|
|
6
6
|
files, plugins, reactPlugins, refreshFiles,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
defaultImportResolverNodeExtensions,
|
|
15
15
|
} from './rules/imports.mjs';
|
|
16
16
|
import {
|
|
17
|
-
a11y, hooks,
|
|
17
|
+
a11y, hooks, react, reactStylistic, refresh,
|
|
18
18
|
} from './rules/index.mjs';
|
|
19
19
|
|
|
20
20
|
const dineddd = defaultImportNoExtraneousDependenciesDevDependencies;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-vylda-vanilla-react",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "Eslint rules for JS React projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"eslint": "^9.39.2",
|
|
32
|
-
"eslint-config-vylda-vanilla": "^5.
|
|
32
|
+
"eslint-config-vylda-vanilla": "^5.1.0",
|
|
33
33
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
34
34
|
"eslint-plugin-react": "^7.37.5",
|
|
35
35
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
36
36
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
37
|
-
"globals": "^
|
|
37
|
+
"globals": "^17.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@eslint/config-inspector": "^1.4.2",
|
|
41
|
-
"baseline-browser-mapping": "^2.9.
|
|
41
|
+
"baseline-browser-mapping": "^2.9.17",
|
|
42
42
|
"husky": "^9.1.7"
|
|
43
43
|
}
|
|
44
44
|
}
|
package/rules/index.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
customs, errors, es6, getImportConfig, node, plus, strict, stylistic, variables,
|
|
2
|
+
customs, errors, es6, getImportConfig, node, perfectionist, plus, strict, stylistic, variables,
|
|
3
3
|
} from 'eslint-config-vylda-vanilla';
|
|
4
4
|
import a11y from './a11y.mjs';
|
|
5
5
|
import bestPractices from './best-practices.mjs';
|
|
6
6
|
import hooks from './hooks.mjs';
|
|
7
|
-
import perfectionist from './perfectionist.mjs';
|
|
8
7
|
import react from './react.mjs';
|
|
9
8
|
import refresh from './refresh.mjs';
|
|
10
9
|
import reactStylistic from './stylistic.mjs';
|
package/rules/stylistic.mjs
CHANGED
|
@@ -107,22 +107,6 @@ const config = [
|
|
|
107
107
|
},
|
|
108
108
|
],
|
|
109
109
|
|
|
110
|
-
// Enforce props alphabetical sorting
|
|
111
|
-
// https://eslint.style/rules/jsx/jsx-sort-props
|
|
112
|
-
'@stylistic/jsx-sort-props': [
|
|
113
|
-
'error',
|
|
114
|
-
{
|
|
115
|
-
callbacksLast: false,
|
|
116
|
-
ignoreCase: true,
|
|
117
|
-
locale: 'en',
|
|
118
|
-
multiline: 'ignore',
|
|
119
|
-
noSortAlphabetically: false,
|
|
120
|
-
reservedFirst: true,
|
|
121
|
-
shorthandFirst: false,
|
|
122
|
-
shorthandLast: true,
|
|
123
|
-
},
|
|
124
|
-
],
|
|
125
|
-
|
|
126
110
|
// Enforce whitespace in and around the JSX opening and closing brackets.
|
|
127
111
|
// https://eslint.style/rules/jsx/jsx-tag-spacing
|
|
128
112
|
'@stylistic/jsx-tag-spacing': [
|
package/rules/perfectionist.mjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { perfectionist } from 'eslint-config-vylda-vanilla';
|
|
2
|
-
|
|
3
|
-
// off due there is problem with better @stylistic/jsx-sort-props rule
|
|
4
|
-
const updatePerfectionistSortJsxPropsRule = (rules) => {
|
|
5
|
-
const sortJsxPropsRule = rules['perfectionist/sort-jsx-props'];
|
|
6
|
-
|
|
7
|
-
if (!sortJsxPropsRule) {
|
|
8
|
-
return rules;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
return {
|
|
12
|
-
...rules,
|
|
13
|
-
'perfectionist/sort-jsx-props': 'off',
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const updateConfig = (configs) => configs.map((config) => {
|
|
18
|
-
if (!('rules' in config)) {
|
|
19
|
-
return config;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const updatedSJPRules = updatePerfectionistSortJsxPropsRule(config.rules);
|
|
23
|
-
|
|
24
|
-
return {
|
|
25
|
-
...config,
|
|
26
|
-
name: `vanilla-react/perfectionist extends ${config.name || 'old config'}`,
|
|
27
|
-
rules: updatedSJPRules,
|
|
28
|
-
};
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
const config = updateConfig(perfectionist);
|
|
32
|
-
|
|
33
|
-
export default config;
|