@storm-software/eslint 0.52.0 → 0.54.0
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 +1 -1
- package/dist/preset.d.mts +81 -2
- package/dist/preset.d.ts +81 -2
- package/dist/preset.mjs +22 -2
- package/dist/rules.d.ts +81 -2
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/dist/preset.d.mts
CHANGED
|
@@ -5,14 +5,18 @@ import { Linter } from 'eslint';
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
interface RuleOptions {
|
|
8
|
+
/**
|
|
9
|
+
* CSpell spellchecker
|
|
10
|
+
*/
|
|
11
|
+
'@cspell/spellchecker'?: Linter.RuleEntry<CspellSpellchecker>
|
|
8
12
|
/**
|
|
9
13
|
* Checks dependencies in project's package.json for version mismatches
|
|
10
|
-
* @see https://github.com/nrwl/nx/blob/19.5.
|
|
14
|
+
* @see https://github.com/nrwl/nx/blob/19.5.6/docs/generated/packages/eslint-plugin/documents/dependency-checks.md
|
|
11
15
|
*/
|
|
12
16
|
'@nx/dependency-checks'?: Linter.RuleEntry<NxDependencyChecks>
|
|
13
17
|
/**
|
|
14
18
|
* Ensure that module boundaries are respected within the monorepo
|
|
15
|
-
* @see https://github.com/nrwl/nx/blob/19.5.
|
|
19
|
+
* @see https://github.com/nrwl/nx/blob/19.5.6/docs/generated/packages/eslint-plugin/documents/enforce-module-boundaries.md
|
|
16
20
|
*/
|
|
17
21
|
'@nx/enforce-module-boundaries'?: Linter.RuleEntry<NxEnforceModuleBoundaries>
|
|
18
22
|
/**
|
|
@@ -2332,6 +2336,81 @@ interface RuleOptions {
|
|
|
2332
2336
|
}
|
|
2333
2337
|
|
|
2334
2338
|
/* ======= Declarations ======= */
|
|
2339
|
+
// ----- @cspell/spellchecker -----
|
|
2340
|
+
type CspellSpellchecker = []|[{
|
|
2341
|
+
|
|
2342
|
+
autoFix: boolean
|
|
2343
|
+
|
|
2344
|
+
checkComments?: boolean
|
|
2345
|
+
|
|
2346
|
+
checkIdentifiers?: boolean
|
|
2347
|
+
|
|
2348
|
+
checkJSXText?: boolean
|
|
2349
|
+
|
|
2350
|
+
checkScope?: [string, boolean][]
|
|
2351
|
+
|
|
2352
|
+
checkStringTemplates?: boolean
|
|
2353
|
+
|
|
2354
|
+
checkStrings?: boolean
|
|
2355
|
+
|
|
2356
|
+
configFile?: string
|
|
2357
|
+
|
|
2358
|
+
cspell?: {
|
|
2359
|
+
|
|
2360
|
+
allowCompoundWords?: boolean
|
|
2361
|
+
|
|
2362
|
+
dictionaries?: (string | string)[]
|
|
2363
|
+
dictionaryDefinitions?: {
|
|
2364
|
+
|
|
2365
|
+
description?: string
|
|
2366
|
+
|
|
2367
|
+
name: string
|
|
2368
|
+
|
|
2369
|
+
noSuggest?: boolean
|
|
2370
|
+
|
|
2371
|
+
path: string
|
|
2372
|
+
|
|
2373
|
+
repMap?: [string, string][]
|
|
2374
|
+
|
|
2375
|
+
type?: ("S" | "W" | "C" | "T")
|
|
2376
|
+
|
|
2377
|
+
useCompounds?: boolean
|
|
2378
|
+
}[]
|
|
2379
|
+
|
|
2380
|
+
enabled?: boolean
|
|
2381
|
+
|
|
2382
|
+
flagWords?: string[]
|
|
2383
|
+
|
|
2384
|
+
ignoreRegExpList?: (string | string | ("Base64" | "Base64MultiLine" | "Base64SingleLine" | "CStyleComment" | "CStyleHexValue" | "CSSHexValue" | "CommitHash" | "CommitHashLink" | "Email" | "EscapeCharacters" | "HexValues" | "href" | "PhpHereDoc" | "PublicKey" | "RsaCert" | "SshRsa" | "SHA" | "HashStrings" | "SpellCheckerDisable" | "SpellCheckerDisableBlock" | "SpellCheckerDisableLine" | "SpellCheckerDisableNext" | "SpellCheckerIgnoreInDocSetting" | "string" | "UnicodeRef" | "Urls" | "UUID" | "Everything"))[]
|
|
2385
|
+
|
|
2386
|
+
ignoreWords?: string[]
|
|
2387
|
+
|
|
2388
|
+
import?: (string | string[])
|
|
2389
|
+
|
|
2390
|
+
includeRegExpList?: (string | string | ("Base64" | "Base64MultiLine" | "Base64SingleLine" | "CStyleComment" | "CStyleHexValue" | "CSSHexValue" | "CommitHash" | "CommitHashLink" | "Email" | "EscapeCharacters" | "HexValues" | "href" | "PhpHereDoc" | "PublicKey" | "RsaCert" | "SshRsa" | "SHA" | "HashStrings" | "SpellCheckerDisable" | "SpellCheckerDisableBlock" | "SpellCheckerDisableLine" | "SpellCheckerDisableNext" | "SpellCheckerIgnoreInDocSetting" | "string" | "UnicodeRef" | "Urls" | "UUID" | "Everything"))[]
|
|
2391
|
+
|
|
2392
|
+
language?: string
|
|
2393
|
+
|
|
2394
|
+
words?: string[]
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
cspellOptionsRoot?: (string | string)
|
|
2398
|
+
|
|
2399
|
+
customWordListFile?: (string | {
|
|
2400
|
+
|
|
2401
|
+
path: string
|
|
2402
|
+
})
|
|
2403
|
+
|
|
2404
|
+
debugMode?: boolean
|
|
2405
|
+
|
|
2406
|
+
generateSuggestions: boolean
|
|
2407
|
+
|
|
2408
|
+
ignoreImportProperties?: boolean
|
|
2409
|
+
|
|
2410
|
+
ignoreImports?: boolean
|
|
2411
|
+
|
|
2412
|
+
numSuggestions: number
|
|
2413
|
+
}]
|
|
2335
2414
|
// ----- @nx/dependency-checks -----
|
|
2336
2415
|
type NxDependencyChecks = []|[{
|
|
2337
2416
|
buildTargets?: string[]
|
package/dist/preset.d.ts
CHANGED
|
@@ -5,14 +5,18 @@ import { Linter } from 'eslint';
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
interface RuleOptions {
|
|
8
|
+
/**
|
|
9
|
+
* CSpell spellchecker
|
|
10
|
+
*/
|
|
11
|
+
'@cspell/spellchecker'?: Linter.RuleEntry<CspellSpellchecker>
|
|
8
12
|
/**
|
|
9
13
|
* Checks dependencies in project's package.json for version mismatches
|
|
10
|
-
* @see https://github.com/nrwl/nx/blob/19.5.
|
|
14
|
+
* @see https://github.com/nrwl/nx/blob/19.5.6/docs/generated/packages/eslint-plugin/documents/dependency-checks.md
|
|
11
15
|
*/
|
|
12
16
|
'@nx/dependency-checks'?: Linter.RuleEntry<NxDependencyChecks>
|
|
13
17
|
/**
|
|
14
18
|
* Ensure that module boundaries are respected within the monorepo
|
|
15
|
-
* @see https://github.com/nrwl/nx/blob/19.5.
|
|
19
|
+
* @see https://github.com/nrwl/nx/blob/19.5.6/docs/generated/packages/eslint-plugin/documents/enforce-module-boundaries.md
|
|
16
20
|
*/
|
|
17
21
|
'@nx/enforce-module-boundaries'?: Linter.RuleEntry<NxEnforceModuleBoundaries>
|
|
18
22
|
/**
|
|
@@ -2332,6 +2336,81 @@ interface RuleOptions {
|
|
|
2332
2336
|
}
|
|
2333
2337
|
|
|
2334
2338
|
/* ======= Declarations ======= */
|
|
2339
|
+
// ----- @cspell/spellchecker -----
|
|
2340
|
+
type CspellSpellchecker = []|[{
|
|
2341
|
+
|
|
2342
|
+
autoFix: boolean
|
|
2343
|
+
|
|
2344
|
+
checkComments?: boolean
|
|
2345
|
+
|
|
2346
|
+
checkIdentifiers?: boolean
|
|
2347
|
+
|
|
2348
|
+
checkJSXText?: boolean
|
|
2349
|
+
|
|
2350
|
+
checkScope?: [string, boolean][]
|
|
2351
|
+
|
|
2352
|
+
checkStringTemplates?: boolean
|
|
2353
|
+
|
|
2354
|
+
checkStrings?: boolean
|
|
2355
|
+
|
|
2356
|
+
configFile?: string
|
|
2357
|
+
|
|
2358
|
+
cspell?: {
|
|
2359
|
+
|
|
2360
|
+
allowCompoundWords?: boolean
|
|
2361
|
+
|
|
2362
|
+
dictionaries?: (string | string)[]
|
|
2363
|
+
dictionaryDefinitions?: {
|
|
2364
|
+
|
|
2365
|
+
description?: string
|
|
2366
|
+
|
|
2367
|
+
name: string
|
|
2368
|
+
|
|
2369
|
+
noSuggest?: boolean
|
|
2370
|
+
|
|
2371
|
+
path: string
|
|
2372
|
+
|
|
2373
|
+
repMap?: [string, string][]
|
|
2374
|
+
|
|
2375
|
+
type?: ("S" | "W" | "C" | "T")
|
|
2376
|
+
|
|
2377
|
+
useCompounds?: boolean
|
|
2378
|
+
}[]
|
|
2379
|
+
|
|
2380
|
+
enabled?: boolean
|
|
2381
|
+
|
|
2382
|
+
flagWords?: string[]
|
|
2383
|
+
|
|
2384
|
+
ignoreRegExpList?: (string | string | ("Base64" | "Base64MultiLine" | "Base64SingleLine" | "CStyleComment" | "CStyleHexValue" | "CSSHexValue" | "CommitHash" | "CommitHashLink" | "Email" | "EscapeCharacters" | "HexValues" | "href" | "PhpHereDoc" | "PublicKey" | "RsaCert" | "SshRsa" | "SHA" | "HashStrings" | "SpellCheckerDisable" | "SpellCheckerDisableBlock" | "SpellCheckerDisableLine" | "SpellCheckerDisableNext" | "SpellCheckerIgnoreInDocSetting" | "string" | "UnicodeRef" | "Urls" | "UUID" | "Everything"))[]
|
|
2385
|
+
|
|
2386
|
+
ignoreWords?: string[]
|
|
2387
|
+
|
|
2388
|
+
import?: (string | string[])
|
|
2389
|
+
|
|
2390
|
+
includeRegExpList?: (string | string | ("Base64" | "Base64MultiLine" | "Base64SingleLine" | "CStyleComment" | "CStyleHexValue" | "CSSHexValue" | "CommitHash" | "CommitHashLink" | "Email" | "EscapeCharacters" | "HexValues" | "href" | "PhpHereDoc" | "PublicKey" | "RsaCert" | "SshRsa" | "SHA" | "HashStrings" | "SpellCheckerDisable" | "SpellCheckerDisableBlock" | "SpellCheckerDisableLine" | "SpellCheckerDisableNext" | "SpellCheckerIgnoreInDocSetting" | "string" | "UnicodeRef" | "Urls" | "UUID" | "Everything"))[]
|
|
2391
|
+
|
|
2392
|
+
language?: string
|
|
2393
|
+
|
|
2394
|
+
words?: string[]
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
cspellOptionsRoot?: (string | string)
|
|
2398
|
+
|
|
2399
|
+
customWordListFile?: (string | {
|
|
2400
|
+
|
|
2401
|
+
path: string
|
|
2402
|
+
})
|
|
2403
|
+
|
|
2404
|
+
debugMode?: boolean
|
|
2405
|
+
|
|
2406
|
+
generateSuggestions: boolean
|
|
2407
|
+
|
|
2408
|
+
ignoreImportProperties?: boolean
|
|
2409
|
+
|
|
2410
|
+
ignoreImports?: boolean
|
|
2411
|
+
|
|
2412
|
+
numSuggestions: number
|
|
2413
|
+
}]
|
|
2335
2414
|
// ----- @nx/dependency-checks -----
|
|
2336
2415
|
type NxDependencyChecks = []|[{
|
|
2337
2416
|
buildTargets?: string[]
|
package/dist/preset.mjs
CHANGED
|
@@ -4,8 +4,7 @@ import { fileURLToPath as banner_fileURLToPath } from 'node:url';
|
|
|
4
4
|
const __filename = banner_fileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = banner_dirname(__filename);
|
|
6
6
|
|
|
7
|
-
import
|
|
8
|
-
import unicorn from 'eslint-plugin-unicorn';
|
|
7
|
+
import { plugins, rules } from '@cspell/eslint-plugin/recommended';
|
|
9
8
|
import nxPlugin from '@nx/eslint-plugin';
|
|
10
9
|
import jsxA11y from 'eslint-plugin-jsx-a11y';
|
|
11
10
|
import markdown from 'eslint-plugin-markdown';
|
|
@@ -13,9 +12,11 @@ import prettierConfig from 'eslint-plugin-prettier/recommended';
|
|
|
13
12
|
import react from 'eslint-plugin-react';
|
|
14
13
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
15
14
|
import tsdoc from 'eslint-plugin-tsdoc';
|
|
15
|
+
import unicorn from 'eslint-plugin-unicorn';
|
|
16
16
|
import yml from 'eslint-plugin-yml';
|
|
17
17
|
import globals from 'globals';
|
|
18
18
|
import jsoncParser from 'jsonc-eslint-parser';
|
|
19
|
+
import tsEslint$1 from 'typescript-eslint';
|
|
19
20
|
import require$$0 from 'eslint/use-at-your-own-risk';
|
|
20
21
|
import require$$0$1 from 'eslint';
|
|
21
22
|
import os from 'node:os';
|
|
@@ -13012,6 +13013,25 @@ function getStormConfig(options = {
|
|
|
13012
13013
|
// https://www.npmjs.com/package/eslint-plugin-yml
|
|
13013
13014
|
...yml.configs["flat/recommended"],
|
|
13014
13015
|
...yml.configs["flat/prettier"],
|
|
13016
|
+
// CSpell
|
|
13017
|
+
{
|
|
13018
|
+
plugins: {
|
|
13019
|
+
...plugins
|
|
13020
|
+
},
|
|
13021
|
+
rules: {
|
|
13022
|
+
...rules,
|
|
13023
|
+
"@cspell/spellchecker": [
|
|
13024
|
+
"warn",
|
|
13025
|
+
{
|
|
13026
|
+
// configFile: new URL(
|
|
13027
|
+
// "./.vscode/cspell.json",
|
|
13028
|
+
// import.meta.url
|
|
13029
|
+
// ).toString(),
|
|
13030
|
+
autoFix: true
|
|
13031
|
+
}
|
|
13032
|
+
]
|
|
13033
|
+
}
|
|
13034
|
+
},
|
|
13015
13035
|
// User overrides
|
|
13016
13036
|
...userConfigs
|
|
13017
13037
|
].filter(Boolean);
|
package/dist/rules.d.ts
CHANGED
|
@@ -3,14 +3,18 @@
|
|
|
3
3
|
import type { Linter } from 'eslint'
|
|
4
4
|
|
|
5
5
|
export interface RuleOptions {
|
|
6
|
+
/**
|
|
7
|
+
* CSpell spellchecker
|
|
8
|
+
*/
|
|
9
|
+
'@cspell/spellchecker'?: Linter.RuleEntry<CspellSpellchecker>
|
|
6
10
|
/**
|
|
7
11
|
* Checks dependencies in project's package.json for version mismatches
|
|
8
|
-
* @see https://github.com/nrwl/nx/blob/19.5.
|
|
12
|
+
* @see https://github.com/nrwl/nx/blob/19.5.6/docs/generated/packages/eslint-plugin/documents/dependency-checks.md
|
|
9
13
|
*/
|
|
10
14
|
'@nx/dependency-checks'?: Linter.RuleEntry<NxDependencyChecks>
|
|
11
15
|
/**
|
|
12
16
|
* Ensure that module boundaries are respected within the monorepo
|
|
13
|
-
* @see https://github.com/nrwl/nx/blob/19.5.
|
|
17
|
+
* @see https://github.com/nrwl/nx/blob/19.5.6/docs/generated/packages/eslint-plugin/documents/enforce-module-boundaries.md
|
|
14
18
|
*/
|
|
15
19
|
'@nx/enforce-module-boundaries'?: Linter.RuleEntry<NxEnforceModuleBoundaries>
|
|
16
20
|
/**
|
|
@@ -2330,6 +2334,81 @@ export interface RuleOptions {
|
|
|
2330
2334
|
}
|
|
2331
2335
|
|
|
2332
2336
|
/* ======= Declarations ======= */
|
|
2337
|
+
// ----- @cspell/spellchecker -----
|
|
2338
|
+
type CspellSpellchecker = []|[{
|
|
2339
|
+
|
|
2340
|
+
autoFix: boolean
|
|
2341
|
+
|
|
2342
|
+
checkComments?: boolean
|
|
2343
|
+
|
|
2344
|
+
checkIdentifiers?: boolean
|
|
2345
|
+
|
|
2346
|
+
checkJSXText?: boolean
|
|
2347
|
+
|
|
2348
|
+
checkScope?: [string, boolean][]
|
|
2349
|
+
|
|
2350
|
+
checkStringTemplates?: boolean
|
|
2351
|
+
|
|
2352
|
+
checkStrings?: boolean
|
|
2353
|
+
|
|
2354
|
+
configFile?: string
|
|
2355
|
+
|
|
2356
|
+
cspell?: {
|
|
2357
|
+
|
|
2358
|
+
allowCompoundWords?: boolean
|
|
2359
|
+
|
|
2360
|
+
dictionaries?: (string | string)[]
|
|
2361
|
+
dictionaryDefinitions?: {
|
|
2362
|
+
|
|
2363
|
+
description?: string
|
|
2364
|
+
|
|
2365
|
+
name: string
|
|
2366
|
+
|
|
2367
|
+
noSuggest?: boolean
|
|
2368
|
+
|
|
2369
|
+
path: string
|
|
2370
|
+
|
|
2371
|
+
repMap?: [string, string][]
|
|
2372
|
+
|
|
2373
|
+
type?: ("S" | "W" | "C" | "T")
|
|
2374
|
+
|
|
2375
|
+
useCompounds?: boolean
|
|
2376
|
+
}[]
|
|
2377
|
+
|
|
2378
|
+
enabled?: boolean
|
|
2379
|
+
|
|
2380
|
+
flagWords?: string[]
|
|
2381
|
+
|
|
2382
|
+
ignoreRegExpList?: (string | string | ("Base64" | "Base64MultiLine" | "Base64SingleLine" | "CStyleComment" | "CStyleHexValue" | "CSSHexValue" | "CommitHash" | "CommitHashLink" | "Email" | "EscapeCharacters" | "HexValues" | "href" | "PhpHereDoc" | "PublicKey" | "RsaCert" | "SshRsa" | "SHA" | "HashStrings" | "SpellCheckerDisable" | "SpellCheckerDisableBlock" | "SpellCheckerDisableLine" | "SpellCheckerDisableNext" | "SpellCheckerIgnoreInDocSetting" | "string" | "UnicodeRef" | "Urls" | "UUID" | "Everything"))[]
|
|
2383
|
+
|
|
2384
|
+
ignoreWords?: string[]
|
|
2385
|
+
|
|
2386
|
+
import?: (string | string[])
|
|
2387
|
+
|
|
2388
|
+
includeRegExpList?: (string | string | ("Base64" | "Base64MultiLine" | "Base64SingleLine" | "CStyleComment" | "CStyleHexValue" | "CSSHexValue" | "CommitHash" | "CommitHashLink" | "Email" | "EscapeCharacters" | "HexValues" | "href" | "PhpHereDoc" | "PublicKey" | "RsaCert" | "SshRsa" | "SHA" | "HashStrings" | "SpellCheckerDisable" | "SpellCheckerDisableBlock" | "SpellCheckerDisableLine" | "SpellCheckerDisableNext" | "SpellCheckerIgnoreInDocSetting" | "string" | "UnicodeRef" | "Urls" | "UUID" | "Everything"))[]
|
|
2389
|
+
|
|
2390
|
+
language?: string
|
|
2391
|
+
|
|
2392
|
+
words?: string[]
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
cspellOptionsRoot?: (string | string)
|
|
2396
|
+
|
|
2397
|
+
customWordListFile?: (string | {
|
|
2398
|
+
|
|
2399
|
+
path: string
|
|
2400
|
+
})
|
|
2401
|
+
|
|
2402
|
+
debugMode?: boolean
|
|
2403
|
+
|
|
2404
|
+
generateSuggestions: boolean
|
|
2405
|
+
|
|
2406
|
+
ignoreImportProperties?: boolean
|
|
2407
|
+
|
|
2408
|
+
ignoreImports?: boolean
|
|
2409
|
+
|
|
2410
|
+
numSuggestions: number
|
|
2411
|
+
}]
|
|
2333
2412
|
// ----- @nx/dependency-checks -----
|
|
2334
2413
|
type NxDependencyChecks = []|[{
|
|
2335
2414
|
buildTargets?: string[]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/eslint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
|
|
6
6
|
"repository": {
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
+
"@cspell/eslint-plugin": "8.13.1",
|
|
69
70
|
"@graphql-eslint/eslint-plugin": "3.20.1",
|
|
70
71
|
"@next/eslint-plugin-next": "14.2.4",
|
|
71
72
|
"eslint-plugin-es-x": "7.6.0",
|