@markuplint-dev/eslint-config 1.0.15 → 1.0.17
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 +14 -0
- package/base.js +14 -3
- package/package.json +12 -13
- package/ts.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
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.17](https://github.com/markuplint/markuplint/compare/@markuplint-dev/eslint-config@1.0.16...@markuplint-dev/eslint-config@1.0.17) (2025-08-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @markuplint-dev/eslint-config
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [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)
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
- revert toReversed usage for Node.js v18 compatibility ([36b0453](https://github.com/markuplint/markuplint/commit/36b0453a7bf850c035e82c6fccc2f9567a5d4674))
|
|
19
|
+
|
|
6
20
|
## [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)
|
|
7
21
|
|
|
8
22
|
**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
|
|
3
|
-
import
|
|
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
|
|
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.
|
|
3
|
+
"version": "1.0.17",
|
|
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.
|
|
17
|
-
"@typescript-eslint/parser": "8.
|
|
18
|
-
"eslint": "9.
|
|
19
|
-
"eslint-import-resolver-typescript": "4.
|
|
20
|
-
"eslint-plugin-import": "
|
|
21
|
-
"eslint-plugin-jsdoc": "
|
|
22
|
-
"eslint-plugin-n": "17.
|
|
23
|
-
"eslint-plugin-regexp": "2.
|
|
15
|
+
"@typescript-eslint/eslint-plugin": "8.40.0",
|
|
16
|
+
"@typescript-eslint/parser": "8.40.0",
|
|
17
|
+
"eslint": "9.34.0",
|
|
18
|
+
"eslint-import-resolver-typescript": "4.4.4",
|
|
19
|
+
"eslint-plugin-import-x": "4.16.1",
|
|
20
|
+
"eslint-plugin-jsdoc": "54.1.1",
|
|
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": "
|
|
26
|
-
"typescript-eslint": "8.
|
|
24
|
+
"eslint-plugin-unicorn": "60.0.0",
|
|
25
|
+
"typescript-eslint": "8.40.0"
|
|
27
26
|
},
|
|
28
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "ae97eb2d31ecedf4f0800fbbf18588aad4ebca04"
|
|
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,
|