@w5s/eslint-config 3.13.0 → 3.14.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/dist/index.d.ts +2 -55
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +94 -133
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/config/jsdoc.ts +48 -13
- package/src/config/jsonc.ts +1 -1
- package/src/config/ts.ts +39 -2
- package/src/config/yml.ts +1 -1
- package/src/defineConfig.ts +1 -1
- package/src/rules/esRules/bestPractices.ts +4 -4
- package/src/rules/esRules/errors.ts +7 -7
- package/src/rules/esRules/es6.ts +35 -35
- package/src/rules/esRules/overrides.ts +1 -1
- package/src/rules/esStylistic.ts +98 -0
- package/src/rules/tsRules.ts +1 -63
package/dist/index.d.ts
CHANGED
|
@@ -710,7 +710,6 @@ declare namespace es {
|
|
|
710
710
|
'no-void': ["error", {
|
|
711
711
|
allowAsStatement: boolean;
|
|
712
712
|
}];
|
|
713
|
-
'unicode-bom': ["error", string];
|
|
714
713
|
'init-declarations': "off";
|
|
715
714
|
'no-catch-shadow': "off";
|
|
716
715
|
'no-delete-var': "error";
|
|
@@ -728,19 +727,7 @@ declare namespace es {
|
|
|
728
727
|
'no-undef-init': "error";
|
|
729
728
|
'no-undefined': "off";
|
|
730
729
|
strict: ["error", string];
|
|
731
|
-
'arrow-body-style': ["error", string, {
|
|
732
|
-
requireReturnForObjectLiteral: boolean;
|
|
733
|
-
}];
|
|
734
|
-
'arrow-parens': ["error", string];
|
|
735
|
-
'arrow-spacing': ["error", {
|
|
736
|
-
after: boolean;
|
|
737
|
-
before: boolean;
|
|
738
|
-
}];
|
|
739
730
|
'constructor-super': "error";
|
|
740
|
-
'generator-star-spacing': ["error", {
|
|
741
|
-
after: boolean;
|
|
742
|
-
before: boolean;
|
|
743
|
-
}];
|
|
744
731
|
'no-class-assign': "error";
|
|
745
732
|
'no-confusing-arrow': ["error", {
|
|
746
733
|
allowParens: boolean;
|
|
@@ -765,46 +752,17 @@ declare namespace es {
|
|
|
765
752
|
ignoreImport: boolean;
|
|
766
753
|
}];
|
|
767
754
|
'no-var': "error";
|
|
768
|
-
'object-shorthand': ["error", string, {
|
|
769
|
-
avoidQuotes: boolean;
|
|
770
|
-
ignoreConstructors: boolean;
|
|
771
|
-
}];
|
|
772
|
-
'prefer-arrow-callback': ["error", {
|
|
773
|
-
allowNamedFunctions: boolean;
|
|
774
|
-
allowUnboundThis: boolean;
|
|
775
|
-
}];
|
|
776
755
|
'prefer-const': ["error", {
|
|
777
756
|
destructuring: string;
|
|
778
757
|
ignoreReadBeforeAssign: boolean;
|
|
779
758
|
}];
|
|
780
|
-
'prefer-destructuring': ["error", {
|
|
781
|
-
AssignmentExpression: {
|
|
782
|
-
array: boolean;
|
|
783
|
-
object: boolean;
|
|
784
|
-
};
|
|
785
|
-
VariableDeclarator: {
|
|
786
|
-
array: boolean;
|
|
787
|
-
object: boolean;
|
|
788
|
-
};
|
|
789
|
-
}, {
|
|
790
|
-
enforceForRenamedProperties: boolean;
|
|
791
|
-
}];
|
|
792
759
|
'prefer-numeric-literals': "error";
|
|
793
760
|
'prefer-reflect': "off";
|
|
794
761
|
'prefer-rest-params': "error";
|
|
795
762
|
'prefer-spread': "error";
|
|
796
763
|
'prefer-template': "error";
|
|
797
764
|
'require-yield': "error";
|
|
798
|
-
'rest-spread-spacing': ["error", string];
|
|
799
|
-
'sort-imports': ["off", {
|
|
800
|
-
ignoreCase: boolean;
|
|
801
|
-
ignoreDeclarationSort: boolean;
|
|
802
|
-
ignoreMemberSort: boolean;
|
|
803
|
-
memberSyntaxSortOrder: string[];
|
|
804
|
-
}];
|
|
805
765
|
'symbol-description': "error";
|
|
806
|
-
'template-curly-spacing': "error";
|
|
807
|
-
'yield-star-spacing': ["error", string];
|
|
808
766
|
'for-direction': "error";
|
|
809
767
|
'getter-return': ["error", {
|
|
810
768
|
allowImplicit: boolean;
|
|
@@ -825,13 +783,6 @@ declare namespace es {
|
|
|
825
783
|
'no-empty-character-class': "error";
|
|
826
784
|
'no-ex-assign': "error";
|
|
827
785
|
'no-extra-boolean-cast': "error";
|
|
828
|
-
'no-extra-parens': ["off", string, {
|
|
829
|
-
conditionalAssign: boolean;
|
|
830
|
-
enforceForArrowConditionals: boolean;
|
|
831
|
-
ignoreJSX: string;
|
|
832
|
-
nestedBinaryExpressions: boolean;
|
|
833
|
-
returnAssign: boolean;
|
|
834
|
-
}];
|
|
835
786
|
'no-extra-semi': "error";
|
|
836
787
|
'no-func-assign': "error";
|
|
837
788
|
'no-import-assign': "error";
|
|
@@ -877,7 +828,6 @@ declare namespace es {
|
|
|
877
828
|
curly: ["error", string];
|
|
878
829
|
'default-case-last': "error";
|
|
879
830
|
'default-param-last': "error";
|
|
880
|
-
'dot-location': ["error", string];
|
|
881
831
|
'dot-notation': ["error", {
|
|
882
832
|
allowKeywords: boolean;
|
|
883
833
|
}];
|
|
@@ -932,9 +882,6 @@ declare namespace es {
|
|
|
932
882
|
ignore: never[];
|
|
933
883
|
ignoreArrayIndexes: boolean;
|
|
934
884
|
}];
|
|
935
|
-
'no-multi-spaces': ["error", {
|
|
936
|
-
ignoreEOLComments: boolean;
|
|
937
|
-
}];
|
|
938
885
|
'no-multi-str': "error";
|
|
939
886
|
'no-native-reassign': "off";
|
|
940
887
|
'no-new': "error";
|
|
@@ -2390,14 +2337,14 @@ type JsdocValidTypes = [] | [{
|
|
|
2390
2337
|
}];
|
|
2391
2338
|
//#endregion
|
|
2392
2339
|
//#region src/config/jsdoc.d.ts
|
|
2393
|
-
declare function jsdoc(options?: jsdoc.Options): Promise<
|
|
2340
|
+
declare function jsdoc(options?: jsdoc.Options): Promise<ReadonlyArray<Config>>;
|
|
2394
2341
|
declare namespace jsdoc {
|
|
2395
2342
|
interface Options extends PluginOptionsBase<Rules> {}
|
|
2396
2343
|
type Rules = RuleOptions$10;
|
|
2397
2344
|
}
|
|
2398
2345
|
//#endregion
|
|
2399
2346
|
//#region src/config/jsonc.d.ts
|
|
2400
|
-
declare function jsonc(options?: jsonc.Options): Promise<
|
|
2347
|
+
declare function jsonc(options?: jsonc.Options): Promise<ReadonlyArray<Config>>;
|
|
2401
2348
|
declare namespace jsonc {
|
|
2402
2349
|
interface Options extends PluginOptionsBase<Rules> {}
|
|
2403
2350
|
type Rules = RuleOptions$12;
|