@arcgis/eslint-config 4.34.0-next.44 → 4.34.0-next.46
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/config/applications.d.ts +32 -2
- package/dist/config/index.d.ts +32 -2
- package/dist/config/index.js +25 -3
- package/dist/{makePlugin-wMXlQ3mi.js → makePlugin-CJnlu1p8.js} +1 -1
- package/dist/plugins/lumina/index.js +1 -1
- package/dist/plugins/webgis/index.js +1 -1
- package/package.json +4 -3
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
import { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
-
declare const _default: (
|
|
3
|
-
|
|
2
|
+
declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | {
|
|
3
|
+
name: string;
|
|
4
|
+
files: string[];
|
|
5
|
+
language: string;
|
|
6
|
+
plugins: {};
|
|
7
|
+
rules: {
|
|
8
|
+
readonly "markdown/fenced-code-language": "error";
|
|
9
|
+
readonly "markdown/heading-increment": "error";
|
|
10
|
+
readonly "markdown/no-duplicate-definitions": "error";
|
|
11
|
+
readonly "markdown/no-empty-definitions": "error";
|
|
12
|
+
readonly "markdown/no-empty-images": "error";
|
|
13
|
+
readonly "markdown/no-empty-links": "error";
|
|
14
|
+
readonly "markdown/no-invalid-label-refs": "error";
|
|
15
|
+
readonly "markdown/no-missing-atx-heading-space": "error";
|
|
16
|
+
readonly "markdown/no-missing-label-refs": "error";
|
|
17
|
+
readonly "markdown/no-missing-link-fragments": "error";
|
|
18
|
+
readonly "markdown/no-multiple-h1": "error";
|
|
19
|
+
readonly "markdown/no-reversed-media-syntax": "error";
|
|
20
|
+
readonly "markdown/require-alt-text": "error";
|
|
21
|
+
readonly "markdown/table-column-count": "error";
|
|
22
|
+
};
|
|
23
|
+
} | {
|
|
24
|
+
files: (string | string[])[];
|
|
25
|
+
ignores?: string[];
|
|
26
|
+
language?: string;
|
|
27
|
+
languageOptions?: TSESLint.FlatConfig.LanguageOptions;
|
|
28
|
+
linterOptions?: TSESLint.FlatConfig.LinterOptions;
|
|
29
|
+
name?: string;
|
|
30
|
+
plugins?: TSESLint.FlatConfig.Plugins;
|
|
31
|
+
processor?: string | TSESLint.FlatConfig.Processor;
|
|
32
|
+
rules?: TSESLint.FlatConfig.Rules;
|
|
33
|
+
settings?: TSESLint.FlatConfig.Settings;
|
|
4
34
|
})[];
|
|
5
35
|
export default _default;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
import { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
-
declare const _default: (
|
|
3
|
-
|
|
2
|
+
declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | {
|
|
3
|
+
name: string;
|
|
4
|
+
files: string[];
|
|
5
|
+
language: string;
|
|
6
|
+
plugins: {};
|
|
7
|
+
rules: {
|
|
8
|
+
readonly "markdown/fenced-code-language": "error";
|
|
9
|
+
readonly "markdown/heading-increment": "error";
|
|
10
|
+
readonly "markdown/no-duplicate-definitions": "error";
|
|
11
|
+
readonly "markdown/no-empty-definitions": "error";
|
|
12
|
+
readonly "markdown/no-empty-images": "error";
|
|
13
|
+
readonly "markdown/no-empty-links": "error";
|
|
14
|
+
readonly "markdown/no-invalid-label-refs": "error";
|
|
15
|
+
readonly "markdown/no-missing-atx-heading-space": "error";
|
|
16
|
+
readonly "markdown/no-missing-label-refs": "error";
|
|
17
|
+
readonly "markdown/no-missing-link-fragments": "error";
|
|
18
|
+
readonly "markdown/no-multiple-h1": "error";
|
|
19
|
+
readonly "markdown/no-reversed-media-syntax": "error";
|
|
20
|
+
readonly "markdown/require-alt-text": "error";
|
|
21
|
+
readonly "markdown/table-column-count": "error";
|
|
22
|
+
};
|
|
23
|
+
} | {
|
|
24
|
+
files: (string | string[])[];
|
|
25
|
+
ignores?: string[];
|
|
26
|
+
language?: string;
|
|
27
|
+
languageOptions?: TSESLint.FlatConfig.LanguageOptions;
|
|
28
|
+
linterOptions?: TSESLint.FlatConfig.LinterOptions;
|
|
29
|
+
name?: string;
|
|
30
|
+
plugins?: TSESLint.FlatConfig.Plugins;
|
|
31
|
+
processor?: string | TSESLint.FlatConfig.Processor;
|
|
32
|
+
rules?: TSESLint.FlatConfig.Rules;
|
|
33
|
+
settings?: TSESLint.FlatConfig.Settings;
|
|
4
34
|
})[];
|
|
5
35
|
export default _default;
|
package/dist/config/index.js
CHANGED
|
@@ -4,11 +4,17 @@ import restrictedGlobals from "confusing-browser-globals";
|
|
|
4
4
|
import globals from "globals";
|
|
5
5
|
import { webgisPlugin } from "../plugins/webgis/index.js";
|
|
6
6
|
import { globalIgnores } from "eslint/config";
|
|
7
|
+
import markdown from "@eslint/markdown";
|
|
7
8
|
const defaultConfig = [
|
|
8
9
|
globalIgnores(["**/www", "**/dist", "**/assets", "**/coverage", "**/.docs"]),
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
{
|
|
11
|
+
files: ["**/*.js", "**/*.mjs", "**/*.cjs"],
|
|
12
|
+
...eslint.configs.recommended
|
|
13
|
+
},
|
|
14
|
+
...[...tsEslint.configs.strictTypeChecked, ...tsEslint.configs.stylisticTypeChecked].map((config) => ({
|
|
15
|
+
...config,
|
|
16
|
+
files: ["**/*.ts", "**/*.tsx"]
|
|
17
|
+
})),
|
|
12
18
|
{
|
|
13
19
|
...webgisPlugin.configs.recommended,
|
|
14
20
|
files: ["**/*.ts", "**/*.tsx"]
|
|
@@ -544,6 +550,22 @@ const defaultConfig = [
|
|
|
544
550
|
// TODO: go over https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting
|
|
545
551
|
}
|
|
546
552
|
},
|
|
553
|
+
...markdown.configs.recommended,
|
|
554
|
+
{
|
|
555
|
+
files: ["**/*.md"],
|
|
556
|
+
language: "markdown/gfm",
|
|
557
|
+
languageOptions: {
|
|
558
|
+
frontmatter: "yaml"
|
|
559
|
+
},
|
|
560
|
+
rules: {
|
|
561
|
+
// we don't really use label refs and currently this rule does errors on GFM alerts.
|
|
562
|
+
// https://github.com/eslint/markdown/issues/294
|
|
563
|
+
"markdown/no-missing-label-refs": ["off"],
|
|
564
|
+
// We allow frontmatter titles to be different from the h1 by setting to "" which never matches
|
|
565
|
+
// This is useful to have a shorter title in the TOC than on the page.
|
|
566
|
+
"markdown/no-multiple-h1": ["error", { frontmatterTitle: "" }]
|
|
567
|
+
}
|
|
568
|
+
},
|
|
547
569
|
{
|
|
548
570
|
// Don't do type-aware linting for untyped files
|
|
549
571
|
files: ["**/*.js"],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as makeEslintPlugin } from "../../makePlugin-
|
|
1
|
+
import { m as makeEslintPlugin } from "../../makePlugin-CJnlu1p8.js";
|
|
2
2
|
import { AST_NODE_TYPES, ESLintUtils, AST_TOKEN_TYPES } from "@typescript-eslint/utils";
|
|
3
3
|
import ts from "typescript";
|
|
4
4
|
import { camelToKebab } from "@arcgis/components-utils";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as makeEslintPlugin } from "../../makePlugin-
|
|
1
|
+
import { m as makeEslintPlugin } from "../../makePlugin-CJnlu1p8.js";
|
|
2
2
|
import { resolve } from "node:path/posix";
|
|
3
3
|
import { AST_NODE_TYPES } from "@typescript-eslint/utils";
|
|
4
4
|
const plugin = makeEslintPlugin(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/eslint-config",
|
|
3
|
-
"version": "4.34.0-next.
|
|
3
|
+
"version": "4.34.0-next.46",
|
|
4
4
|
"description": "ESLint configuration for arcgis-web-components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
],
|
|
21
21
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@arcgis/components-utils": "4.34.0-next.
|
|
23
|
+
"@arcgis/components-utils": "4.34.0-next.46",
|
|
24
24
|
"@eslint/js": "^9.29.0",
|
|
25
|
+
"@eslint/markdown": "^6.6.0",
|
|
25
26
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
26
27
|
"confusing-browser-globals": "^1.0.11",
|
|
27
28
|
"eslint-plugin-storybook": "^0.12.0",
|
|
28
|
-
"globals": "^16.
|
|
29
|
+
"globals": "^16.3.0",
|
|
29
30
|
"tslib": "^2.8.1",
|
|
30
31
|
"typescript": "~5.8.3",
|
|
31
32
|
"typescript-eslint": "^8.35.0"
|