@isentinel/eslint-config 6.0.0-beta.19 → 6.0.0-beta.20
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 +1 -1
- package/dist/index.d.mts +51 -31
- package/dist/index.mjs +27 -8
- package/dist/lint-cli.mjs +1 -1
- package/dist/oxlint.d.mts +27 -19
- package/dist/oxlint.mjs +1 -0
- package/package.json +3 -3
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.20";
|
|
13
13
|
var package_default = {
|
|
14
14
|
name: "@isentinel/eslint-config",
|
|
15
15
|
version,
|
package/dist/index.d.mts
CHANGED
|
@@ -4517,17 +4517,21 @@ interface ReactRuleDefaults {
|
|
|
4517
4517
|
}, {
|
|
4518
4518
|
"format": ["UPPER_CASE"];
|
|
4519
4519
|
"leadingUnderscore": "forbid";
|
|
4520
|
-
"modifiers": ["global"];
|
|
4520
|
+
"modifiers": ["const", "global"];
|
|
4521
4521
|
"selector": "variable";
|
|
4522
4522
|
"trailingUnderscore": "forbid";
|
|
4523
4523
|
"types": ["boolean", "number", "string"];
|
|
4524
|
+
}, {
|
|
4525
|
+
"format": ["UPPER_CASE"];
|
|
4526
|
+
"modifiers": ["constAsserted", "global"];
|
|
4527
|
+
"selector": "variable";
|
|
4524
4528
|
}, {
|
|
4525
4529
|
"filter": {
|
|
4526
4530
|
"match": false;
|
|
4527
4531
|
"regex": "^success$";
|
|
4528
4532
|
};
|
|
4529
4533
|
"format": ["PascalCase"];
|
|
4530
|
-
"prefix": ["is", "should", "has", "can", "did", "will"];
|
|
4534
|
+
"prefix": ["is", "should", "has", "can", "did", "will", "was", "are"];
|
|
4531
4535
|
"selector": "variable";
|
|
4532
4536
|
"types": ["boolean"];
|
|
4533
4537
|
}, {
|
|
@@ -4536,8 +4540,8 @@ interface ReactRuleDefaults {
|
|
|
4536
4540
|
"regex": "^success$";
|
|
4537
4541
|
};
|
|
4538
4542
|
"format": ["UPPER_CASE"];
|
|
4539
|
-
"modifiers": ["global"];
|
|
4540
|
-
"prefix": ["IS_", "SHOULD_", "HAS_", "CAN_", "DID_", "WILL_"];
|
|
4543
|
+
"modifiers": ["const", "global"];
|
|
4544
|
+
"prefix": ["IS_", "SHOULD_", "HAS_", "CAN_", "DID_", "WILL_", "WAS_", "ARE_"];
|
|
4541
4545
|
"selector": "variable";
|
|
4542
4546
|
"types": ["boolean"];
|
|
4543
4547
|
}, {
|
|
@@ -4614,17 +4618,21 @@ interface ReactRuleDefaults {
|
|
|
4614
4618
|
}, {
|
|
4615
4619
|
"format": ["UPPER_CASE"];
|
|
4616
4620
|
"leadingUnderscore": "forbid";
|
|
4617
|
-
"modifiers": ["global"];
|
|
4621
|
+
"modifiers": ["const", "global"];
|
|
4618
4622
|
"selector": "variable";
|
|
4619
4623
|
"trailingUnderscore": "forbid";
|
|
4620
4624
|
"types": ["boolean", "number", "string"];
|
|
4625
|
+
}, {
|
|
4626
|
+
"format": ["UPPER_CASE"];
|
|
4627
|
+
"modifiers": ["constAsserted", "global"];
|
|
4628
|
+
"selector": "variable";
|
|
4621
4629
|
}, {
|
|
4622
4630
|
"filter": {
|
|
4623
4631
|
"match": false;
|
|
4624
4632
|
"regex": "^success$";
|
|
4625
4633
|
};
|
|
4626
4634
|
"format": ["PascalCase"];
|
|
4627
|
-
"prefix": ["is", "should", "has", "can", "did", "will"];
|
|
4635
|
+
"prefix": ["is", "should", "has", "can", "did", "will", "was", "are"];
|
|
4628
4636
|
"selector": "variable";
|
|
4629
4637
|
"types": ["boolean"];
|
|
4630
4638
|
}, {
|
|
@@ -4633,8 +4641,8 @@ interface ReactRuleDefaults {
|
|
|
4633
4641
|
"regex": "^success$";
|
|
4634
4642
|
};
|
|
4635
4643
|
"format": ["UPPER_CASE"];
|
|
4636
|
-
"modifiers": ["global"];
|
|
4637
|
-
"prefix": ["IS_", "SHOULD_", "HAS_", "CAN_", "DID_", "WILL_"];
|
|
4644
|
+
"modifiers": ["const", "global"];
|
|
4645
|
+
"prefix": ["IS_", "SHOULD_", "HAS_", "CAN_", "DID_", "WILL_", "WAS_", "ARE_"];
|
|
4638
4646
|
"selector": "variable";
|
|
4639
4647
|
"types": ["boolean"];
|
|
4640
4648
|
}, {
|
|
@@ -4683,6 +4691,9 @@ interface ReactRuleDefaults {
|
|
|
4683
4691
|
"flawless/purity": {
|
|
4684
4692
|
"*": ["error", {}];
|
|
4685
4693
|
};
|
|
4694
|
+
"flawless/react-namespace": {
|
|
4695
|
+
"*": "error";
|
|
4696
|
+
};
|
|
4686
4697
|
"one-var": {
|
|
4687
4698
|
"*": ["off", {
|
|
4688
4699
|
"initialized": "never";
|
|
@@ -5084,17 +5095,21 @@ interface SourceFeatureRuleDefaults {
|
|
|
5084
5095
|
}, {
|
|
5085
5096
|
"format": ["UPPER_CASE"];
|
|
5086
5097
|
"leadingUnderscore": "forbid";
|
|
5087
|
-
"modifiers": ["global"];
|
|
5098
|
+
"modifiers": ["const", "global"];
|
|
5088
5099
|
"selector": "variable";
|
|
5089
5100
|
"trailingUnderscore": "forbid";
|
|
5090
5101
|
"types": ["boolean", "number", "string"];
|
|
5102
|
+
}, {
|
|
5103
|
+
"format": ["UPPER_CASE"];
|
|
5104
|
+
"modifiers": ["constAsserted", "global"];
|
|
5105
|
+
"selector": "variable";
|
|
5091
5106
|
}, {
|
|
5092
5107
|
"filter": {
|
|
5093
5108
|
"match": false;
|
|
5094
5109
|
"regex": "^success$";
|
|
5095
5110
|
};
|
|
5096
5111
|
"format": ["PascalCase"];
|
|
5097
|
-
"prefix": ["is", "should", "has", "can", "did", "will"];
|
|
5112
|
+
"prefix": ["is", "should", "has", "can", "did", "will", "was", "are"];
|
|
5098
5113
|
"selector": "variable";
|
|
5099
5114
|
"types": ["boolean"];
|
|
5100
5115
|
}, {
|
|
@@ -5103,8 +5118,8 @@ interface SourceFeatureRuleDefaults {
|
|
|
5103
5118
|
"regex": "^success$";
|
|
5104
5119
|
};
|
|
5105
5120
|
"format": ["UPPER_CASE"];
|
|
5106
|
-
"modifiers": ["global"];
|
|
5107
|
-
"prefix": ["IS_", "SHOULD_", "HAS_", "CAN_", "DID_", "WILL_"];
|
|
5121
|
+
"modifiers": ["const", "global"];
|
|
5122
|
+
"prefix": ["IS_", "SHOULD_", "HAS_", "CAN_", "DID_", "WILL_", "WAS_", "ARE_"];
|
|
5108
5123
|
"selector": "variable";
|
|
5109
5124
|
"types": ["boolean"];
|
|
5110
5125
|
}, {
|
|
@@ -7002,82 +7017,87 @@ interface RuleOptions {
|
|
|
7002
7017
|
'eslint-plugin/unique-test-case-names'?: Linter.RuleEntry<[]>;
|
|
7003
7018
|
/**
|
|
7004
7019
|
* Enforce arrow function return style based on line length
|
|
7005
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7020
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/arrow-return-style/documentation.md
|
|
7006
7021
|
*/
|
|
7007
7022
|
'flawless/arrow-return-style'?: Linter.RuleEntry<FlawlessArrowReturnStyle>;
|
|
7008
7023
|
/**
|
|
7009
7024
|
* Disallow shorthand boolean JSX attributes
|
|
7010
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7025
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/jsx-shorthand-boolean/documentation.md
|
|
7011
7026
|
*/
|
|
7012
7027
|
'flawless/jsx-shorthand-boolean'?: Linter.RuleEntry<[]>;
|
|
7013
7028
|
/**
|
|
7014
7029
|
* Enforce a consistent fragment form: the shorthand `<>...</>` or a named fragment
|
|
7015
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7030
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/jsx-shorthand-fragment/documentation.md
|
|
7016
7031
|
*/
|
|
7017
7032
|
'flawless/jsx-shorthand-fragment'?: Linter.RuleEntry<FlawlessJsxShorthandFragment>;
|
|
7018
7033
|
/**
|
|
7019
7034
|
* Enforce a maximum number of lines of code in a function
|
|
7020
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7035
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/max-lines-per-function/documentation.md
|
|
7021
7036
|
*/
|
|
7022
7037
|
'flawless/max-lines-per-function'?: Linter.RuleEntry<FlawlessMaxLinesPerFunction>;
|
|
7023
7038
|
/**
|
|
7024
7039
|
* Enforce naming conventions for everything across a codebase
|
|
7025
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7040
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/naming-convention/documentation.md
|
|
7026
7041
|
*/
|
|
7027
7042
|
'flawless/naming-convention'?: Linter.RuleEntry<FlawlessNamingConvention>;
|
|
7028
7043
|
/**
|
|
7029
7044
|
* Disallow anonymous arrow functions as export default declarations
|
|
7030
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7045
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/no-export-default-arrow/documentation.md
|
|
7031
7046
|
*/
|
|
7032
7047
|
'flawless/no-export-default-arrow'?: Linter.RuleEntry<[]>;
|
|
7033
7048
|
/**
|
|
7034
7049
|
* Disallow tsconfig options that redundantly re-set a value already provided by an extended config
|
|
7035
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7050
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/no-redundant-tsconfig-options/documentation.md
|
|
7036
7051
|
*/
|
|
7037
7052
|
'flawless/no-redundant-tsconfig-options'?: Linter.RuleEntry<[]>;
|
|
7038
7053
|
/**
|
|
7039
7054
|
* Disallow unnecessary usage of 'useCallback'
|
|
7040
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7055
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/no-unnecessary-use-callback/documentation.md
|
|
7041
7056
|
*/
|
|
7042
7057
|
'flawless/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
|
|
7043
7058
|
/**
|
|
7044
7059
|
* Disallow unnecessary usage of 'useMemo'
|
|
7045
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7060
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/no-unnecessary-use-memo/documentation.md
|
|
7046
7061
|
*/
|
|
7047
7062
|
'flawless/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
|
|
7048
7063
|
/**
|
|
7049
7064
|
* Enforce a blank line after `expect.assertions` and `expect.hasAssertions`
|
|
7050
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7065
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/padding-after-expect-assertions/documentation.md
|
|
7051
7066
|
*/
|
|
7052
7067
|
'flawless/padding-after-expect-assertions'?: Linter.RuleEntry<[]>;
|
|
7053
7068
|
/**
|
|
7054
7069
|
* Enforce destructuring assignment for component props
|
|
7055
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7070
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/prefer-destructuring-assignment/documentation.md
|
|
7056
7071
|
*/
|
|
7057
7072
|
'flawless/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
|
|
7058
7073
|
/**
|
|
7059
7074
|
* Enforce destructuring parameters in the function signature
|
|
7060
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7075
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/prefer-parameter-destructuring/documentation.md
|
|
7061
7076
|
*/
|
|
7062
7077
|
'flawless/prefer-parameter-destructuring'?: Linter.RuleEntry<FlawlessPreferParameterDestructuring>;
|
|
7063
7078
|
/**
|
|
7064
7079
|
* Enforce that function component props are read-only
|
|
7065
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7080
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/prefer-read-only-props/documentation.md
|
|
7066
7081
|
*/
|
|
7067
7082
|
'flawless/prefer-read-only-props'?: Linter.RuleEntry<FlawlessPreferReadOnlyProps>;
|
|
7068
7083
|
/**
|
|
7069
7084
|
* Disallow impure calls such as `math.random` or `os.clock` during render
|
|
7070
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7085
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/purity/documentation.md
|
|
7071
7086
|
*/
|
|
7072
7087
|
'flawless/purity'?: Linter.RuleEntry<FlawlessPurity>;
|
|
7088
|
+
/**
|
|
7089
|
+
* Prefer named imports for React runtime values and the React namespace for React types
|
|
7090
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/react-namespace/documentation.md
|
|
7091
|
+
*/
|
|
7092
|
+
'flawless/react-namespace'?: Linter.RuleEntry<[]>;
|
|
7073
7093
|
/**
|
|
7074
7094
|
* Enforce a configured sort order for TOML keys and tables
|
|
7075
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7095
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/toml-sort-keys/documentation.md
|
|
7076
7096
|
*/
|
|
7077
7097
|
'flawless/toml-sort-keys'?: Linter.RuleEntry<FlawlessTomlSortKeys>;
|
|
7078
7098
|
/**
|
|
7079
7099
|
* Enforce blank lines around top-level YAML block collection keys
|
|
7080
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
7100
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/yaml-block-key-blank-lines/documentation.md
|
|
7081
7101
|
*/
|
|
7082
7102
|
'flawless/yaml-block-key-blank-lines'?: Linter.RuleEntry<[]>;
|
|
7083
7103
|
/**
|
|
@@ -16678,7 +16698,7 @@ type FlawlessNamingConvention = ({
|
|
|
16678
16698
|
suffix?: _FlawlessNamingConvention_PrefixSuffixConfig;
|
|
16679
16699
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
16680
16700
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
16681
|
-
modifiers?: ("const" | "readonly" | "static" | "public" | "protected" | "private" | "#private" | "abstract" | "destructured" | "global" | "exported" | "unused" | "requiresQuotes" | "override" | "async" | "default" | "namespace")[];
|
|
16701
|
+
modifiers?: ("const" | "readonly" | "static" | "public" | "protected" | "private" | "#private" | "abstract" | "destructured" | "global" | "exported" | "unused" | "requiresQuotes" | "override" | "async" | "default" | "namespace" | "constAsserted")[];
|
|
16682
16702
|
selector: ("default" | "variableLike" | "memberLike" | "typeLike" | "method" | "property" | "accessor" | "variable" | "function" | "parameter" | "objectStyleEnum" | "parameterProperty" | "classicAccessor" | "enumMember" | "classMethod" | "objectLiteralMethod" | "typeMethod" | "classProperty" | "objectLiteralProperty" | "typeProperty" | "autoAccessor" | "class" | "interface" | "typeAlias" | "enum" | "typeParameter" | "import")[];
|
|
16683
16703
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
16684
16704
|
} | {
|
|
@@ -16691,7 +16711,7 @@ type FlawlessNamingConvention = ({
|
|
|
16691
16711
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
16692
16712
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
16693
16713
|
selector: "default";
|
|
16694
|
-
modifiers?: ("const" | "readonly" | "static" | "public" | "protected" | "private" | "#private" | "abstract" | "destructured" | "global" | "exported" | "unused" | "requiresQuotes" | "override" | "async" | "default" | "namespace")[];
|
|
16714
|
+
modifiers?: ("const" | "readonly" | "static" | "public" | "protected" | "private" | "#private" | "abstract" | "destructured" | "global" | "exported" | "unused" | "requiresQuotes" | "override" | "async" | "default" | "namespace" | "constAsserted")[];
|
|
16695
16715
|
} | {
|
|
16696
16716
|
custom?: _FlawlessNamingConvention_MatchRegexConfig;
|
|
16697
16717
|
failureMessage?: string;
|
|
@@ -16713,7 +16733,7 @@ type FlawlessNamingConvention = ({
|
|
|
16713
16733
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
16714
16734
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
16715
16735
|
selector: "variable";
|
|
16716
|
-
modifiers?: ("const" | "destructured" | "exported" | "global" | "unused" | "async")[];
|
|
16736
|
+
modifiers?: ("const" | "constAsserted" | "destructured" | "exported" | "global" | "unused" | "async")[];
|
|
16717
16737
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
16718
16738
|
} | {
|
|
16719
16739
|
custom?: _FlawlessNamingConvention_MatchRegexConfig;
|
package/dist/index.mjs
CHANGED
|
@@ -2383,7 +2383,7 @@ async function naming(options = {}) {
|
|
|
2383
2383
|
{
|
|
2384
2384
|
format: ["UPPER_CASE"],
|
|
2385
2385
|
leadingUnderscore: "forbid",
|
|
2386
|
-
modifiers: ["global"],
|
|
2386
|
+
modifiers: ["const", "global"],
|
|
2387
2387
|
selector: "variable",
|
|
2388
2388
|
trailingUnderscore: "forbid",
|
|
2389
2389
|
types: [
|
|
@@ -2392,6 +2392,11 @@ async function naming(options = {}) {
|
|
|
2392
2392
|
"string"
|
|
2393
2393
|
]
|
|
2394
2394
|
},
|
|
2395
|
+
{
|
|
2396
|
+
format: ["UPPER_CASE"],
|
|
2397
|
+
modifiers: ["constAsserted", "global"],
|
|
2398
|
+
selector: "variable"
|
|
2399
|
+
},
|
|
2395
2400
|
{
|
|
2396
2401
|
filter: {
|
|
2397
2402
|
match: false,
|
|
@@ -2404,7 +2409,9 @@ async function naming(options = {}) {
|
|
|
2404
2409
|
"has",
|
|
2405
2410
|
"can",
|
|
2406
2411
|
"did",
|
|
2407
|
-
"will"
|
|
2412
|
+
"will",
|
|
2413
|
+
"was",
|
|
2414
|
+
"are"
|
|
2408
2415
|
],
|
|
2409
2416
|
selector: "variable",
|
|
2410
2417
|
types: ["boolean"]
|
|
@@ -2415,14 +2422,16 @@ async function naming(options = {}) {
|
|
|
2415
2422
|
regex: "^success$"
|
|
2416
2423
|
},
|
|
2417
2424
|
format: ["UPPER_CASE"],
|
|
2418
|
-
modifiers: ["global"],
|
|
2425
|
+
modifiers: ["const", "global"],
|
|
2419
2426
|
prefix: [
|
|
2420
2427
|
"IS_",
|
|
2421
2428
|
"SHOULD_",
|
|
2422
2429
|
"HAS_",
|
|
2423
2430
|
"CAN_",
|
|
2424
2431
|
"DID_",
|
|
2425
|
-
"WILL_"
|
|
2432
|
+
"WILL_",
|
|
2433
|
+
"WAS_",
|
|
2434
|
+
"ARE_"
|
|
2426
2435
|
],
|
|
2427
2436
|
selector: "variable",
|
|
2428
2437
|
types: ["boolean"]
|
|
@@ -2559,7 +2568,7 @@ async function naming(options = {}) {
|
|
|
2559
2568
|
{
|
|
2560
2569
|
format: ["UPPER_CASE"],
|
|
2561
2570
|
leadingUnderscore: "forbid",
|
|
2562
|
-
modifiers: ["global"],
|
|
2571
|
+
modifiers: ["const", "global"],
|
|
2563
2572
|
selector: "variable",
|
|
2564
2573
|
trailingUnderscore: "forbid",
|
|
2565
2574
|
types: [
|
|
@@ -2568,6 +2577,11 @@ async function naming(options = {}) {
|
|
|
2568
2577
|
"string"
|
|
2569
2578
|
]
|
|
2570
2579
|
},
|
|
2580
|
+
{
|
|
2581
|
+
format: ["UPPER_CASE"],
|
|
2582
|
+
modifiers: ["constAsserted", "global"],
|
|
2583
|
+
selector: "variable"
|
|
2584
|
+
},
|
|
2571
2585
|
{
|
|
2572
2586
|
filter: {
|
|
2573
2587
|
match: false,
|
|
@@ -2580,7 +2594,9 @@ async function naming(options = {}) {
|
|
|
2580
2594
|
"has",
|
|
2581
2595
|
"can",
|
|
2582
2596
|
"did",
|
|
2583
|
-
"will"
|
|
2597
|
+
"will",
|
|
2598
|
+
"was",
|
|
2599
|
+
"are"
|
|
2584
2600
|
],
|
|
2585
2601
|
selector: "variable",
|
|
2586
2602
|
types: ["boolean"]
|
|
@@ -2591,14 +2607,16 @@ async function naming(options = {}) {
|
|
|
2591
2607
|
regex: "^success$"
|
|
2592
2608
|
},
|
|
2593
2609
|
format: ["UPPER_CASE"],
|
|
2594
|
-
modifiers: ["global"],
|
|
2610
|
+
modifiers: ["const", "global"],
|
|
2595
2611
|
prefix: [
|
|
2596
2612
|
"IS_",
|
|
2597
2613
|
"SHOULD_",
|
|
2598
2614
|
"HAS_",
|
|
2599
2615
|
"CAN_",
|
|
2600
2616
|
"DID_",
|
|
2601
|
-
"WILL_"
|
|
2617
|
+
"WILL_",
|
|
2618
|
+
"WAS_",
|
|
2619
|
+
"ARE_"
|
|
2602
2620
|
],
|
|
2603
2621
|
selector: "variable",
|
|
2604
2622
|
types: ["boolean"]
|
|
@@ -3482,6 +3500,7 @@ function reactRules({ filenameCase = "kebabCase", reactCompiler = true, stylisti
|
|
|
3482
3500
|
"flawless/jsx-shorthand-boolean": "warn",
|
|
3483
3501
|
"flawless/jsx-shorthand-fragment": "warn",
|
|
3484
3502
|
"flawless/prefer-destructuring-assignment": "error",
|
|
3503
|
+
"flawless/react-namespace": "error",
|
|
3485
3504
|
"one-var": "off",
|
|
3486
3505
|
"react-jsx/no-useless-fragment": "warn",
|
|
3487
3506
|
"react-naming-convention/context-name": "error",
|
package/dist/lint-cli.mjs
CHANGED
|
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
36
|
}) : target, mod));
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region package.json
|
|
39
|
-
var version = "6.0.0-beta.
|
|
39
|
+
var version = "6.0.0-beta.20";
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/lint-cli/lib/cli/types.ts
|
|
42
42
|
/**
|
package/dist/oxlint.d.mts
CHANGED
|
@@ -2771,6 +2771,9 @@ interface OxlintReactRuleDefaults {
|
|
|
2771
2771
|
"flawless/purity": {
|
|
2772
2772
|
"*": "error";
|
|
2773
2773
|
};
|
|
2774
|
+
"flawless/react-namespace": {
|
|
2775
|
+
"*": "error";
|
|
2776
|
+
};
|
|
2774
2777
|
"perfectionist/sort-interfaces": {
|
|
2775
2778
|
"*": ["error", {
|
|
2776
2779
|
"customGroups": [{
|
|
@@ -4176,82 +4179,87 @@ interface RuleOptions {
|
|
|
4176
4179
|
'eslint-plugin/unique-test-case-names'?: Linter.RuleEntry<[]>;
|
|
4177
4180
|
/**
|
|
4178
4181
|
* Enforce arrow function return style based on line length
|
|
4179
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4182
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/arrow-return-style/documentation.md
|
|
4180
4183
|
*/
|
|
4181
4184
|
'flawless/arrow-return-style'?: Linter.RuleEntry<FlawlessArrowReturnStyle>;
|
|
4182
4185
|
/**
|
|
4183
4186
|
* Disallow shorthand boolean JSX attributes
|
|
4184
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4187
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/jsx-shorthand-boolean/documentation.md
|
|
4185
4188
|
*/
|
|
4186
4189
|
'flawless/jsx-shorthand-boolean'?: Linter.RuleEntry<[]>;
|
|
4187
4190
|
/**
|
|
4188
4191
|
* Enforce a consistent fragment form: the shorthand `<>...</>` or a named fragment
|
|
4189
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4192
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/jsx-shorthand-fragment/documentation.md
|
|
4190
4193
|
*/
|
|
4191
4194
|
'flawless/jsx-shorthand-fragment'?: Linter.RuleEntry<FlawlessJsxShorthandFragment>;
|
|
4192
4195
|
/**
|
|
4193
4196
|
* Enforce a maximum number of lines of code in a function
|
|
4194
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4197
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/max-lines-per-function/documentation.md
|
|
4195
4198
|
*/
|
|
4196
4199
|
'flawless/max-lines-per-function'?: Linter.RuleEntry<FlawlessMaxLinesPerFunction>;
|
|
4197
4200
|
/**
|
|
4198
4201
|
* Enforce naming conventions for everything across a codebase
|
|
4199
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4202
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/naming-convention/documentation.md
|
|
4200
4203
|
*/
|
|
4201
4204
|
'flawless/naming-convention'?: Linter.RuleEntry<FlawlessNamingConvention>;
|
|
4202
4205
|
/**
|
|
4203
4206
|
* Disallow anonymous arrow functions as export default declarations
|
|
4204
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4207
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/no-export-default-arrow/documentation.md
|
|
4205
4208
|
*/
|
|
4206
4209
|
'flawless/no-export-default-arrow'?: Linter.RuleEntry<[]>;
|
|
4207
4210
|
/**
|
|
4208
4211
|
* Disallow tsconfig options that redundantly re-set a value already provided by an extended config
|
|
4209
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4212
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/no-redundant-tsconfig-options/documentation.md
|
|
4210
4213
|
*/
|
|
4211
4214
|
'flawless/no-redundant-tsconfig-options'?: Linter.RuleEntry<[]>;
|
|
4212
4215
|
/**
|
|
4213
4216
|
* Disallow unnecessary usage of 'useCallback'
|
|
4214
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4217
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/no-unnecessary-use-callback/documentation.md
|
|
4215
4218
|
*/
|
|
4216
4219
|
'flawless/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
|
|
4217
4220
|
/**
|
|
4218
4221
|
* Disallow unnecessary usage of 'useMemo'
|
|
4219
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4222
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/no-unnecessary-use-memo/documentation.md
|
|
4220
4223
|
*/
|
|
4221
4224
|
'flawless/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
|
|
4222
4225
|
/**
|
|
4223
4226
|
* Enforce a blank line after `expect.assertions` and `expect.hasAssertions`
|
|
4224
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4227
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/padding-after-expect-assertions/documentation.md
|
|
4225
4228
|
*/
|
|
4226
4229
|
'flawless/padding-after-expect-assertions'?: Linter.RuleEntry<[]>;
|
|
4227
4230
|
/**
|
|
4228
4231
|
* Enforce destructuring assignment for component props
|
|
4229
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4232
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/prefer-destructuring-assignment/documentation.md
|
|
4230
4233
|
*/
|
|
4231
4234
|
'flawless/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
|
|
4232
4235
|
/**
|
|
4233
4236
|
* Enforce destructuring parameters in the function signature
|
|
4234
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4237
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/prefer-parameter-destructuring/documentation.md
|
|
4235
4238
|
*/
|
|
4236
4239
|
'flawless/prefer-parameter-destructuring'?: Linter.RuleEntry<FlawlessPreferParameterDestructuring>;
|
|
4237
4240
|
/**
|
|
4238
4241
|
* Enforce that function component props are read-only
|
|
4239
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4242
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/prefer-read-only-props/documentation.md
|
|
4240
4243
|
*/
|
|
4241
4244
|
'flawless/prefer-read-only-props'?: Linter.RuleEntry<FlawlessPreferReadOnlyProps>;
|
|
4242
4245
|
/**
|
|
4243
4246
|
* Disallow impure calls such as `math.random` or `os.clock` during render
|
|
4244
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4247
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/purity/documentation.md
|
|
4245
4248
|
*/
|
|
4246
4249
|
'flawless/purity'?: Linter.RuleEntry<FlawlessPurity>;
|
|
4250
|
+
/**
|
|
4251
|
+
* Prefer named imports for React runtime values and the React namespace for React types
|
|
4252
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/react-namespace/documentation.md
|
|
4253
|
+
*/
|
|
4254
|
+
'flawless/react-namespace'?: Linter.RuleEntry<[]>;
|
|
4247
4255
|
/**
|
|
4248
4256
|
* Enforce a configured sort order for TOML keys and tables
|
|
4249
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4257
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/toml-sort-keys/documentation.md
|
|
4250
4258
|
*/
|
|
4251
4259
|
'flawless/toml-sort-keys'?: Linter.RuleEntry<FlawlessTomlSortKeys>;
|
|
4252
4260
|
/**
|
|
4253
4261
|
* Enforce blank lines around top-level YAML block collection keys
|
|
4254
|
-
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.
|
|
4262
|
+
* @see https://github.com/christopher-buss/eslint-plugin-flawless/blob/v1.2.0/src/rules/yaml-block-key-blank-lines/documentation.md
|
|
4255
4263
|
*/
|
|
4256
4264
|
'flawless/yaml-block-key-blank-lines'?: Linter.RuleEntry<[]>;
|
|
4257
4265
|
/**
|
|
@@ -13852,7 +13860,7 @@ type FlawlessNamingConvention = ({
|
|
|
13852
13860
|
suffix?: _FlawlessNamingConvention_PrefixSuffixConfig;
|
|
13853
13861
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
13854
13862
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
13855
|
-
modifiers?: ("const" | "readonly" | "static" | "public" | "protected" | "private" | "#private" | "abstract" | "destructured" | "global" | "exported" | "unused" | "requiresQuotes" | "override" | "async" | "default" | "namespace")[];
|
|
13863
|
+
modifiers?: ("const" | "readonly" | "static" | "public" | "protected" | "private" | "#private" | "abstract" | "destructured" | "global" | "exported" | "unused" | "requiresQuotes" | "override" | "async" | "default" | "namespace" | "constAsserted")[];
|
|
13856
13864
|
selector: ("default" | "variableLike" | "memberLike" | "typeLike" | "method" | "property" | "accessor" | "variable" | "function" | "parameter" | "objectStyleEnum" | "parameterProperty" | "classicAccessor" | "enumMember" | "classMethod" | "objectLiteralMethod" | "typeMethod" | "classProperty" | "objectLiteralProperty" | "typeProperty" | "autoAccessor" | "class" | "interface" | "typeAlias" | "enum" | "typeParameter" | "import")[];
|
|
13857
13865
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
13858
13866
|
} | {
|
|
@@ -13865,7 +13873,7 @@ type FlawlessNamingConvention = ({
|
|
|
13865
13873
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
13866
13874
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
13867
13875
|
selector: "default";
|
|
13868
|
-
modifiers?: ("const" | "readonly" | "static" | "public" | "protected" | "private" | "#private" | "abstract" | "destructured" | "global" | "exported" | "unused" | "requiresQuotes" | "override" | "async" | "default" | "namespace")[];
|
|
13876
|
+
modifiers?: ("const" | "readonly" | "static" | "public" | "protected" | "private" | "#private" | "abstract" | "destructured" | "global" | "exported" | "unused" | "requiresQuotes" | "override" | "async" | "default" | "namespace" | "constAsserted")[];
|
|
13869
13877
|
} | {
|
|
13870
13878
|
custom?: _FlawlessNamingConvention_MatchRegexConfig;
|
|
13871
13879
|
failureMessage?: string;
|
|
@@ -13887,7 +13895,7 @@ type FlawlessNamingConvention = ({
|
|
|
13887
13895
|
trailingUnderscore?: _FlawlessNamingConventionUnderscoreOptions;
|
|
13888
13896
|
filter?: (string | _FlawlessNamingConvention_MatchRegexConfig);
|
|
13889
13897
|
selector: "variable";
|
|
13890
|
-
modifiers?: ("const" | "destructured" | "exported" | "global" | "unused" | "async")[];
|
|
13898
|
+
modifiers?: ("const" | "constAsserted" | "destructured" | "exported" | "global" | "unused" | "async")[];
|
|
13891
13899
|
types?: _FlawlessNamingConventionTypeMatcher[];
|
|
13892
13900
|
} | {
|
|
13893
13901
|
custom?: _FlawlessNamingConvention_MatchRegexConfig;
|
package/dist/oxlint.mjs
CHANGED
|
@@ -3320,6 +3320,7 @@ function reactRules({ filenameCase = "kebabCase", reactCompiler = true, stylisti
|
|
|
3320
3320
|
"flawless/jsx-shorthand-boolean": "warn",
|
|
3321
3321
|
"flawless/jsx-shorthand-fragment": "warn",
|
|
3322
3322
|
"flawless/prefer-destructuring-assignment": "error",
|
|
3323
|
+
"flawless/react-namespace": "error",
|
|
3323
3324
|
"one-var": "off",
|
|
3324
3325
|
"react-jsx/no-useless-fragment": "warn",
|
|
3325
3326
|
"react-naming-convention/context-name": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isentinel/eslint-config",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.20",
|
|
4
4
|
"description": "iSentinel's ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"eslint-plugin-better-max-params": "1.0.0",
|
|
77
77
|
"eslint-plugin-comment-length": "2.3.1",
|
|
78
78
|
"eslint-plugin-de-morgan": "2.1.3",
|
|
79
|
-
"eslint-plugin-flawless": "1.
|
|
79
|
+
"eslint-plugin-flawless": "1.2.0",
|
|
80
80
|
"eslint-plugin-format-lua": "2.0.0",
|
|
81
81
|
"eslint-plugin-import-lite": "0.6.0",
|
|
82
82
|
"eslint-plugin-jsdoc": "63.1.0",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"typescript": "6.0.3",
|
|
143
143
|
"unplugin-unused": "0.5.7",
|
|
144
144
|
"vitest": "4.1.10",
|
|
145
|
-
"@isentinel/eslint-config": "6.0.0-beta.
|
|
145
|
+
"@isentinel/eslint-config": "6.0.0-beta.20"
|
|
146
146
|
},
|
|
147
147
|
"peerDependencies": {
|
|
148
148
|
"@vitest/eslint-plugin": "^1.6.4",
|