@hexadrop/eslint-config 0.0.1-beta.4 → 0.0.1-beta.6

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.cjs CHANGED
@@ -874,11 +874,11 @@ async function typescript(options) {
874
874
  var IMPORTS_CONFIG_NAME = `${plugin_prefix_default}/imports`;
875
875
  var IMPORTS_CONFIG_NAME_SETUP = `${IMPORTS_CONFIG_NAME}/setup`;
876
876
  var IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT = `${IMPORTS_CONFIG_NAME_SETUP}/typescript`;
877
- var IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT_DTS = `${IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT}/dts`;
878
877
  var IMPORTS_CONFIG_NAME_RULES = `${IMPORTS_CONFIG_NAME}/rules`;
879
878
  var IMPORTS_CONFIG_NAME_RULES_WARNINGS = `${IMPORTS_CONFIG_NAME_RULES}/warnings`;
880
879
  var IMPORTS_CONFIG_NAME_RULES_WARNINGS_ESLINT_CONFIG = `${IMPORTS_CONFIG_NAME_RULES_WARNINGS}/eslint-config`;
881
880
  var IMPORTS_CONFIG_NAME_RULES_TYPESCRIPT = `${IMPORTS_CONFIG_NAME_RULES}/typescript`;
881
+ var IMPORTS_CONFIG_NAME_RULES_TYPESCRIPT_DTS = `${IMPORTS_CONFIG_NAME_RULES_TYPESCRIPT}/dts`;
882
882
  var IMPORTS_CONFIG_NAME_RULES_STATIC = `${IMPORTS_CONFIG_NAME_RULES}/static`;
883
883
  var IMPORTS_CONFIG_NAME_RULES_STATIC_MARKDOWN_SOURCE = `${IMPORTS_CONFIG_NAME_RULES_STATIC}/markdown/source`;
884
884
  var IMPORTS_CONFIG_NAME_RULES_STYLISTIC = `${IMPORTS_CONFIG_NAME_RULES}/stylistic`;
@@ -921,32 +921,23 @@ async function imports(options) {
921
921
  if (typescript2) {
922
922
  const typeScriptExtensions = [".ts", ".tsx"];
923
923
  const allExtensions = [...typeScriptExtensions, ".js", ".jsx"];
924
- configs.push(
925
- {
926
- files: TYPESCRIPT_GLOBS,
927
- name: IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT,
928
- settings: {
929
- [`${importXPlugin}/extensions`]: typeScriptExtensions,
930
- [`${importXPlugin}/external-module-folders`]: ["node_modules", "node_modules/@types"],
931
- [`${importXPlugin}/parsers`]: {
932
- "@typescript-eslint/parser": [...typeScriptExtensions, ".cts", ".mts"]
924
+ configs.push({
925
+ files: TYPESCRIPT_GLOBS,
926
+ name: IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT,
927
+ settings: {
928
+ [`${importXPlugin}/extensions`]: typeScriptExtensions,
929
+ [`${importXPlugin}/external-module-folders`]: ["node_modules", "node_modules/@types"],
930
+ [`${importXPlugin}/parsers`]: {
931
+ "@typescript-eslint/parser": [...typeScriptExtensions, ".cts", ".mts"]
932
+ },
933
+ [`${importXPlugin}/resolver`]: {
934
+ node: {
935
+ extensions: allExtensions
933
936
  },
934
- [`${importXPlugin}/resolver`]: {
935
- node: {
936
- extensions: allExtensions
937
- },
938
- typescript: true
939
- }
940
- }
941
- },
942
- {
943
- files: DTS_GLOBS,
944
- name: IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT_DTS,
945
- settings: {
946
- [`${importXPlugin}/prefer-default-export`]: "off"
937
+ typescript: true
947
938
  }
948
939
  }
949
- );
940
+ });
950
941
  }
951
942
  configs.push(
952
943
  {
@@ -1067,6 +1058,15 @@ async function imports(options) {
1067
1058
  ]
1068
1059
  }
1069
1060
  });
1061
+ if (typescript2) {
1062
+ configs.push({
1063
+ files: DTS_GLOBS,
1064
+ name: IMPORTS_CONFIG_NAME_RULES_TYPESCRIPT_DTS,
1065
+ settings: {
1066
+ [`${importXPlugin}/prefer-default-export`]: "off"
1067
+ }
1068
+ });
1069
+ }
1070
1070
  if (markdown2) {
1071
1071
  configs.push({
1072
1072
  files: GLOB_MARKDOWN_SOURCE,
package/dist/index.js CHANGED
@@ -837,11 +837,11 @@ async function typescript(options) {
837
837
  var IMPORTS_CONFIG_NAME = `${plugin_prefix_default}/imports`;
838
838
  var IMPORTS_CONFIG_NAME_SETUP = `${IMPORTS_CONFIG_NAME}/setup`;
839
839
  var IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT = `${IMPORTS_CONFIG_NAME_SETUP}/typescript`;
840
- var IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT_DTS = `${IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT}/dts`;
841
840
  var IMPORTS_CONFIG_NAME_RULES = `${IMPORTS_CONFIG_NAME}/rules`;
842
841
  var IMPORTS_CONFIG_NAME_RULES_WARNINGS = `${IMPORTS_CONFIG_NAME_RULES}/warnings`;
843
842
  var IMPORTS_CONFIG_NAME_RULES_WARNINGS_ESLINT_CONFIG = `${IMPORTS_CONFIG_NAME_RULES_WARNINGS}/eslint-config`;
844
843
  var IMPORTS_CONFIG_NAME_RULES_TYPESCRIPT = `${IMPORTS_CONFIG_NAME_RULES}/typescript`;
844
+ var IMPORTS_CONFIG_NAME_RULES_TYPESCRIPT_DTS = `${IMPORTS_CONFIG_NAME_RULES_TYPESCRIPT}/dts`;
845
845
  var IMPORTS_CONFIG_NAME_RULES_STATIC = `${IMPORTS_CONFIG_NAME_RULES}/static`;
846
846
  var IMPORTS_CONFIG_NAME_RULES_STATIC_MARKDOWN_SOURCE = `${IMPORTS_CONFIG_NAME_RULES_STATIC}/markdown/source`;
847
847
  var IMPORTS_CONFIG_NAME_RULES_STYLISTIC = `${IMPORTS_CONFIG_NAME_RULES}/stylistic`;
@@ -884,32 +884,23 @@ async function imports(options) {
884
884
  if (typescript2) {
885
885
  const typeScriptExtensions = [".ts", ".tsx"];
886
886
  const allExtensions = [...typeScriptExtensions, ".js", ".jsx"];
887
- configs.push(
888
- {
889
- files: TYPESCRIPT_GLOBS,
890
- name: IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT,
891
- settings: {
892
- [`${importXPlugin}/extensions`]: typeScriptExtensions,
893
- [`${importXPlugin}/external-module-folders`]: ["node_modules", "node_modules/@types"],
894
- [`${importXPlugin}/parsers`]: {
895
- "@typescript-eslint/parser": [...typeScriptExtensions, ".cts", ".mts"]
887
+ configs.push({
888
+ files: TYPESCRIPT_GLOBS,
889
+ name: IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT,
890
+ settings: {
891
+ [`${importXPlugin}/extensions`]: typeScriptExtensions,
892
+ [`${importXPlugin}/external-module-folders`]: ["node_modules", "node_modules/@types"],
893
+ [`${importXPlugin}/parsers`]: {
894
+ "@typescript-eslint/parser": [...typeScriptExtensions, ".cts", ".mts"]
895
+ },
896
+ [`${importXPlugin}/resolver`]: {
897
+ node: {
898
+ extensions: allExtensions
896
899
  },
897
- [`${importXPlugin}/resolver`]: {
898
- node: {
899
- extensions: allExtensions
900
- },
901
- typescript: true
902
- }
903
- }
904
- },
905
- {
906
- files: DTS_GLOBS,
907
- name: IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT_DTS,
908
- settings: {
909
- [`${importXPlugin}/prefer-default-export`]: "off"
900
+ typescript: true
910
901
  }
911
902
  }
912
- );
903
+ });
913
904
  }
914
905
  configs.push(
915
906
  {
@@ -1030,6 +1021,15 @@ async function imports(options) {
1030
1021
  ]
1031
1022
  }
1032
1023
  });
1024
+ if (typescript2) {
1025
+ configs.push({
1026
+ files: DTS_GLOBS,
1027
+ name: IMPORTS_CONFIG_NAME_RULES_TYPESCRIPT_DTS,
1028
+ settings: {
1029
+ [`${importXPlugin}/prefer-default-export`]: "off"
1030
+ }
1031
+ });
1032
+ }
1033
1033
  if (markdown2) {
1034
1034
  configs.push({
1035
1035
  files: GLOB_MARKDOWN_SOURCE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexadrop/eslint-config",
3
- "version": "0.0.1-beta.4",
3
+ "version": "0.0.1-beta.6",
4
4
  "description": "Opinionated ESLint ruleset designed for large teams and projects",
5
5
  "keywords": [
6
6
  "lint",