@sequencemedia/eslint-config-typescript 0.1.230 → 0.2.1
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/README.md +6 -1
- package/configs/typescript.mjs +4 -4
- package/package.json +16 -12
- package/plugins.d.mts +0 -20
- package/husky.mjs +0 -16
package/README.md
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
# `@sequencemedia/eslint-config-typescript`
|
|
2
2
|
|
|
3
|
-
TypeScript style Flat Config for ESLint `v9`
|
|
3
|
+
TypeScript style Flat Config for ESLint `v9` and `v10`
|
|
4
4
|
|
|
5
5
|
Based on [Standard with TypeScript](https://github.com/mightyiam/eslint-config-standard-with-typescript) via [Love](https://github.com/mightyiam/eslint-config-love)
|
|
6
6
|
|
|
7
|
+
## Requirements
|
|
8
|
+
|
|
9
|
+
- ESLint `^9.38.0 || ^10.0.0`
|
|
10
|
+
- Node.js `^20.19.0 || ^22.13.0 || >=24`
|
|
11
|
+
|
|
7
12
|
## Install
|
|
8
13
|
|
|
9
14
|
```shell
|
package/configs/typescript.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import t from '@typescript-eslint/eslint-plugin'
|
|
2
|
-
import c from 'eslint-plugin-eslint-comments'
|
|
2
|
+
import c from '@eslint-community/eslint-plugin-eslint-comments'
|
|
3
3
|
import n from 'eslint-plugin-n'
|
|
4
4
|
import p from 'eslint-plugin-promise'
|
|
5
|
-
import i from 'eslint-plugin-import'
|
|
5
|
+
import i from 'eslint-plugin-import-x'
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
name: '@sequencemedia/eslint-config-typescript/typescript',
|
|
@@ -403,7 +403,7 @@ export default {
|
|
|
403
403
|
],
|
|
404
404
|
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'error',
|
|
405
405
|
/**
|
|
406
|
-
*
|
|
406
|
+
* `@eslint-community/eslint-plugin-eslint-comments`
|
|
407
407
|
*/
|
|
408
408
|
'eslint-comments/disable-enable-pair': [
|
|
409
409
|
'error',
|
|
@@ -442,7 +442,7 @@ export default {
|
|
|
442
442
|
*/
|
|
443
443
|
'promise/param-names': 'error',
|
|
444
444
|
/**
|
|
445
|
-
* `eslint-plugin-import`
|
|
445
|
+
* `eslint-plugin-import-x`
|
|
446
446
|
*/
|
|
447
447
|
'import/export': 'error',
|
|
448
448
|
'import/first': 'error',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequencemedia/eslint-config-typescript",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "TypeScript configuration for ESLint 9",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "TypeScript configuration for ESLint 9 and 10",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"JavaScript TypeScript Style",
|
|
7
7
|
"check",
|
|
@@ -36,6 +36,9 @@
|
|
|
36
36
|
"url": "https://sequencemedia.net"
|
|
37
37
|
},
|
|
38
38
|
"license": "ISC",
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
|
41
|
+
},
|
|
39
42
|
"repository": {
|
|
40
43
|
"type": "git",
|
|
41
44
|
"url": "git+ssh://git@github.com/sequencemedia/eslint-config-typescript.git"
|
|
@@ -51,29 +54,30 @@
|
|
|
51
54
|
"test": "mocha test --recursive --verbose --color"
|
|
52
55
|
},
|
|
53
56
|
"dependencies": {
|
|
57
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.8.1",
|
|
54
58
|
"@sequencemedia/eslint-merge": "^0.0.95",
|
|
55
59
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
57
|
-
"@typescript-eslint/parser": "^8.
|
|
58
|
-
"
|
|
59
|
-
"eslint-plugin-import": "^
|
|
60
|
-
"eslint-plugin-n": "^18.
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^8.72.1",
|
|
61
|
+
"@typescript-eslint/parser": "^8.72.1",
|
|
62
|
+
"@typescript-eslint/utils": "^8.72.1",
|
|
63
|
+
"eslint-plugin-import-x": "^4.18.0",
|
|
64
|
+
"eslint-plugin-n": "^18.5.0",
|
|
61
65
|
"eslint-plugin-promise": "^7.3.0",
|
|
62
|
-
"globals": "^17.
|
|
66
|
+
"globals": "^17.14.0"
|
|
63
67
|
},
|
|
64
68
|
"devDependencies": {
|
|
65
|
-
"@sequencemedia/eslint-config-standard": "^0.
|
|
69
|
+
"@sequencemedia/eslint-config-standard": "^0.3.0",
|
|
66
70
|
"@types/chai": "^5.2.3",
|
|
67
71
|
"@types/eslint": "^9.6.1",
|
|
68
72
|
"@types/mocha": "^10.0.10",
|
|
69
|
-
"@typescript-eslint/types": "^8.
|
|
73
|
+
"@typescript-eslint/types": "^8.72.1",
|
|
70
74
|
"chai": "^6.3.0",
|
|
71
|
-
"eslint": "
|
|
75
|
+
"eslint": "10.14.0",
|
|
72
76
|
"husky": "^9.1.7",
|
|
73
77
|
"mocha": "^12.0.3"
|
|
74
78
|
},
|
|
75
79
|
"peerDependencies": {
|
|
76
|
-
"eslint": "
|
|
80
|
+
"eslint": "^9.38.0 || ^10.0.0"
|
|
77
81
|
},
|
|
78
82
|
"imports": {
|
|
79
83
|
"#eslint-config-typescript": "./index.mjs",
|
package/plugins.d.mts
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
declare module 'eslint-plugin-eslint-comments' {
|
|
2
|
-
import type {
|
|
3
|
-
TSESLint as Linter
|
|
4
|
-
} from '@typescript-eslint/utils'
|
|
5
|
-
|
|
6
|
-
const plugin: Linter.FlatConfig.Plugin
|
|
7
|
-
|
|
8
|
-
export default plugin
|
|
9
|
-
}
|
|
10
|
-
|
|
11
1
|
declare module 'eslint-plugin-n' {
|
|
12
2
|
import type {
|
|
13
3
|
TSESLint as Linter
|
|
@@ -18,16 +8,6 @@ declare module 'eslint-plugin-n' {
|
|
|
18
8
|
export default plugin
|
|
19
9
|
}
|
|
20
10
|
|
|
21
|
-
declare module 'eslint-plugin-import' {
|
|
22
|
-
import type {
|
|
23
|
-
TSESLint as Linter
|
|
24
|
-
} from '@typescript-eslint/utils'
|
|
25
|
-
|
|
26
|
-
const plugin: Linter.FlatConfig.Plugin
|
|
27
|
-
|
|
28
|
-
export default plugin
|
|
29
|
-
}
|
|
30
|
-
|
|
31
11
|
declare module 'eslint-plugin-promise' {
|
|
32
12
|
import type {
|
|
33
13
|
TSESLint as Linter
|
package/husky.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// @ts-ignore
|
|
4
|
-
Promise.resolve(import('husky'))
|
|
5
|
-
.then(({ default: husky }) => { husky() })
|
|
6
|
-
.catch((e) => {
|
|
7
|
-
if (e instanceof Error) {
|
|
8
|
-
if ('code' in e) {
|
|
9
|
-
const { code } = e
|
|
10
|
-
if (code === 'ERR_MODULE_NOT_FOUND') return
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const { message } = e
|
|
14
|
-
if (message) console.error(`💥 ${message}`)
|
|
15
|
-
}
|
|
16
|
-
})
|