@slango.configs/eslint 1.1.18 → 1.1.20

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @slango.configs/eslint@1.1.18 lint /home/runner/work/slango/slango/configs/eslint
2
+ > @slango.configs/eslint@1.1.20 lint /home/runner/work/slango/slango/configs/eslint
3
3
  > eslint . --max-warnings 0
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @slango.configs/eslint
2
2
 
3
+ ## 1.1.20
4
+
5
+ ### Patch Changes
6
+
7
+ - 9c4c270: Dependencies bump
8
+
9
+ ## 1.1.19
10
+
11
+ ### Patch Changes
12
+
13
+ - 8b2f608: Fixed issues with eslint presets with me main man Ruslan
14
+
3
15
  ## 1.1.18
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slango.configs/eslint",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
4
4
  "private": false,
5
5
  "description": "Slango eslint configs",
6
6
  "type": "module",
@@ -11,25 +11,26 @@
11
11
  "@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
12
12
  "@eslint/compat": "1.4.0",
13
13
  "@eslint/eslintrc": "3.3.1",
14
- "@eslint/js": "9.37.0",
15
- "@next/eslint-plugin-next": "15.5.4",
16
- "eslint-config-next": "15.5.4",
14
+ "@eslint/js": "9.38.0",
15
+ "@next/eslint-plugin-next": "15.5.6",
16
+ "eslint-config-next": "15.5.6",
17
17
  "eslint-config-prettier": "10.1.8",
18
18
  "eslint-import-resolver-typescript": "4.4.4",
19
19
  "eslint-plugin-import-x": "4.16.1",
20
+ "eslint-plugin-jsx-a11y": "6.10.2",
20
21
  "eslint-plugin-perfectionist": "4.15.1",
21
22
  "eslint-plugin-prettier": "5.5.4",
22
23
  "eslint-plugin-react-hooks": "7.0.0",
23
- "eslint-plugin-react-refresh": "0.4.23",
24
+ "eslint-plugin-react-refresh": "0.4.24",
24
25
  "eslint-plugin-regexp": "2.10.0",
25
26
  "globals": "16.4.0",
26
- "typescript-eslint": "8.46.0"
27
+ "typescript-eslint": "8.46.1"
27
28
  },
28
29
  "peerDependencies": {
29
- "eslint": "^9.37.0"
30
+ "eslint": "^9.38.0"
30
31
  },
31
32
  "devDependencies": {
32
- "eslint": "9.37.0"
33
+ "eslint": "9.38.0"
33
34
  },
34
35
  "scripts": {
35
36
  "lint": "eslint . --max-warnings 0",
@@ -1,20 +1,18 @@
1
- import { flatConfig as nextFlatConfig } from '@next/eslint-plugin-next';
2
- import reactHooks from 'eslint-plugin-react-hooks';
3
- import reactRefresh from 'eslint-plugin-react-refresh';
1
+ import nextPlugin from '@next/eslint-plugin-next';
4
2
  import tsEslint from 'typescript-eslint';
5
3
 
6
4
  import { globs, normalizeConfig, normalizeOptions, typescriptConfigs } from '../common.js';
7
- import { createJavascriptNodeConfig } from './javascript-node.js';
8
5
  import { browserTypescriptBrowserConfig } from './typescript-browser.js';
6
+ import { createTypescriptReactConfig } from './typescript-react.js';
7
+
8
+ const { flatConfig: nextFlatConfig } = nextPlugin;
9
9
 
10
10
  export const createTypescriptNextConfig = (options = {}) => {
11
11
  const opts = normalizeOptions(options);
12
12
  const browserConfig = browserTypescriptBrowserConfig(opts);
13
13
 
14
14
  return [
15
- ...createJavascriptNodeConfig(opts),
16
- ...normalizeConfig(reactHooks.configs['recommended-latest']),
17
- ...normalizeConfig(reactRefresh.configs.recommended),
15
+ ...createTypescriptReactConfig(opts),
18
16
  ...normalizeConfig(
19
17
  tsEslint.config(
20
18
  ...typescriptConfigs(globs.typescript),
@@ -1,3 +1,4 @@
1
+ import jsxA11y from 'eslint-plugin-jsx-a11y';
1
2
  import reactHooks from 'eslint-plugin-react-hooks';
2
3
  import reactRefresh from 'eslint-plugin-react-refresh';
3
4
  import tsEslint from 'typescript-eslint';
@@ -6,22 +7,21 @@ import { globs, normalizeConfig, normalizeOptions, typescriptConfigs } from '../
6
7
  import { createJavascriptNodeConfig } from './javascript-node.js';
7
8
  import { browserTypescriptBrowserConfig } from './typescript-browser.js';
8
9
 
9
- export const reactTypescriptBrowserConfig = (options = {}) => {
10
- const opts = normalizeOptions(options);
11
- const browserConfig = browserTypescriptBrowserConfig(opts);
12
- return {
13
- ...browserConfig,
14
- name: '@slango.configs/eslint/typescript-react',
15
- };
16
- };
17
-
18
10
  export const createTypescriptReactConfig = (options = {}) => {
19
11
  const opts = normalizeOptions(options);
12
+ const browserConfig = browserTypescriptBrowserConfig(opts);
20
13
 
21
14
  return [
22
15
  ...createJavascriptNodeConfig(opts),
23
- ...normalizeConfig(reactHooks.configs['recommended-latest']),
24
- ...normalizeConfig(reactRefresh.configs.recommended),
16
+ jsxA11y.flatConfigs.recommended,
17
+ {
18
+ ...browserConfig,
19
+ plugins: {
20
+ 'react-hooks': reactHooks,
21
+ 'react-refresh': reactRefresh,
22
+ },
23
+ name: '@slango.configs/eslint/typescript-react',
24
+ },
25
25
  ...normalizeConfig(
26
26
  tsEslint.config(...typescriptConfigs(globs.typescript), browserTypescriptBrowserConfig(opts)),
27
27
  ),