@markuplint-dev/eslint-config 1.0.15-dev.110 → 1.0.16

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.
Files changed (4) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/base.js +14 -3
  3. package/package.json +12 -13
  4. package/ts.js +4 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.16](https://github.com/markuplint/markuplint/compare/@markuplint-dev/eslint-config@1.0.15...@markuplint-dev/eslint-config@1.0.16) (2025-08-13)
7
+
8
+ ### Bug Fixes
9
+
10
+ - revert toReversed usage for Node.js v18 compatibility ([36b0453](https://github.com/markuplint/markuplint/commit/36b0453a7bf850c035e82c6fccc2f9567a5d4674))
11
+
12
+ ## [1.0.15](https://github.com/markuplint/markuplint/compare/@markuplint-dev/eslint-config@1.0.14...@markuplint-dev/eslint-config@1.0.15) (2025-04-13)
13
+
14
+ **Note:** Version bump only for package @markuplint-dev/eslint-config
15
+
6
16
  ## [1.0.14](https://github.com/markuplint/markuplint/compare/@markuplint-dev/eslint-config@1.0.13...@markuplint-dev/eslint-config@1.0.14) (2025-03-09)
7
17
 
8
18
  **Note:** Version bump only for package @markuplint-dev/eslint-config
package/base.js CHANGED
@@ -1,10 +1,12 @@
1
1
  import js from '@eslint/js';
2
- import unicorn from 'eslint-plugin-unicorn';
3
- import tsESLint from 'typescript-eslint';
2
+ import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript';
3
+ import importX from 'eslint-plugin-import-x';
4
4
  import jsdoc from 'eslint-plugin-jsdoc';
5
+ import * as regexp from 'eslint-plugin-regexp';
5
6
  import sortClassMembers from 'eslint-plugin-sort-class-members';
7
+ import unicorn from 'eslint-plugin-unicorn';
6
8
  import globals from 'globals';
7
- import * as regexp from 'eslint-plugin-regexp';
9
+ import tsESLint from 'typescript-eslint';
8
10
 
9
11
  /**
10
12
  * @type {import('eslint').Linter.Config}
@@ -12,6 +14,7 @@ import * as regexp from 'eslint-plugin-regexp';
12
14
  export const base = [
13
15
  js.configs.recommended,
14
16
  ...tsESLint.configs.recommended,
17
+ importX.flatConfigs.recommended,
15
18
  unicorn.configs['flat/recommended'],
16
19
  regexp.configs['flat/recommended'],
17
20
  sortClassMembers.configs['flat/recommended'],
@@ -39,6 +42,7 @@ export const base = [
39
42
  'no-console': [1],
40
43
  'no-mixed-spaces-and-tabs': 0,
41
44
  'require-await': 2,
45
+ 'import-x/no-named-as-default-member': 0,
42
46
  'lines-between-class-members': [1, 'always', { exceptAfterSingleLine: true }],
43
47
  'no-restricted-globals': [2, '__dirname', 'require'],
44
48
 
@@ -77,6 +81,13 @@ export const base = [
77
81
  returns: 'return',
78
82
  },
79
83
  },
84
+ 'import-x/resolver-next': [createTypeScriptImportResolver()],
85
+ },
86
+ },
87
+ // for Node.js v18
88
+ {
89
+ rules: {
90
+ 'unicorn/no-array-reverse': 0,
80
91
  },
81
92
  },
82
93
  ];
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@markuplint-dev/eslint-config",
3
- "version": "1.0.15-dev.110+16e148e6e",
3
+ "version": "1.0.16",
4
4
  "description": "ESLint and config for Markuplint projects",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
7
7
  "license": "MIT",
8
- "private": false,
9
8
  "type": "module",
10
9
  "main": "index.js",
11
10
  "publishConfig": {
@@ -13,17 +12,17 @@
13
12
  },
14
13
  "dependencies": {
15
14
  "@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
16
- "@typescript-eslint/eslint-plugin": "8.29.1",
17
- "@typescript-eslint/parser": "8.29.1",
18
- "eslint": "9.24.0",
19
- "eslint-import-resolver-typescript": "4.3.2",
20
- "eslint-plugin-import": "2.31.0",
21
- "eslint-plugin-jsdoc": "50.6.9",
22
- "eslint-plugin-n": "17.17.0",
23
- "eslint-plugin-regexp": "2.7.0",
15
+ "@typescript-eslint/eslint-plugin": "8.39.0",
16
+ "@typescript-eslint/parser": "8.39.0",
17
+ "eslint": "9.33.0",
18
+ "eslint-import-resolver-typescript": "4.4.4",
19
+ "eslint-plugin-import-x": "4.16.1",
20
+ "eslint-plugin-jsdoc": "52.0.4",
21
+ "eslint-plugin-n": "17.21.3",
22
+ "eslint-plugin-regexp": "2.10.0",
24
23
  "eslint-plugin-sort-class-members": "1.21.0",
25
- "eslint-plugin-unicorn": "58.0.0",
26
- "typescript-eslint": "8.29.1"
24
+ "eslint-plugin-unicorn": "60.0.0",
25
+ "typescript-eslint": "8.39.0"
27
26
  },
28
- "gitHead": "16e148e6ec2abac673c5ea1e42bbb666d421f357"
27
+ "gitHead": "acbf53f7e30d7a59f850a0f279b617383266dab3"
29
28
  }
package/ts.js CHANGED
@@ -1,7 +1,10 @@
1
+ import importX from 'eslint-plugin-import-x';
2
+
1
3
  /**
2
4
  * @type {import('eslint').Linter.Config}
3
5
  */
4
6
  export const ts = {
7
+ ...importX.flatConfigs.typescript,
5
8
  languageOptions: {
6
9
  parserOptions: {
7
10
  sourceType: 'module',
@@ -9,6 +12,7 @@ export const ts = {
9
12
  },
10
13
  },
11
14
  rules: {
15
+ ...importX.flatConfigs.typescript.rules,
12
16
  '@typescript-eslint/no-unused-vars': [2, { args: 'none' }],
13
17
  '@typescript-eslint/no-array-constructor': 2,
14
18
  '@typescript-eslint/adjacent-overload-signatures': 2,