@storm-software/eslint 0.169.88 → 0.169.90
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/dist/preset.js +16 -10
- package/dist/types.d.ts +39 -1
- package/package.json +2 -2
package/dist/preset.js
CHANGED
|
@@ -7208,18 +7208,24 @@ async function pnpm(options = {}) {
|
|
|
7208
7208
|
|
|
7209
7209
|
// src/configs/prettier.ts
|
|
7210
7210
|
init_esm_shims();
|
|
7211
|
-
import
|
|
7211
|
+
import defu6 from "defu";
|
|
7212
|
+
import config2 from "eslint-plugin-prettier/recommended";
|
|
7212
7213
|
async function prettier() {
|
|
7213
7214
|
return [
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7215
|
+
defu6(
|
|
7216
|
+
{
|
|
7217
|
+
name: "storm/prettier",
|
|
7218
|
+
plugins: {
|
|
7219
|
+
prettier: default8
|
|
7220
|
+
},
|
|
7221
|
+
rules: {
|
|
7222
|
+
"prettier/prettier": "error",
|
|
7223
|
+
"arrow-body-style": "off",
|
|
7224
|
+
"prefer-arrow-callback": "off"
|
|
7225
|
+
}
|
|
7226
|
+
},
|
|
7227
|
+
config2
|
|
7228
|
+
)
|
|
7223
7229
|
];
|
|
7224
7230
|
}
|
|
7225
7231
|
|
package/dist/types.d.ts
CHANGED
|
@@ -3933,6 +3933,10 @@ Backward pagination arguments
|
|
|
3933
3933
|
* @see https://eslint.org/docs/latest/rules/preserve-caught-error
|
|
3934
3934
|
*/
|
|
3935
3935
|
'preserve-caught-error'?: Linter.RuleEntry<PreserveCaughtError>
|
|
3936
|
+
/**
|
|
3937
|
+
* @see https://github.com/prettier/eslint-plugin-prettier#options
|
|
3938
|
+
*/
|
|
3939
|
+
'prettier/prettier'?: Linter.RuleEntry<PrettierPrettier>
|
|
3936
3940
|
/**
|
|
3937
3941
|
* Require quotes around object literal property names
|
|
3938
3942
|
* @see https://eslint.org/docs/latest/rules/quote-props
|
|
@@ -14354,6 +14358,40 @@ type PreserveCaughtError = []|[{
|
|
|
14354
14358
|
|
|
14355
14359
|
requireCatchParameter?: boolean
|
|
14356
14360
|
}]
|
|
14361
|
+
// ----- prettier/prettier -----
|
|
14362
|
+
type PrettierPrettier = []|[{
|
|
14363
|
+
[k: string]: unknown | undefined
|
|
14364
|
+
}]|[{
|
|
14365
|
+
[k: string]: unknown | undefined
|
|
14366
|
+
}, {
|
|
14367
|
+
usePrettierrc?: boolean
|
|
14368
|
+
fileInfoOptions?: {
|
|
14369
|
+
[k: string]: unknown | undefined
|
|
14370
|
+
}
|
|
14371
|
+
}]|[{
|
|
14372
|
+
[k: string]: unknown | undefined
|
|
14373
|
+
}, {
|
|
14374
|
+
usePrettierrc?: boolean
|
|
14375
|
+
fileInfoOptions?: {
|
|
14376
|
+
[k: string]: unknown | undefined
|
|
14377
|
+
}
|
|
14378
|
+
}, {
|
|
14379
|
+
[k: string]: unknown | undefined
|
|
14380
|
+
}]|[{
|
|
14381
|
+
[k: string]: unknown | undefined
|
|
14382
|
+
}, {
|
|
14383
|
+
usePrettierrc?: boolean
|
|
14384
|
+
fileInfoOptions?: {
|
|
14385
|
+
[k: string]: unknown | undefined
|
|
14386
|
+
}
|
|
14387
|
+
}, {
|
|
14388
|
+
[k: string]: unknown | undefined
|
|
14389
|
+
}, {
|
|
14390
|
+
usePrettierrc?: boolean
|
|
14391
|
+
fileInfoOptions?: {
|
|
14392
|
+
[k: string]: unknown | undefined
|
|
14393
|
+
}
|
|
14394
|
+
}]
|
|
14357
14395
|
// ----- quote-props -----
|
|
14358
14396
|
type QuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
14359
14397
|
keywords?: boolean
|
|
@@ -17980,7 +18018,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
17980
18018
|
onlyEquality?: boolean
|
|
17981
18019
|
}]
|
|
17982
18020
|
// Names of all the configs
|
|
17983
|
-
type ConfigNames = 'storm/cspell/rules' | 'storm/astro/setup' | 'storm/astro/rules' | 'storm/formatter/setup' | 'storm/imports/rules' | 'storm/graphql/setup' | 'storm/graphql/rules' | 'storm/graphql/relay' | 'storm/javascript/setup' | 'storm/javascript/banner' | 'storm/javascript/rules' | 'storm/jsx/rules' | 'storm/jsdoc/rules' | 'storm/jsonc/setup' | 'storm/jsonc/rules' | 'storm/markdown/setup' | 'storm/markdown/processor' | 'storm/markdown/parser' | 'storm/mdx/setup' | 'storm/node/rules' | 'storm/nx/setup' | 'storm/nx/schema' | 'storm/nx/dependency-check' | 'storm/nx/module-boundaries' | 'storm/next/rules' | '
|
|
18021
|
+
type ConfigNames = 'storm/cspell/rules' | 'storm/astro/setup' | 'storm/astro/rules' | 'storm/formatter/setup' | 'storm/imports/rules' | 'storm/graphql/setup' | 'storm/graphql/rules' | 'storm/graphql/relay' | 'storm/javascript/setup' | 'storm/javascript/banner' | 'storm/javascript/rules' | 'storm/jsx/rules' | 'storm/jsdoc/rules' | 'storm/jsonc/setup' | 'storm/jsonc/rules' | 'storm/markdown/setup' | 'storm/markdown/processor' | 'storm/markdown/parser' | 'storm/mdx/setup' | 'storm/node/rules' | 'storm/nx/setup' | 'storm/nx/schema' | 'storm/nx/dependency-check' | 'storm/nx/module-boundaries' | 'storm/next/rules' | 'storm/prettier' | 'storm/perfectionist/rules' | 'storm/pnpm/setup' | 'storm/pnpm/package-json' | 'storm/pnpm/pnpm-workspace-yaml' | 'storm/react/setup' | 'storm/react/rules' | 'storm/react-native/rules' | 'storm/sort/package-json' | 'storm/stylistic/rules' | 'storm/secrets/rules' | 'storm/storybook/setup' | 'storm/storybook/rules' | 'storm/storybook/main' | 'storm/test/setup' | 'storm/test/rules' | 'storm/tsdoc/rules' | 'storm/toml/setup' | 'storm/toml/rules' | 'storm/typescript/setup' | 'storm/typescript/parser' | 'storm/typescript/type-aware-parser' | 'storm/typescript/rules' | 'storm/typescript/rules-type-aware' | 'storm/regexp/rules' | 'storm/unicorn/rules' | 'storm/unocss' | 'storm/yaml/setup' | 'storm/yaml/rules' | 'storm/zod/rules'
|
|
17984
18022
|
|
|
17985
18023
|
/**
|
|
17986
18024
|
* Vendor types from Prettier so we don't rely on the dependency.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/eslint",
|
|
3
|
-
"version": "0.169.
|
|
3
|
+
"version": "0.169.90",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing the base ESLint configuration used by Storm Software across many projects.",
|
|
6
6
|
"repository": {
|
|
@@ -241,5 +241,5 @@
|
|
|
241
241
|
},
|
|
242
242
|
"publishConfig": { "access": "public" },
|
|
243
243
|
"sideEffects": false,
|
|
244
|
-
"gitHead": "
|
|
244
|
+
"gitHead": "cc7301f689667de21c36e1b937613d402a8355dc"
|
|
245
245
|
}
|