@arcgis/eslint-config 5.0.0-next.56 → 5.0.0-next.57
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 +6 -31
- package/dist/config/index.d.ts +19 -31
- package/dist/config/index.js +1 -1
- package/dist/{makePlugin-C6QdFidG.js → makePlugin-DvPWbYbj.js} +1 -1
- package/dist/plugins/lumina/index.d.ts +2 -2
- package/dist/plugins/lumina/index.js +1 -1
- package/dist/plugins/lumina/plugin.d.ts +2 -2
- package/dist/plugins/webgis/index.d.ts +2 -2
- package/dist/plugins/webgis/index.js +1 -1
- package/dist/plugins/webgis/plugin.d.ts +2 -2
- package/package.json +8 -8
|
@@ -1,35 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* While the main index.js config strives to be comprehensive, this config
|
|
3
|
+
* disables rules that are less important for applications compared to libraries.
|
|
4
|
+
*/
|
|
5
|
+
declare const _default: (import('@eslint/config-helpers').Config | {
|
|
4
6
|
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
7
|
name?: string;
|
|
30
|
-
|
|
31
|
-
processor?: string | TSESLint.FlatConfig.Processor;
|
|
32
|
-
rules?: TSESLint.FlatConfig.Rules;
|
|
33
|
-
settings?: TSESLint.FlatConfig.Settings;
|
|
8
|
+
rules?: object;
|
|
34
9
|
})[];
|
|
35
10
|
export default _default;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,35 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* See setup documentation & rationale behind ESLint:
|
|
3
|
+
* https://qawebgis.esri.com/references/support-packages/eslint
|
|
4
|
+
*
|
|
5
|
+
* Some advice on editing rules:
|
|
6
|
+
* - prioritize autofixable rules to make adoption in existing codebases easier
|
|
7
|
+
* - disable redundant rules (rules redundant with TypeScript, or each other),
|
|
8
|
+
* to reduce noise and performance impact
|
|
9
|
+
* - if rule is always auto-fixable, it may be a good idea to emit it as a
|
|
10
|
+
* warning instead of an error to be less disruptive when the developer is
|
|
11
|
+
* typing code
|
|
12
|
+
* - emit rules that have a lot of false positives as warnings instead of errors
|
|
13
|
+
* - provide justification for enabling opinionated rules
|
|
14
|
+
* - provide justification for disabling default rules
|
|
15
|
+
* - if rule is disabled because it's buggy, describe how so
|
|
16
|
+
* (code sample, GitHub issue, permalink to file, etc)
|
|
17
|
+
*/
|
|
18
|
+
declare const _default: (import('@eslint/config-helpers').Config | {
|
|
4
19
|
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
20
|
name?: string;
|
|
30
|
-
|
|
31
|
-
processor?: string | TSESLint.FlatConfig.Processor;
|
|
32
|
-
rules?: TSESLint.FlatConfig.Rules;
|
|
33
|
-
settings?: TSESLint.FlatConfig.Settings;
|
|
21
|
+
rules?: object;
|
|
34
22
|
})[];
|
|
35
23
|
export default _default;
|
package/dist/config/index.js
CHANGED
|
@@ -310,7 +310,7 @@ const defaultConfig = [
|
|
|
310
310
|
*/
|
|
311
311
|
"arrow-body-style": "warn",
|
|
312
312
|
// This rule is a good idea, but not autofixable, so is only a warning
|
|
313
|
-
// TODO: this
|
|
313
|
+
// TODO: this has basic type imports support. also consider import/no-duplicates
|
|
314
314
|
"no-duplicate-imports": "off",
|
|
315
315
|
// We will enforce strict curly. Rational:
|
|
316
316
|
// - Same as core api
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const luminaPlugin: import("
|
|
1
|
+
export declare const luminaPlugin: import("typescript-eslint").FlatConfig.Plugin & {
|
|
2
2
|
configs: {
|
|
3
|
-
recommended: import("
|
|
3
|
+
recommended: import("typescript-eslint").FlatConfig.Config;
|
|
4
4
|
};
|
|
5
5
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as makeEslintPlugin } from "../../makePlugin-
|
|
1
|
+
import { m as makeEslintPlugin } from "../../makePlugin-DvPWbYbj.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/toolkit/string";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const plugin: {
|
|
2
2
|
createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<import('@typescript-eslint/utils/eslint-utils').RuleWithMetaAndName<Options, MessageIds, Omit<import('../utils/makePlugin').CommonDocs, "name">>>) => import('@typescript-eslint/utils/ts-eslint').RuleModule<MessageIds, Options, import('../utils/makePlugin').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
|
|
3
|
-
finalize: () => import("
|
|
3
|
+
finalize: () => import("typescript-eslint").FlatConfig.Plugin & {
|
|
4
4
|
configs: {
|
|
5
|
-
recommended: import("
|
|
5
|
+
recommended: import("typescript-eslint").FlatConfig.Config;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const webgisPlugin: import("
|
|
1
|
+
export declare const webgisPlugin: import("typescript-eslint").FlatConfig.Plugin & {
|
|
2
2
|
configs: {
|
|
3
|
-
recommended: import("
|
|
3
|
+
recommended: import("typescript-eslint").FlatConfig.Config;
|
|
4
4
|
};
|
|
5
5
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as makeEslintPlugin } from "../../makePlugin-
|
|
1
|
+
import { m as makeEslintPlugin } from "../../makePlugin-DvPWbYbj.js";
|
|
2
2
|
import { resolve } from "path/posix";
|
|
3
3
|
import { AST_NODE_TYPES } from "@typescript-eslint/utils";
|
|
4
4
|
const plugin = makeEslintPlugin(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const plugin: {
|
|
2
2
|
createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<import('@typescript-eslint/utils/eslint-utils').RuleWithMetaAndName<Options, MessageIds, Omit<import('../utils/makePlugin').CommonDocs, "name">>>) => import('@typescript-eslint/utils/ts-eslint').RuleModule<MessageIds, Options, import('../utils/makePlugin').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
|
|
3
|
-
finalize: () => import("
|
|
3
|
+
finalize: () => import("typescript-eslint").FlatConfig.Plugin & {
|
|
4
4
|
configs: {
|
|
5
|
-
recommended: import("
|
|
5
|
+
recommended: import("typescript-eslint").FlatConfig.Config;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/eslint-config",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.57",
|
|
4
4
|
"description": "ESLint configuration for arcgis-web-components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
],
|
|
21
21
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@arcgis/toolkit": "5.0.0-next.
|
|
24
|
-
"@eslint/js": "^9.
|
|
25
|
-
"@eslint/markdown": "^
|
|
23
|
+
"@arcgis/toolkit": "5.0.0-next.57",
|
|
24
|
+
"@eslint/js": "^9.39.1",
|
|
25
|
+
"@eslint/markdown": "^7.5.1",
|
|
26
26
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
27
27
|
"confusing-browser-globals": "^1.0.11",
|
|
28
28
|
"eslint-plugin-storybook": "^0.12.0",
|
|
29
|
-
"globals": "^16.
|
|
29
|
+
"globals": "^16.5.0",
|
|
30
30
|
"tslib": "^2.8.1",
|
|
31
|
-
"typescript": "~5.
|
|
32
|
-
"typescript-eslint": "^8.
|
|
31
|
+
"typescript": "~5.9.3",
|
|
32
|
+
"typescript-eslint": "^8.46.3"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"eslint": "^9.
|
|
35
|
+
"eslint": "^9.39.1"
|
|
36
36
|
}
|
|
37
37
|
}
|