@vinicunca/eslint-config 3.21.1 → 3.23.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 +25 -10
- package/dist/index.js +2 -1
- package/package.json +11 -11
package/dist/index.d.ts
CHANGED
|
@@ -1274,7 +1274,7 @@ interface RuleOptions {
|
|
|
1274
1274
|
* Enforce heading levels increment by one
|
|
1275
1275
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
1276
1276
|
*/
|
|
1277
|
-
'markdown/heading-increment'?: Linter.RuleEntry<
|
|
1277
|
+
'markdown/heading-increment'?: Linter.RuleEntry<MarkdownHeadingIncrement>;
|
|
1278
1278
|
/**
|
|
1279
1279
|
* Disallow bare URLs
|
|
1280
1280
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md
|
|
@@ -1319,7 +1319,7 @@ interface RuleOptions {
|
|
|
1319
1319
|
* Disallow headings without a space after the hash characters
|
|
1320
1320
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-atx-heading-space.md
|
|
1321
1321
|
*/
|
|
1322
|
-
'markdown/no-missing-atx-heading-space'?: Linter.RuleEntry<
|
|
1322
|
+
'markdown/no-missing-atx-heading-space'?: Linter.RuleEntry<MarkdownNoMissingAtxHeadingSpace>;
|
|
1323
1323
|
/**
|
|
1324
1324
|
* Disallow missing label references
|
|
1325
1325
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
|
|
@@ -1340,6 +1340,11 @@ interface RuleOptions {
|
|
|
1340
1340
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
|
|
1341
1341
|
*/
|
|
1342
1342
|
'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>;
|
|
1343
|
+
/**
|
|
1344
|
+
* Disallow spaces around emphasis markers
|
|
1345
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-space-in-emphasis.md
|
|
1346
|
+
*/
|
|
1347
|
+
'markdown/no-space-in-emphasis'?: Linter.RuleEntry<MarkdownNoSpaceInEmphasis>;
|
|
1343
1348
|
/**
|
|
1344
1349
|
* Disallow unused definitions
|
|
1345
1350
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
|
|
@@ -4401,7 +4406,7 @@ interface RuleOptions {
|
|
|
4401
4406
|
*/
|
|
4402
4407
|
'sonar/no-equals-in-for-termination'?: Linter.RuleEntry<[]>;
|
|
4403
4408
|
/**
|
|
4404
|
-
* Exclusive tests should not be
|
|
4409
|
+
* Exclusive tests should not be committed to version control
|
|
4405
4410
|
* @see https://sonarsource.github.io/rspec/#/rspec/S6426/javascript
|
|
4406
4411
|
*/
|
|
4407
4412
|
'sonar/no-exclusive-tests'?: Linter.RuleEntry<[]>;
|
|
@@ -4605,11 +4610,6 @@ interface RuleOptions {
|
|
|
4605
4610
|
* @see https://sonarsource.github.io/rspec/#/rspec/S4624/javascript
|
|
4606
4611
|
*/
|
|
4607
4612
|
'sonar/no-nested-template-literals'?: Linter.RuleEntry<[]>;
|
|
4608
|
-
/**
|
|
4609
|
-
* Loops with at most one iteration should be refactored
|
|
4610
|
-
* @see https://sonarsource.github.io/rspec/#/rspec/S1751/javascript
|
|
4611
|
-
*/
|
|
4612
|
-
'sonar/no-one-iteration-loop'?: Linter.RuleEntry<[]>;
|
|
4613
4613
|
/**
|
|
4614
4614
|
* Searching OS commands in PATH is security-sensitive
|
|
4615
4615
|
* @see https://sonarsource.github.io/rspec/#/rspec/S4036/javascript
|
|
@@ -5070,7 +5070,6 @@ interface RuleOptions {
|
|
|
5070
5070
|
/**
|
|
5071
5071
|
* Loop counters should not be assigned within the loop body
|
|
5072
5072
|
* @see https://sonarsource.github.io/rspec/#/rspec/S2310/javascript
|
|
5073
|
-
* @deprecated
|
|
5074
5073
|
*/
|
|
5075
5074
|
'sonar/updated-loop-counter'?: Linter.RuleEntry<[]>;
|
|
5076
5075
|
/**
|
|
@@ -10842,6 +10841,10 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
|
10842
10841
|
type MarkdownFencedCodeLanguage = [] | [{
|
|
10843
10842
|
required?: string[];
|
|
10844
10843
|
}];
|
|
10844
|
+
// ----- markdown/heading-increment -----
|
|
10845
|
+
type MarkdownHeadingIncrement = [] | [{
|
|
10846
|
+
frontmatterTitle?: string;
|
|
10847
|
+
}];
|
|
10845
10848
|
// ----- markdown/no-duplicate-definitions -----
|
|
10846
10849
|
type MarkdownNoDuplicateDefinitions = [] | [{
|
|
10847
10850
|
allowDefinitions?: string[];
|
|
@@ -10860,6 +10863,11 @@ type MarkdownNoEmptyDefinitions = [] | [{
|
|
|
10860
10863
|
// ----- markdown/no-html -----
|
|
10861
10864
|
type MarkdownNoHtml = [] | [{
|
|
10862
10865
|
allowed?: string[];
|
|
10866
|
+
allowedIgnoreCase?: boolean;
|
|
10867
|
+
}];
|
|
10868
|
+
// ----- markdown/no-missing-atx-heading-space -----
|
|
10869
|
+
type MarkdownNoMissingAtxHeadingSpace = [] | [{
|
|
10870
|
+
checkClosedHeadings?: boolean;
|
|
10863
10871
|
}];
|
|
10864
10872
|
// ----- markdown/no-missing-link-fragments -----
|
|
10865
10873
|
type MarkdownNoMissingLinkFragments = [] | [{
|
|
@@ -10870,6 +10878,10 @@ type MarkdownNoMissingLinkFragments = [] | [{
|
|
|
10870
10878
|
type MarkdownNoMultipleH1 = [] | [{
|
|
10871
10879
|
frontmatterTitle?: string;
|
|
10872
10880
|
}];
|
|
10881
|
+
// ----- markdown/no-space-in-emphasis -----
|
|
10882
|
+
type MarkdownNoSpaceInEmphasis = [] | [{
|
|
10883
|
+
checkStrikethrough?: boolean;
|
|
10884
|
+
}];
|
|
10873
10885
|
// ----- markdown/no-unused-definitions -----
|
|
10874
10886
|
type MarkdownNoUnusedDefinitions = [] | [{
|
|
10875
10887
|
allowDefinitions?: string[];
|
|
@@ -16705,7 +16717,6 @@ type UnocssEnforceClassCompile = [] | [{
|
|
|
16705
16717
|
type UnocssOrder = [] | [{
|
|
16706
16718
|
unoFunctions?: string[];
|
|
16707
16719
|
unoVariables?: string[];
|
|
16708
|
-
[k: string]: unknown | undefined;
|
|
16709
16720
|
}];
|
|
16710
16721
|
// ----- unused-imports/no-unused-imports -----
|
|
16711
16722
|
type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
|
|
@@ -18447,6 +18458,10 @@ interface OptionsUnoCSS extends OptionsOverrides {
|
|
|
18447
18458
|
* @default false
|
|
18448
18459
|
*/
|
|
18449
18460
|
strict?: boolean;
|
|
18461
|
+
/**
|
|
18462
|
+
* Custom path for the uno.config.ts file, useful for monorepo projects.
|
|
18463
|
+
*/
|
|
18464
|
+
configPath?: string;
|
|
18450
18465
|
}
|
|
18451
18466
|
interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
18452
18467
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1891,11 +1891,12 @@ async function unicorn(options = {}) {
|
|
|
1891
1891
|
//#endregion
|
|
1892
1892
|
//#region src/configs/unocss.ts
|
|
1893
1893
|
async function unocss(options = {}) {
|
|
1894
|
-
const { attributify = false, strict = false } = options;
|
|
1894
|
+
const { attributify = false, strict = false, configPath } = options;
|
|
1895
1895
|
const [pluginUnoCSS] = await Promise.all([interopDefault(import("@unocss/eslint-plugin"))]);
|
|
1896
1896
|
return [{
|
|
1897
1897
|
name: "vinicunca/unocss",
|
|
1898
1898
|
plugins: { unocss: pluginUnoCSS },
|
|
1899
|
+
settings: { unocss: { configPath } },
|
|
1899
1900
|
rules: {
|
|
1900
1901
|
"unocss/order": WARN,
|
|
1901
1902
|
...attributify ? { "unocss/order-attributify": WARN } : {},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinicunca/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.23.0",
|
|
5
5
|
"description": "Vinicunca ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "praburangki",
|
|
@@ -112,12 +112,12 @@
|
|
|
112
112
|
"@antfu/install-pkg": "^1.1.0",
|
|
113
113
|
"@clack/prompts": "^0.11.0",
|
|
114
114
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
115
|
-
"@eslint/markdown": "^7.
|
|
115
|
+
"@eslint/markdown": "^7.2.0",
|
|
116
116
|
"@stylistic/eslint-plugin": "^5.2.3",
|
|
117
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
118
|
-
"@typescript-eslint/parser": "^8.
|
|
119
|
-
"@unocss/eslint-plugin": "^66.
|
|
120
|
-
"@vitest/eslint-plugin": "^1.3.
|
|
117
|
+
"@typescript-eslint/eslint-plugin": "^8.41.0",
|
|
118
|
+
"@typescript-eslint/parser": "^8.41.0",
|
|
119
|
+
"@unocss/eslint-plugin": "^66.5.0",
|
|
120
|
+
"@vitest/eslint-plugin": "^1.3.5",
|
|
121
121
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
122
122
|
"eslint-flat-config-utils": "^2.1.1",
|
|
123
123
|
"eslint-merge-processors": "^2.0.0",
|
|
@@ -125,23 +125,23 @@
|
|
|
125
125
|
"eslint-plugin-command": "^3.3.1",
|
|
126
126
|
"eslint-plugin-format": "^1.0.1",
|
|
127
127
|
"eslint-plugin-import-lite": "^0.3.0",
|
|
128
|
-
"eslint-plugin-jsdoc": "^
|
|
128
|
+
"eslint-plugin-jsdoc": "^54.1.1",
|
|
129
129
|
"eslint-plugin-jsonc": "^2.20.1",
|
|
130
130
|
"eslint-plugin-n": "^17.21.3",
|
|
131
131
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
132
132
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
133
|
-
"eslint-plugin-pnpm": "^1.1.
|
|
133
|
+
"eslint-plugin-pnpm": "^1.1.1",
|
|
134
134
|
"eslint-plugin-regexp": "^2.10.0",
|
|
135
|
-
"eslint-plugin-sonarjs": "^3.0.
|
|
135
|
+
"eslint-plugin-sonarjs": "^3.0.5",
|
|
136
136
|
"eslint-plugin-toml": "^0.12.0",
|
|
137
137
|
"eslint-plugin-unicorn": "^60.0.0",
|
|
138
|
-
"eslint-plugin-unused-imports": "^4.
|
|
138
|
+
"eslint-plugin-unused-imports": "^4.2.0",
|
|
139
139
|
"eslint-plugin-vue": "^10.4.0",
|
|
140
140
|
"eslint-plugin-yml": "^1.18.0",
|
|
141
141
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
142
142
|
"globals": "^16.3.0",
|
|
143
143
|
"jsonc-eslint-parser": "^2.4.0",
|
|
144
|
-
"local-pkg": "^1.1.
|
|
144
|
+
"local-pkg": "^1.1.2",
|
|
145
145
|
"toml-eslint-parser": "^0.10.0",
|
|
146
146
|
"vue-eslint-parser": "^10.2.0",
|
|
147
147
|
"yaml-eslint-parser": "^1.3.0"
|