@isentinel/eslint-config 6.0.0-beta.32 → 6.0.0-beta.33
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/cli.mjs +3 -3
- package/dist/index.d.mts +58 -23
- package/dist/index.mjs +4365 -1162
- package/dist/lint-cli.mjs +904 -159
- package/dist/oxlint.d.mts +323 -100
- package/dist/oxlint.mjs +4191 -962
- package/package.json +10 -10
package/dist/cli.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import path from "node:path";
|
|
|
9
9
|
import { existsSync, readFileSync } from "fs";
|
|
10
10
|
import { execSync } from "node:child_process";
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "6.0.0-beta.
|
|
12
|
+
var version = "6.0.0-beta.33";
|
|
13
13
|
var package_default = {
|
|
14
14
|
name: "@isentinel/eslint-config",
|
|
15
15
|
version,
|
|
@@ -62,9 +62,9 @@ var package_default = {
|
|
|
62
62
|
"build:inspector": "pnpm build && pnpm dlx @eslint/config-inspector build --config eslint-inspector.config.ts --out-dir ./.eslint-config-inspector",
|
|
63
63
|
"check:extensions": "node scripts/check-package-extensions.ts && node scripts/gen-package-extensions.ts --check",
|
|
64
64
|
"check:published": "node scripts/check-published-extensions.ts",
|
|
65
|
-
"check:type-aware": "node scripts/
|
|
65
|
+
"check:type-aware": "node scripts/type-aware-gen.ts --check",
|
|
66
66
|
"dev": "npx @eslint/config-inspector --config eslint-inspector.config.ts",
|
|
67
|
-
"gen": "node scripts/typegen.ts && node scripts/typegen-oxlint.ts && node scripts/typegen-defaults.ts && node scripts/typegen-defaults-oxlint.ts && node scripts/versiongen.ts && node scripts/
|
|
67
|
+
"gen": "node scripts/typegen.ts && node scripts/typegen-oxlint.ts && node scripts/typegen-defaults.ts && node scripts/typegen-defaults-oxlint.ts && node scripts/versiongen.ts && node scripts/stylistic-gen.ts && node scripts/type-aware-gen.ts && node scripts/gen-package-extensions.ts",
|
|
68
68
|
"postgen": "echo 'Generation complete!'",
|
|
69
69
|
"lint": "isentinel-lint",
|
|
70
70
|
"oxlint": "oxlint",
|
package/dist/index.d.mts
CHANGED
|
@@ -2299,7 +2299,9 @@ interface MainRuleDefaults {
|
|
|
2299
2299
|
"*": "error";
|
|
2300
2300
|
};
|
|
2301
2301
|
"small-rules/require-async-suffix": {
|
|
2302
|
-
"*": "error"
|
|
2302
|
+
"*": ["error", {
|
|
2303
|
+
"except": ["main"];
|
|
2304
|
+
}];
|
|
2303
2305
|
};
|
|
2304
2306
|
"small-rules/strict-component-boundaries": {
|
|
2305
2307
|
"*": "error";
|
|
@@ -7081,107 +7083,107 @@ interface RuleOptions {
|
|
|
7081
7083
|
'eslint-plugin/unique-test-case-names'?: Linter.RuleEntry<[]>;
|
|
7082
7084
|
/**
|
|
7083
7085
|
* Enforce arrow function return style based on line length
|
|
7084
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7086
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/arrow-return-style/documentation.md
|
|
7085
7087
|
*/
|
|
7086
7088
|
'flawless/arrow-return-style'?: Linter.RuleEntry<FlawlessArrowReturnStyle>;
|
|
7087
7089
|
/**
|
|
7088
7090
|
* Disallow shorthand boolean JSX attributes
|
|
7089
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7091
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/jsx-shorthand-boolean/documentation.md
|
|
7090
7092
|
*/
|
|
7091
7093
|
'flawless/jsx-shorthand-boolean'?: Linter.RuleEntry<[]>;
|
|
7092
7094
|
/**
|
|
7093
7095
|
* Enforce a consistent fragment form: the shorthand `<>...</>` or a named fragment
|
|
7094
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7096
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/jsx-shorthand-fragment/documentation.md
|
|
7095
7097
|
*/
|
|
7096
7098
|
'flawless/jsx-shorthand-fragment'?: Linter.RuleEntry<FlawlessJsxShorthandFragment>;
|
|
7097
7099
|
/**
|
|
7098
7100
|
* Enforce a maximum number of lines of code in a function
|
|
7099
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7101
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/max-lines-per-function/documentation.md
|
|
7100
7102
|
*/
|
|
7101
7103
|
'flawless/max-lines-per-function'?: Linter.RuleEntry<FlawlessMaxLinesPerFunction>;
|
|
7102
7104
|
/**
|
|
7103
7105
|
* Enforce naming conventions for everything across a codebase
|
|
7104
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7106
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/naming-convention/documentation.md
|
|
7105
7107
|
*/
|
|
7106
7108
|
'flawless/naming-convention'?: Linter.RuleEntry<FlawlessNamingConvention>;
|
|
7107
7109
|
/**
|
|
7108
7110
|
* Disallow conditional logic in tests
|
|
7109
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7111
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/no-conditional-in-test/documentation.md
|
|
7110
7112
|
*/
|
|
7111
7113
|
'flawless/no-conditional-in-test'?: Linter.RuleEntry<FlawlessNoConditionalInTest>;
|
|
7112
7114
|
/**
|
|
7113
7115
|
* Disallow anonymous arrow functions as export default declarations
|
|
7114
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7116
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/no-export-default-arrow/documentation.md
|
|
7115
7117
|
*/
|
|
7116
7118
|
'flawless/no-export-default-arrow'?: Linter.RuleEntry<[]>;
|
|
7117
7119
|
/**
|
|
7118
7120
|
* Disallow exact equality checks involving floating-point-sensitive values
|
|
7119
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7121
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/no-floating-point-equality/documentation.md
|
|
7120
7122
|
*/
|
|
7121
7123
|
'flawless/no-floating-point-equality'?: Linter.RuleEntry<[]>;
|
|
7122
7124
|
/**
|
|
7123
7125
|
* Disallow tsconfig options that redundantly re-set a value already provided by an extended config
|
|
7124
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7126
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/no-redundant-tsconfig-options/documentation.md
|
|
7125
7127
|
*/
|
|
7126
7128
|
'flawless/no-redundant-tsconfig-options'?: Linter.RuleEntry<[]>;
|
|
7127
7129
|
/**
|
|
7128
7130
|
* Disallow unnecessary usage of 'useCallback'
|
|
7129
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7131
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/no-unnecessary-use-callback/documentation.md
|
|
7130
7132
|
*/
|
|
7131
7133
|
'flawless/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
|
|
7132
7134
|
/**
|
|
7133
7135
|
* Disallow unnecessary usage of 'useMemo'
|
|
7134
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7136
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/no-unnecessary-use-memo/documentation.md
|
|
7135
7137
|
*/
|
|
7136
7138
|
'flawless/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
|
|
7137
7139
|
/**
|
|
7138
7140
|
* Enforce a blank line after `expect.assertions` and `expect.hasAssertions`
|
|
7139
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7141
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/padding-after-expect-assertions/documentation.md
|
|
7140
7142
|
*/
|
|
7141
7143
|
'flawless/padding-after-expect-assertions'?: Linter.RuleEntry<[]>;
|
|
7142
7144
|
/**
|
|
7143
7145
|
* Enforce destructuring assignment for component props
|
|
7144
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7146
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/prefer-destructuring-assignment/documentation.md
|
|
7145
7147
|
*/
|
|
7146
7148
|
'flawless/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
|
|
7147
7149
|
/**
|
|
7148
7150
|
* Prefer having the last statement in a test be an assertion
|
|
7149
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7151
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/prefer-ending-with-an-expect/documentation.md
|
|
7150
7152
|
*/
|
|
7151
7153
|
'flawless/prefer-ending-with-an-expect'?: Linter.RuleEntry<FlawlessPreferEndingWithAnExpect>;
|
|
7152
7154
|
/**
|
|
7153
7155
|
* Prefer `expect.assertions(<count>)` over `expect.hasAssertions()`
|
|
7154
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7156
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/prefer-expect-assertions-count/documentation.md
|
|
7155
7157
|
*/
|
|
7156
7158
|
'flawless/prefer-expect-assertions-count'?: Linter.RuleEntry<[]>;
|
|
7157
7159
|
/**
|
|
7158
7160
|
* Enforce destructuring parameters in the function signature
|
|
7159
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7161
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/prefer-parameter-destructuring/documentation.md
|
|
7160
7162
|
*/
|
|
7161
7163
|
'flawless/prefer-parameter-destructuring'?: Linter.RuleEntry<FlawlessPreferParameterDestructuring>;
|
|
7162
7164
|
/**
|
|
7163
7165
|
* Enforce that function component props are read-only
|
|
7164
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7166
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/prefer-read-only-props/documentation.md
|
|
7165
7167
|
*/
|
|
7166
7168
|
'flawless/prefer-read-only-props'?: Linter.RuleEntry<FlawlessPreferReadOnlyProps>;
|
|
7167
7169
|
/**
|
|
7168
7170
|
* Disallow impure calls such as `math.random` or `os.clock` during render
|
|
7169
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7171
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/purity/documentation.md
|
|
7170
7172
|
*/
|
|
7171
7173
|
'flawless/purity'?: Linter.RuleEntry<FlawlessPurity>;
|
|
7172
7174
|
/**
|
|
7173
7175
|
* Prefer named imports for React runtime values and the React namespace for React types
|
|
7174
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7176
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/react-namespace/documentation.md
|
|
7175
7177
|
*/
|
|
7176
7178
|
'flawless/react-namespace'?: Linter.RuleEntry<[]>;
|
|
7177
7179
|
/**
|
|
7178
7180
|
* Enforce a configured sort order for TOML keys and tables
|
|
7179
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7181
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/toml-sort-keys/documentation.md
|
|
7180
7182
|
*/
|
|
7181
7183
|
'flawless/toml-sort-keys'?: Linter.RuleEntry<FlawlessTomlSortKeys>;
|
|
7182
7184
|
/**
|
|
7183
7185
|
* Enforce blank lines around top-level YAML block collection keys
|
|
7184
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.
|
|
7186
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.5.1/src/rules/yaml-block-key-blank-lines/documentation.md
|
|
7185
7187
|
*/
|
|
7186
7188
|
'flawless/yaml-block-key-blank-lines'?: Linter.RuleEntry<[]>;
|
|
7187
7189
|
/**
|
|
@@ -7348,6 +7350,31 @@ interface RuleOptions {
|
|
|
7348
7350
|
* @see https://eslint.org/docs/latest/rules/init-declarations
|
|
7349
7351
|
*/
|
|
7350
7352
|
'init-declarations'?: Linter.RuleEntry<InitDeclarations>;
|
|
7353
|
+
/**
|
|
7354
|
+
* Suggest using `toBeArray()`
|
|
7355
|
+
* @see https://github.com/jest-community/eslint-plugin-jest-extended/blob/v3.0.1/docs/rules/prefer-to-be-array.md
|
|
7356
|
+
*/
|
|
7357
|
+
'jest-extended/prefer-to-be-array'?: Linter.RuleEntry<[]>;
|
|
7358
|
+
/**
|
|
7359
|
+
* Suggest using `toBeFalse()`
|
|
7360
|
+
* @see https://github.com/jest-community/eslint-plugin-jest-extended/blob/v3.0.1/docs/rules/prefer-to-be-false.md
|
|
7361
|
+
*/
|
|
7362
|
+
'jest-extended/prefer-to-be-false'?: Linter.RuleEntry<[]>;
|
|
7363
|
+
/**
|
|
7364
|
+
* Suggest using `toBeObject()`
|
|
7365
|
+
* @see https://github.com/jest-community/eslint-plugin-jest-extended/blob/v3.0.1/docs/rules/prefer-to-be-object.md
|
|
7366
|
+
*/
|
|
7367
|
+
'jest-extended/prefer-to-be-object'?: Linter.RuleEntry<[]>;
|
|
7368
|
+
/**
|
|
7369
|
+
* Suggest using `toBeTrue()`
|
|
7370
|
+
* @see https://github.com/jest-community/eslint-plugin-jest-extended/blob/v3.0.1/docs/rules/prefer-to-be-true.md
|
|
7371
|
+
*/
|
|
7372
|
+
'jest-extended/prefer-to-be-true'?: Linter.RuleEntry<[]>;
|
|
7373
|
+
/**
|
|
7374
|
+
* Suggest using `toHaveBeenCalledOnce()`
|
|
7375
|
+
* @see https://github.com/jest-community/eslint-plugin-jest-extended/blob/v3.0.1/docs/rules/prefer-to-have-been-called-once.md
|
|
7376
|
+
*/
|
|
7377
|
+
'jest-extended/prefer-to-have-been-called-once'?: Linter.RuleEntry<[]>;
|
|
7351
7378
|
/**
|
|
7352
7379
|
* Enforce `test` and `it` usage conventions
|
|
7353
7380
|
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/consistent-test-it.md
|
|
@@ -27115,6 +27142,15 @@ interface OptionsE18e extends OptionsOverrides {
|
|
|
27115
27142
|
* @default options.isInEditor
|
|
27116
27143
|
*/
|
|
27117
27144
|
moduleReplacements?: boolean;
|
|
27145
|
+
/**
|
|
27146
|
+
* The Node major version to target when deciding which rules the runtime
|
|
27147
|
+
* supports. Defaults to the running Node version, which makes the resulting
|
|
27148
|
+
* config host-dependent; pass an explicit value where that matters, such as
|
|
27149
|
+
* from a code generator whose output is committed.
|
|
27150
|
+
*
|
|
27151
|
+
* @default the running Node major version
|
|
27152
|
+
*/
|
|
27153
|
+
nodeMajor?: number;
|
|
27118
27154
|
/**
|
|
27119
27155
|
* Include performance improvements rules.
|
|
27120
27156
|
*
|
|
@@ -27631,7 +27667,6 @@ declare function disables({ root, workspaceRoot }: {
|
|
|
27631
27667
|
//#region src/eslint/configs/e18e.d.ts
|
|
27632
27668
|
declare function e18e({ files, ignores, isInEditor, modernization, type, moduleReplacements, nodeMajor, overrides, performanceImprovements }?: OptionsE18e & OptionsFiles & OptionsIsInEditor & OptionsProjectType & {
|
|
27633
27669
|
ignores?: Array<string>;
|
|
27634
|
-
nodeMajor?: number;
|
|
27635
27670
|
}): Promise<Array<TypedFlatConfigItem>>;
|
|
27636
27671
|
//#endregion
|
|
27637
27672
|
//#region src/eslint/configs/eslint-plugin.d.ts
|