@hexadrop/eslint-config 0.1.12 → 0.1.13
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 +11 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -879,6 +879,7 @@ var IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT = `${IMPORTS_CONFIG_NAME_SETUP}/typescr
|
|
|
879
879
|
var IMPORTS_CONFIG_NAME_RULES = `${IMPORTS_CONFIG_NAME}/rules`;
|
|
880
880
|
var IMPORTS_CONFIG_NAME_RULES_WARNINGS = `${IMPORTS_CONFIG_NAME_RULES}/warnings`;
|
|
881
881
|
var IMPORTS_CONFIG_NAME_RULES_WARNINGS_ESLINT_CONFIG = `${IMPORTS_CONFIG_NAME_RULES_WARNINGS}/eslint-config`;
|
|
882
|
+
var IMPORTS_CONFIG_NAME_RULES_ASTRO = `${IMPORTS_CONFIG_NAME_RULES}/astro`;
|
|
882
883
|
var IMPORTS_CONFIG_NAME_RULES_TYPESCRIPT = `${IMPORTS_CONFIG_NAME_RULES}/typescript`;
|
|
883
884
|
var IMPORTS_CONFIG_NAME_RULES_STATIC = `${IMPORTS_CONFIG_NAME_RULES}/static`;
|
|
884
885
|
var IMPORTS_CONFIG_NAME_RULES_STATIC_MARKDOWN_SOURCE = `${IMPORTS_CONFIG_NAME_RULES_STATIC}/markdown/source`;
|
|
@@ -931,6 +932,7 @@ async function imports(options) {
|
|
|
931
932
|
settings: {
|
|
932
933
|
[`${importXPlugin}/extensions`]: typeScriptExtensions,
|
|
933
934
|
[`${importXPlugin}/external-module-folders`]: ["node_modules", "node_modules/@types"],
|
|
935
|
+
[`${importXPlugin}/ignore`]: [/\.astro$/],
|
|
934
936
|
[`${importXPlugin}/parsers`]: {
|
|
935
937
|
"@typescript-eslint/parser": [...typeScriptExtensions, ".cts", ".mts"]
|
|
936
938
|
},
|
|
@@ -1033,6 +1035,15 @@ async function imports(options) {
|
|
|
1033
1035
|
}
|
|
1034
1036
|
});
|
|
1035
1037
|
}
|
|
1038
|
+
if (astro2) {
|
|
1039
|
+
configs.push({
|
|
1040
|
+
files: GLOB_ASTRO,
|
|
1041
|
+
name: IMPORTS_CONFIG_NAME_RULES_ASTRO,
|
|
1042
|
+
rules: {
|
|
1043
|
+
[`${importXPluginRename}/named`]: "off"
|
|
1044
|
+
}
|
|
1045
|
+
});
|
|
1046
|
+
}
|
|
1036
1047
|
if (stylistic2) {
|
|
1037
1048
|
configs.push({
|
|
1038
1049
|
name: IMPORTS_CONFIG_NAME_RULES_STYLISTIC,
|
package/dist/index.d.cts
CHANGED
|
@@ -13802,7 +13802,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
13802
13802
|
onlyEquality?: boolean
|
|
13803
13803
|
}]
|
|
13804
13804
|
// Names of all the configs
|
|
13805
|
-
type ConfigNames = 'hexadrop/ignore' | 'hexadrop/ignore/gitignore' | 'hexadrop/core/setup' | 'hexadrop/core/rules' | 'hexadrop/core/rules/node' | 'hexadrop/core/rules/markdown/source' | 'hexadrop/typescript/setup' | 'hexadrop/typescript/setup/parser' | 'hexadrop/typescript/setup/parser/type-aware' | 'hexadrop/typescript/rules' | 'hexadrop/typescript/rules/dts' | 'hexadrop/typescript/rules/type-aware' | 'hexadrop/typescript/rules/test' | 'hexadrop/react/setup' | 'hexadrop/react/rules' | 'hexadrop/react/rules/hooks' | 'hexadrop/react/rules/refresh' | 'hexadrop/astro/setup' | 'hexadrop/astro/setup/parser' | 'hexadrop/astro/setup/parser/javascript' | 'hexadrop/astro/setup/parser/javascript' | 'hexadrop/astro/rules' | 'hexadrop/json/setup' | 'hexadrop/json/setup/parser' | 'hexadrop/json/rules' | 'hexadrop/markdown/setup' | 'hexadrop/markdown/setup/processor' | 'hexadrop/markdown/setup/parser' | 'hexadrop/imports/setup' | 'hexadrop/imports/setup/typescript' | 'hexadrop/imports/rules/warnings' | 'hexadrop/imports/rules/static' | 'hexadrop/imports/rules/warnings/eslint-config' | 'hexadrop/imports/rules/static/markdown/source' | 'hexadrop/imports/rules/typescript' | 'hexadrop/imports/rules/stylistic' | 'hexadrop/imports/rules/stylistic/typescript/dts' | 'hexadrop/imports/rules/stylistic/markdown/source' | 'hexadrop/imports/rules/stylistic/astro' | 'hexadrop/stylistic/setup' | 'hexadrop/stylistic/rules' | 'hexadrop/stylistic/rules/markdown/source' | 'hexadrop/stylistic/rules/typescript' | 'hexadrop/stylistic/rules/typescript/type-aware' | 'hexadrop/stylistic/rules/typescript/dts' | 'hexadrop/stylistic/rules/json' | 'hexadrop/stylistic/rules/json/package.json' | 'hexadrop/stylistic/rules/json/tsconfig.json' | 'hexadrop/stylistic/rules/astro' | 'hexadrop/stylistic/rules/unicorn' | 'hexadrop/stylistic/rules/unicorn/markdown' | 'hexadrop/stylistic/rules/unicorn/markdown/source' | 'hexadrop/stylistic/rules/perfectionist' | 'hexadrop/stylistic/rules/prettier' | 'hexadrop/stylistic/rules/prettier/astro' | 'hexadrop/stylistic/rules/prettier/markdown/source' | 'hexadrop/stylistic/rules/prettier/markdown/astro' | 'hexadrop/stylistic/rules/json' | 'hexadrop/stylistic/rules/astro'
|
|
13805
|
+
type ConfigNames = 'hexadrop/ignore' | 'hexadrop/ignore/gitignore' | 'hexadrop/core/setup' | 'hexadrop/core/rules' | 'hexadrop/core/rules/node' | 'hexadrop/core/rules/markdown/source' | 'hexadrop/typescript/setup' | 'hexadrop/typescript/setup/parser' | 'hexadrop/typescript/setup/parser/type-aware' | 'hexadrop/typescript/rules' | 'hexadrop/typescript/rules/dts' | 'hexadrop/typescript/rules/type-aware' | 'hexadrop/typescript/rules/test' | 'hexadrop/react/setup' | 'hexadrop/react/rules' | 'hexadrop/react/rules/hooks' | 'hexadrop/react/rules/refresh' | 'hexadrop/astro/setup' | 'hexadrop/astro/setup/parser' | 'hexadrop/astro/setup/parser/javascript' | 'hexadrop/astro/setup/parser/javascript' | 'hexadrop/astro/rules' | 'hexadrop/json/setup' | 'hexadrop/json/setup/parser' | 'hexadrop/json/rules' | 'hexadrop/markdown/setup' | 'hexadrop/markdown/setup/processor' | 'hexadrop/markdown/setup/parser' | 'hexadrop/imports/setup' | 'hexadrop/imports/setup/typescript' | 'hexadrop/imports/rules/warnings' | 'hexadrop/imports/rules/static' | 'hexadrop/imports/rules/warnings/eslint-config' | 'hexadrop/imports/rules/static/markdown/source' | 'hexadrop/imports/rules/typescript' | 'hexadrop/imports/rules/astro' | 'hexadrop/imports/rules/stylistic' | 'hexadrop/imports/rules/stylistic/typescript/dts' | 'hexadrop/imports/rules/stylistic/markdown/source' | 'hexadrop/imports/rules/stylistic/astro' | 'hexadrop/stylistic/setup' | 'hexadrop/stylistic/rules' | 'hexadrop/stylistic/rules/markdown/source' | 'hexadrop/stylistic/rules/typescript' | 'hexadrop/stylistic/rules/typescript/type-aware' | 'hexadrop/stylistic/rules/typescript/dts' | 'hexadrop/stylistic/rules/json' | 'hexadrop/stylistic/rules/json/package.json' | 'hexadrop/stylistic/rules/json/tsconfig.json' | 'hexadrop/stylistic/rules/astro' | 'hexadrop/stylistic/rules/unicorn' | 'hexadrop/stylistic/rules/unicorn/markdown' | 'hexadrop/stylistic/rules/unicorn/markdown/source' | 'hexadrop/stylistic/rules/perfectionist' | 'hexadrop/stylistic/rules/prettier' | 'hexadrop/stylistic/rules/prettier/astro' | 'hexadrop/stylistic/rules/prettier/markdown/source' | 'hexadrop/stylistic/rules/prettier/markdown/astro' | 'hexadrop/stylistic/rules/json' | 'hexadrop/stylistic/rules/astro'
|
|
13806
13806
|
|
|
13807
13807
|
type TypedFlatConfigItem = Linter.Config & {
|
|
13808
13808
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -13802,7 +13802,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
13802
13802
|
onlyEquality?: boolean
|
|
13803
13803
|
}]
|
|
13804
13804
|
// Names of all the configs
|
|
13805
|
-
type ConfigNames = 'hexadrop/ignore' | 'hexadrop/ignore/gitignore' | 'hexadrop/core/setup' | 'hexadrop/core/rules' | 'hexadrop/core/rules/node' | 'hexadrop/core/rules/markdown/source' | 'hexadrop/typescript/setup' | 'hexadrop/typescript/setup/parser' | 'hexadrop/typescript/setup/parser/type-aware' | 'hexadrop/typescript/rules' | 'hexadrop/typescript/rules/dts' | 'hexadrop/typescript/rules/type-aware' | 'hexadrop/typescript/rules/test' | 'hexadrop/react/setup' | 'hexadrop/react/rules' | 'hexadrop/react/rules/hooks' | 'hexadrop/react/rules/refresh' | 'hexadrop/astro/setup' | 'hexadrop/astro/setup/parser' | 'hexadrop/astro/setup/parser/javascript' | 'hexadrop/astro/setup/parser/javascript' | 'hexadrop/astro/rules' | 'hexadrop/json/setup' | 'hexadrop/json/setup/parser' | 'hexadrop/json/rules' | 'hexadrop/markdown/setup' | 'hexadrop/markdown/setup/processor' | 'hexadrop/markdown/setup/parser' | 'hexadrop/imports/setup' | 'hexadrop/imports/setup/typescript' | 'hexadrop/imports/rules/warnings' | 'hexadrop/imports/rules/static' | 'hexadrop/imports/rules/warnings/eslint-config' | 'hexadrop/imports/rules/static/markdown/source' | 'hexadrop/imports/rules/typescript' | 'hexadrop/imports/rules/stylistic' | 'hexadrop/imports/rules/stylistic/typescript/dts' | 'hexadrop/imports/rules/stylistic/markdown/source' | 'hexadrop/imports/rules/stylistic/astro' | 'hexadrop/stylistic/setup' | 'hexadrop/stylistic/rules' | 'hexadrop/stylistic/rules/markdown/source' | 'hexadrop/stylistic/rules/typescript' | 'hexadrop/stylistic/rules/typescript/type-aware' | 'hexadrop/stylistic/rules/typescript/dts' | 'hexadrop/stylistic/rules/json' | 'hexadrop/stylistic/rules/json/package.json' | 'hexadrop/stylistic/rules/json/tsconfig.json' | 'hexadrop/stylistic/rules/astro' | 'hexadrop/stylistic/rules/unicorn' | 'hexadrop/stylistic/rules/unicorn/markdown' | 'hexadrop/stylistic/rules/unicorn/markdown/source' | 'hexadrop/stylistic/rules/perfectionist' | 'hexadrop/stylistic/rules/prettier' | 'hexadrop/stylistic/rules/prettier/astro' | 'hexadrop/stylistic/rules/prettier/markdown/source' | 'hexadrop/stylistic/rules/prettier/markdown/astro' | 'hexadrop/stylistic/rules/json' | 'hexadrop/stylistic/rules/astro'
|
|
13805
|
+
type ConfigNames = 'hexadrop/ignore' | 'hexadrop/ignore/gitignore' | 'hexadrop/core/setup' | 'hexadrop/core/rules' | 'hexadrop/core/rules/node' | 'hexadrop/core/rules/markdown/source' | 'hexadrop/typescript/setup' | 'hexadrop/typescript/setup/parser' | 'hexadrop/typescript/setup/parser/type-aware' | 'hexadrop/typescript/rules' | 'hexadrop/typescript/rules/dts' | 'hexadrop/typescript/rules/type-aware' | 'hexadrop/typescript/rules/test' | 'hexadrop/react/setup' | 'hexadrop/react/rules' | 'hexadrop/react/rules/hooks' | 'hexadrop/react/rules/refresh' | 'hexadrop/astro/setup' | 'hexadrop/astro/setup/parser' | 'hexadrop/astro/setup/parser/javascript' | 'hexadrop/astro/setup/parser/javascript' | 'hexadrop/astro/rules' | 'hexadrop/json/setup' | 'hexadrop/json/setup/parser' | 'hexadrop/json/rules' | 'hexadrop/markdown/setup' | 'hexadrop/markdown/setup/processor' | 'hexadrop/markdown/setup/parser' | 'hexadrop/imports/setup' | 'hexadrop/imports/setup/typescript' | 'hexadrop/imports/rules/warnings' | 'hexadrop/imports/rules/static' | 'hexadrop/imports/rules/warnings/eslint-config' | 'hexadrop/imports/rules/static/markdown/source' | 'hexadrop/imports/rules/typescript' | 'hexadrop/imports/rules/astro' | 'hexadrop/imports/rules/stylistic' | 'hexadrop/imports/rules/stylistic/typescript/dts' | 'hexadrop/imports/rules/stylistic/markdown/source' | 'hexadrop/imports/rules/stylistic/astro' | 'hexadrop/stylistic/setup' | 'hexadrop/stylistic/rules' | 'hexadrop/stylistic/rules/markdown/source' | 'hexadrop/stylistic/rules/typescript' | 'hexadrop/stylistic/rules/typescript/type-aware' | 'hexadrop/stylistic/rules/typescript/dts' | 'hexadrop/stylistic/rules/json' | 'hexadrop/stylistic/rules/json/package.json' | 'hexadrop/stylistic/rules/json/tsconfig.json' | 'hexadrop/stylistic/rules/astro' | 'hexadrop/stylistic/rules/unicorn' | 'hexadrop/stylistic/rules/unicorn/markdown' | 'hexadrop/stylistic/rules/unicorn/markdown/source' | 'hexadrop/stylistic/rules/perfectionist' | 'hexadrop/stylistic/rules/prettier' | 'hexadrop/stylistic/rules/prettier/astro' | 'hexadrop/stylistic/rules/prettier/markdown/source' | 'hexadrop/stylistic/rules/prettier/markdown/astro' | 'hexadrop/stylistic/rules/json' | 'hexadrop/stylistic/rules/astro'
|
|
13806
13806
|
|
|
13807
13807
|
type TypedFlatConfigItem = Linter.Config & {
|
|
13808
13808
|
/**
|
package/dist/index.js
CHANGED
|
@@ -842,6 +842,7 @@ var IMPORTS_CONFIG_NAME_SETUP_TYPESCRIPT = `${IMPORTS_CONFIG_NAME_SETUP}/typescr
|
|
|
842
842
|
var IMPORTS_CONFIG_NAME_RULES = `${IMPORTS_CONFIG_NAME}/rules`;
|
|
843
843
|
var IMPORTS_CONFIG_NAME_RULES_WARNINGS = `${IMPORTS_CONFIG_NAME_RULES}/warnings`;
|
|
844
844
|
var IMPORTS_CONFIG_NAME_RULES_WARNINGS_ESLINT_CONFIG = `${IMPORTS_CONFIG_NAME_RULES_WARNINGS}/eslint-config`;
|
|
845
|
+
var IMPORTS_CONFIG_NAME_RULES_ASTRO = `${IMPORTS_CONFIG_NAME_RULES}/astro`;
|
|
845
846
|
var IMPORTS_CONFIG_NAME_RULES_TYPESCRIPT = `${IMPORTS_CONFIG_NAME_RULES}/typescript`;
|
|
846
847
|
var IMPORTS_CONFIG_NAME_RULES_STATIC = `${IMPORTS_CONFIG_NAME_RULES}/static`;
|
|
847
848
|
var IMPORTS_CONFIG_NAME_RULES_STATIC_MARKDOWN_SOURCE = `${IMPORTS_CONFIG_NAME_RULES_STATIC}/markdown/source`;
|
|
@@ -894,6 +895,7 @@ async function imports(options) {
|
|
|
894
895
|
settings: {
|
|
895
896
|
[`${importXPlugin}/extensions`]: typeScriptExtensions,
|
|
896
897
|
[`${importXPlugin}/external-module-folders`]: ["node_modules", "node_modules/@types"],
|
|
898
|
+
[`${importXPlugin}/ignore`]: [/\.astro$/],
|
|
897
899
|
[`${importXPlugin}/parsers`]: {
|
|
898
900
|
"@typescript-eslint/parser": [...typeScriptExtensions, ".cts", ".mts"]
|
|
899
901
|
},
|
|
@@ -996,6 +998,15 @@ async function imports(options) {
|
|
|
996
998
|
}
|
|
997
999
|
});
|
|
998
1000
|
}
|
|
1001
|
+
if (astro2) {
|
|
1002
|
+
configs.push({
|
|
1003
|
+
files: GLOB_ASTRO,
|
|
1004
|
+
name: IMPORTS_CONFIG_NAME_RULES_ASTRO,
|
|
1005
|
+
rules: {
|
|
1006
|
+
[`${importXPluginRename}/named`]: "off"
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
999
1010
|
if (stylistic2) {
|
|
1000
1011
|
configs.push({
|
|
1001
1012
|
name: IMPORTS_CONFIG_NAME_RULES_STYLISTIC,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hexadrop/eslint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "Opinionated ESLint ruleset designed for large teams and projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lint",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@eslint/config-inspector": "1.4.2",
|
|
80
80
|
"@hexadrop/tsconfig": "0.0.5",
|
|
81
81
|
"@types/bun": "1.3.3",
|
|
82
|
-
"astro": "5.16.
|
|
82
|
+
"astro": "5.16.1",
|
|
83
83
|
"eslint": "9.39.1",
|
|
84
84
|
"eslint-typegen": "2.3.0",
|
|
85
85
|
"jiti": "2.6.1",
|