@hexadrop/eslint-config 0.1.8 → 0.1.9
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 +2 -8
- package/dist/index.js +2 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -906,7 +906,6 @@ async function imports(options) {
|
|
|
906
906
|
const unusedImportsPrefix = plugin_rename_default["unused-imports"];
|
|
907
907
|
const importSortPrefix = plugin_rename_default["simple-import-sort"];
|
|
908
908
|
const configs = [];
|
|
909
|
-
const javaScriptExtensions = [".js", ".jsx"];
|
|
910
909
|
configs.push({
|
|
911
910
|
name: IMPORTS_CONFIG_NAME_SETUP,
|
|
912
911
|
plugins: {
|
|
@@ -917,10 +916,6 @@ async function imports(options) {
|
|
|
917
916
|
}
|
|
918
917
|
},
|
|
919
918
|
settings: {
|
|
920
|
-
[`${importXPlugin}/parsers`]: {
|
|
921
|
-
"@typescript-eslint/parser": [...javaScriptExtensions],
|
|
922
|
-
"astro-eslint-parser": [".astro"]
|
|
923
|
-
},
|
|
924
919
|
[`${importXPlugin}/resolver`]: {
|
|
925
920
|
node: true
|
|
926
921
|
}
|
|
@@ -928,7 +923,7 @@ async function imports(options) {
|
|
|
928
923
|
});
|
|
929
924
|
if (typescript2) {
|
|
930
925
|
const typeScriptExtensions = [".ts", ".tsx"];
|
|
931
|
-
const allExtensions = [...typeScriptExtensions,
|
|
926
|
+
const allExtensions = [...typeScriptExtensions, ".js", ".jsx"];
|
|
932
927
|
configs.push({
|
|
933
928
|
files: TYPESCRIPT_GLOBS,
|
|
934
929
|
name: IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT,
|
|
@@ -936,8 +931,7 @@ async function imports(options) {
|
|
|
936
931
|
[`${importXPlugin}/extensions`]: typeScriptExtensions,
|
|
937
932
|
[`${importXPlugin}/external-module-folders`]: ["node_modules", "node_modules/@types"],
|
|
938
933
|
[`${importXPlugin}/parsers`]: {
|
|
939
|
-
"@typescript-eslint/parser": [...typeScriptExtensions, ".cts", ".mts"]
|
|
940
|
-
"astro-eslint-parser": [".astro"]
|
|
934
|
+
"@typescript-eslint/parser": [...typeScriptExtensions, ".cts", ".mts"]
|
|
941
935
|
},
|
|
942
936
|
[`${importXPlugin}/resolver`]: {
|
|
943
937
|
node: {
|
package/dist/index.js
CHANGED
|
@@ -869,7 +869,6 @@ async function imports(options) {
|
|
|
869
869
|
const unusedImportsPrefix = plugin_rename_default["unused-imports"];
|
|
870
870
|
const importSortPrefix = plugin_rename_default["simple-import-sort"];
|
|
871
871
|
const configs = [];
|
|
872
|
-
const javaScriptExtensions = [".js", ".jsx"];
|
|
873
872
|
configs.push({
|
|
874
873
|
name: IMPORTS_CONFIG_NAME_SETUP,
|
|
875
874
|
plugins: {
|
|
@@ -880,10 +879,6 @@ async function imports(options) {
|
|
|
880
879
|
}
|
|
881
880
|
},
|
|
882
881
|
settings: {
|
|
883
|
-
[`${importXPlugin}/parsers`]: {
|
|
884
|
-
"@typescript-eslint/parser": [...javaScriptExtensions],
|
|
885
|
-
"astro-eslint-parser": [".astro"]
|
|
886
|
-
},
|
|
887
882
|
[`${importXPlugin}/resolver`]: {
|
|
888
883
|
node: true
|
|
889
884
|
}
|
|
@@ -891,7 +886,7 @@ async function imports(options) {
|
|
|
891
886
|
});
|
|
892
887
|
if (typescript2) {
|
|
893
888
|
const typeScriptExtensions = [".ts", ".tsx"];
|
|
894
|
-
const allExtensions = [...typeScriptExtensions,
|
|
889
|
+
const allExtensions = [...typeScriptExtensions, ".js", ".jsx"];
|
|
895
890
|
configs.push({
|
|
896
891
|
files: TYPESCRIPT_GLOBS,
|
|
897
892
|
name: IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT,
|
|
@@ -899,8 +894,7 @@ async function imports(options) {
|
|
|
899
894
|
[`${importXPlugin}/extensions`]: typeScriptExtensions,
|
|
900
895
|
[`${importXPlugin}/external-module-folders`]: ["node_modules", "node_modules/@types"],
|
|
901
896
|
[`${importXPlugin}/parsers`]: {
|
|
902
|
-
"@typescript-eslint/parser": [...typeScriptExtensions, ".cts", ".mts"]
|
|
903
|
-
"astro-eslint-parser": [".astro"]
|
|
897
|
+
"@typescript-eslint/parser": [...typeScriptExtensions, ".cts", ".mts"]
|
|
904
898
|
},
|
|
905
899
|
[`${importXPlugin}/resolver`]: {
|
|
906
900
|
node: {
|