@darksheep/eslint 6.7.5 → 6.7.7

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
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.7.7](https://github.com/DarkSheepSoftware/eslint/compare/v6.7.6...v6.7.7) (2025-01-11)
4
+
5
+
6
+ ### 🩹 Fixes
7
+
8
+ * Prevent auto multiline block comments ([#806](https://github.com/DarkSheepSoftware/eslint/issues/806)) ([ee1d551](https://github.com/DarkSheepSoftware/eslint/commit/ee1d55186652f04f836aa8f62202297f8049684e))
9
+
10
+ ## [6.7.6](https://github.com/DarkSheepSoftware/eslint/compare/v6.7.5...v6.7.6) (2025-01-11)
11
+
12
+
13
+ ### 🩹 Fixes
14
+
15
+ * Remove no-keyword-prefix in react ([#804](https://github.com/DarkSheepSoftware/eslint/issues/804)) ([4f20ead](https://github.com/DarkSheepSoftware/eslint/commit/4f20ead038d450ecac3e7d2ffeec47dbc9f876ae))
16
+
3
17
  ## [6.7.5](https://github.com/DarkSheepSoftware/eslint/compare/v6.7.4...v6.7.5) (2025-01-11)
4
18
 
5
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darksheep/eslint",
3
- "version": "6.7.5",
3
+ "version": "6.7.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/DarkSheepSoftware/eslint"
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Get basic ESLint style config.
3
+ * @returns {Promise<import('eslint').Linter.Config[]>}
4
+ */
5
+ export async function createReactConfig() {
6
+ return [
7
+ {
8
+ name: 'custom/react',
9
+ files: [ '*.jsx', '*.tsx' ],
10
+ rules: {
11
+ 'unicorn/no-keyword-prefix': 'off',
12
+ },
13
+ },
14
+ ];
15
+ }
package/src/index.js CHANGED
@@ -5,6 +5,7 @@ import { createEslintComplexityConfig } from './configs/eslint-complexity.js';
5
5
  import { createEslintIgnoresConfig } from './configs/eslint-ignores.js';
6
6
  import { createEslintRecommendsConfig } from './configs/eslint-recommended.js';
7
7
  import { createStyleConfig } from './configs/eslint-style.js';
8
+ import { createReactConfig } from './configs/react.js';
8
9
  import { createEslintCommentsConfig } from './plugins/eslint-comments.js';
9
10
  import { createEslintJSDocConfig } from './plugins/jsdoc.js';
10
11
  import { createEslintJsonConfig } from './plugins/json.js';
@@ -37,6 +38,7 @@ const configBuilders = [
37
38
  createEslintPromiseConfig,
38
39
  createEslintTypescriptConfig,
39
40
  createEslintReactConfig,
41
+ createReactConfig,
40
42
  createEslintSecurityConfig,
41
43
  createEslintUnicornConfig,
42
44
  createEslintRegexpConfig,
@@ -55,7 +55,7 @@ export function createEslintStyleConfig() {
55
55
  'style/max-len': 'off',
56
56
  'style/max-statements-per-line': 'error',
57
57
  'style/member-delimiter-style': 'error',
58
- 'style/multiline-comment-style': [ 'error', 'starred-block' ],
58
+ 'style/multiline-comment-style': 'off',
59
59
  'style/multiline-ternary': [ 'error', 'always-multiline' ],
60
60
  'style/new-parens': 'error',
61
61
  'style/newline-per-chained-call': 'error',
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Get basic ESLint style config.
3
+ * @returns {Promise<import('eslint').Linter.Config[]>}
4
+ */
5
+ export function createReactConfig(): Promise<import("eslint").Linter.Config[]>;