@anolilab/eslint-config 16.2.9 → 16.2.11
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 +16 -0
- package/README.md +9 -12
- package/dist/index.cjs +7 -7
- package/dist/index.d.cts +37 -1
- package/dist/index.d.mts +37 -1
- package/dist/index.d.ts +37 -1
- package/dist/index.mjs +7 -7
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -2650,6 +2650,11 @@ interface RuleOptions {
|
|
|
2650
2650
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
|
|
2651
2651
|
*/
|
|
2652
2652
|
'n/no-sync'?: Linter.RuleEntry<NNoSync>
|
|
2653
|
+
/**
|
|
2654
|
+
* disallow top-level `await` in published modules
|
|
2655
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-top-level-await.md
|
|
2656
|
+
*/
|
|
2657
|
+
'n/no-top-level-await'?: Linter.RuleEntry<NNoTopLevelAwait>
|
|
2653
2658
|
/**
|
|
2654
2659
|
* disallow `bin` files that npm ignores
|
|
2655
2660
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md
|
|
@@ -11395,7 +11400,38 @@ type NNoRestrictedRequire = []|[(string | {
|
|
|
11395
11400
|
// ----- n/no-sync -----
|
|
11396
11401
|
type NNoSync = []|[{
|
|
11397
11402
|
allowAtRootLevel?: boolean
|
|
11398
|
-
ignores?: string
|
|
11403
|
+
ignores?: (string | {
|
|
11404
|
+
from?: "file"
|
|
11405
|
+
path?: string
|
|
11406
|
+
name?: string[]
|
|
11407
|
+
} | {
|
|
11408
|
+
from?: "lib"
|
|
11409
|
+
name?: string[]
|
|
11410
|
+
} | {
|
|
11411
|
+
from?: "package"
|
|
11412
|
+
package?: string
|
|
11413
|
+
name?: string[]
|
|
11414
|
+
})[]
|
|
11415
|
+
}]
|
|
11416
|
+
// ----- n/no-top-level-await -----
|
|
11417
|
+
type NNoTopLevelAwait = []|[{
|
|
11418
|
+
ignoreBin?: boolean
|
|
11419
|
+
convertPath?: ({
|
|
11420
|
+
|
|
11421
|
+
[k: string]: [string, string]
|
|
11422
|
+
} | [{
|
|
11423
|
+
|
|
11424
|
+
include: [string, ...(string)[]]
|
|
11425
|
+
exclude?: string[]
|
|
11426
|
+
|
|
11427
|
+
replace: [string, string]
|
|
11428
|
+
}, ...({
|
|
11429
|
+
|
|
11430
|
+
include: [string, ...(string)[]]
|
|
11431
|
+
exclude?: string[]
|
|
11432
|
+
|
|
11433
|
+
replace: [string, string]
|
|
11434
|
+
})[]])
|
|
11399
11435
|
}]
|
|
11400
11436
|
// ----- n/no-unpublished-bin -----
|
|
11401
11437
|
type NNoUnpublishedBin = []|[{
|
package/dist/index.d.mts
CHANGED
|
@@ -2650,6 +2650,11 @@ interface RuleOptions {
|
|
|
2650
2650
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
|
|
2651
2651
|
*/
|
|
2652
2652
|
'n/no-sync'?: Linter.RuleEntry<NNoSync>
|
|
2653
|
+
/**
|
|
2654
|
+
* disallow top-level `await` in published modules
|
|
2655
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-top-level-await.md
|
|
2656
|
+
*/
|
|
2657
|
+
'n/no-top-level-await'?: Linter.RuleEntry<NNoTopLevelAwait>
|
|
2653
2658
|
/**
|
|
2654
2659
|
* disallow `bin` files that npm ignores
|
|
2655
2660
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md
|
|
@@ -11395,7 +11400,38 @@ type NNoRestrictedRequire = []|[(string | {
|
|
|
11395
11400
|
// ----- n/no-sync -----
|
|
11396
11401
|
type NNoSync = []|[{
|
|
11397
11402
|
allowAtRootLevel?: boolean
|
|
11398
|
-
ignores?: string
|
|
11403
|
+
ignores?: (string | {
|
|
11404
|
+
from?: "file"
|
|
11405
|
+
path?: string
|
|
11406
|
+
name?: string[]
|
|
11407
|
+
} | {
|
|
11408
|
+
from?: "lib"
|
|
11409
|
+
name?: string[]
|
|
11410
|
+
} | {
|
|
11411
|
+
from?: "package"
|
|
11412
|
+
package?: string
|
|
11413
|
+
name?: string[]
|
|
11414
|
+
})[]
|
|
11415
|
+
}]
|
|
11416
|
+
// ----- n/no-top-level-await -----
|
|
11417
|
+
type NNoTopLevelAwait = []|[{
|
|
11418
|
+
ignoreBin?: boolean
|
|
11419
|
+
convertPath?: ({
|
|
11420
|
+
|
|
11421
|
+
[k: string]: [string, string]
|
|
11422
|
+
} | [{
|
|
11423
|
+
|
|
11424
|
+
include: [string, ...(string)[]]
|
|
11425
|
+
exclude?: string[]
|
|
11426
|
+
|
|
11427
|
+
replace: [string, string]
|
|
11428
|
+
}, ...({
|
|
11429
|
+
|
|
11430
|
+
include: [string, ...(string)[]]
|
|
11431
|
+
exclude?: string[]
|
|
11432
|
+
|
|
11433
|
+
replace: [string, string]
|
|
11434
|
+
})[]])
|
|
11399
11435
|
}]
|
|
11400
11436
|
// ----- n/no-unpublished-bin -----
|
|
11401
11437
|
type NNoUnpublishedBin = []|[{
|
package/dist/index.d.ts
CHANGED
|
@@ -2650,6 +2650,11 @@ interface RuleOptions {
|
|
|
2650
2650
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
|
|
2651
2651
|
*/
|
|
2652
2652
|
'n/no-sync'?: Linter.RuleEntry<NNoSync>
|
|
2653
|
+
/**
|
|
2654
|
+
* disallow top-level `await` in published modules
|
|
2655
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-top-level-await.md
|
|
2656
|
+
*/
|
|
2657
|
+
'n/no-top-level-await'?: Linter.RuleEntry<NNoTopLevelAwait>
|
|
2653
2658
|
/**
|
|
2654
2659
|
* disallow `bin` files that npm ignores
|
|
2655
2660
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md
|
|
@@ -11395,7 +11400,38 @@ type NNoRestrictedRequire = []|[(string | {
|
|
|
11395
11400
|
// ----- n/no-sync -----
|
|
11396
11401
|
type NNoSync = []|[{
|
|
11397
11402
|
allowAtRootLevel?: boolean
|
|
11398
|
-
ignores?: string
|
|
11403
|
+
ignores?: (string | {
|
|
11404
|
+
from?: "file"
|
|
11405
|
+
path?: string
|
|
11406
|
+
name?: string[]
|
|
11407
|
+
} | {
|
|
11408
|
+
from?: "lib"
|
|
11409
|
+
name?: string[]
|
|
11410
|
+
} | {
|
|
11411
|
+
from?: "package"
|
|
11412
|
+
package?: string
|
|
11413
|
+
name?: string[]
|
|
11414
|
+
})[]
|
|
11415
|
+
}]
|
|
11416
|
+
// ----- n/no-top-level-await -----
|
|
11417
|
+
type NNoTopLevelAwait = []|[{
|
|
11418
|
+
ignoreBin?: boolean
|
|
11419
|
+
convertPath?: ({
|
|
11420
|
+
|
|
11421
|
+
[k: string]: [string, string]
|
|
11422
|
+
} | [{
|
|
11423
|
+
|
|
11424
|
+
include: [string, ...(string)[]]
|
|
11425
|
+
exclude?: string[]
|
|
11426
|
+
|
|
11427
|
+
replace: [string, string]
|
|
11428
|
+
}, ...({
|
|
11429
|
+
|
|
11430
|
+
include: [string, ...(string)[]]
|
|
11431
|
+
exclude?: string[]
|
|
11432
|
+
|
|
11433
|
+
replace: [string, string]
|
|
11434
|
+
})[]])
|
|
11399
11435
|
}]
|
|
11400
11436
|
// ----- n/no-unpublished-bin -----
|
|
11401
11437
|
type NNoUnpublishedBin = []|[{
|