@eslinted/core 20.0.0 → 21.0.0-rc.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.
Files changed (97) hide show
  1. package/dist/_test/index.d.ts +71 -2
  2. package/dist/_test/index.d.ts.map +1 -1
  3. package/dist/_test/index.js +71 -2
  4. package/dist/_test/index.js.map +1 -1
  5. package/dist/factory/index.d.ts +9 -7
  6. package/dist/factory/index.d.ts.map +1 -1
  7. package/dist/factory/index.js +12 -12
  8. package/dist/factory/index.js.map +1 -1
  9. package/dist/index.d.ts +1 -1
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +3 -3
  12. package/dist/index.js.map +1 -1
  13. package/dist/interface/input/configuration/defaults.d.ts +0 -1
  14. package/dist/interface/input/configuration/defaults.d.ts.map +1 -1
  15. package/dist/interface/input/configuration/index.d.ts +3 -1
  16. package/dist/interface/input/configuration/index.d.ts.map +1 -1
  17. package/dist/interface/input/configuration/manifest/index.d.ts +14 -0
  18. package/dist/interface/input/configuration/manifest/index.d.ts.map +1 -0
  19. package/dist/interface/input/configuration/manifest/index.js +2 -0
  20. package/dist/interface/input/configuration/manifest/index.js.map +1 -0
  21. package/dist/interface/input/configuration/settings.d.ts +7 -0
  22. package/dist/interface/input/configuration/settings.d.ts.map +1 -0
  23. package/dist/interface/input/configuration/settings.js +2 -0
  24. package/dist/interface/input/configuration/settings.js.map +1 -0
  25. package/dist/interface/input/index.d.ts +1 -1
  26. package/dist/interface/input/index.d.ts.map +1 -1
  27. package/dist/scope/index.d.ts +0 -1
  28. package/dist/scope/index.d.ts.map +1 -1
  29. package/dist/scope/index.js +0 -1
  30. package/dist/scope/index.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/_test/index.ts +71 -2
  33. package/src/factory/index.ts +24 -21
  34. package/src/index.ts +2 -2
  35. package/src/interface/input/configuration/defaults.ts +0 -4
  36. package/src/interface/input/configuration/index.ts +6 -0
  37. package/src/{factory/model/manifest.d.ts → interface/input/configuration/manifest/index.ts} +2 -2
  38. package/src/interface/input/configuration/settings.ts +18 -0
  39. package/src/interface/input/index.ts +2 -1
  40. package/src/scope/index.ts +0 -1
  41. package/dist/scope/registry/index.d.ts +0 -78
  42. package/dist/scope/registry/index.d.ts.map +0 -1
  43. package/dist/scope/registry/index.js +0 -23
  44. package/dist/scope/registry/index.js.map +0 -1
  45. package/dist/scope/registry/manifests/css.d.ts +0 -8
  46. package/dist/scope/registry/manifests/css.d.ts.map +0 -1
  47. package/dist/scope/registry/manifests/css.js +0 -10
  48. package/dist/scope/registry/manifests/css.js.map +0 -1
  49. package/dist/scope/registry/manifests/html.d.ts +0 -10
  50. package/dist/scope/registry/manifests/html.d.ts.map +0 -1
  51. package/dist/scope/registry/manifests/html.js +0 -11
  52. package/dist/scope/registry/manifests/html.js.map +0 -1
  53. package/dist/scope/registry/manifests/js.d.ts +0 -5
  54. package/dist/scope/registry/manifests/js.d.ts.map +0 -1
  55. package/dist/scope/registry/manifests/js.js +0 -9
  56. package/dist/scope/registry/manifests/js.js.map +0 -1
  57. package/dist/scope/registry/manifests/json.d.ts +0 -8
  58. package/dist/scope/registry/manifests/json.d.ts.map +0 -1
  59. package/dist/scope/registry/manifests/json.js +0 -8
  60. package/dist/scope/registry/manifests/json.js.map +0 -1
  61. package/dist/scope/registry/manifests/jsonc.d.ts +0 -6
  62. package/dist/scope/registry/manifests/jsonc.d.ts.map +0 -1
  63. package/dist/scope/registry/manifests/jsonc.js +0 -10
  64. package/dist/scope/registry/manifests/jsonc.js.map +0 -1
  65. package/dist/scope/registry/manifests/jsoncc.d.ts +0 -6
  66. package/dist/scope/registry/manifests/jsoncc.d.ts.map +0 -1
  67. package/dist/scope/registry/manifests/jsoncc.js +0 -10
  68. package/dist/scope/registry/manifests/jsoncc.js.map +0 -1
  69. package/dist/scope/registry/manifests/mocha.d.ts +0 -7
  70. package/dist/scope/registry/manifests/mocha.d.ts.map +0 -1
  71. package/dist/scope/registry/manifests/mocha.js +0 -9
  72. package/dist/scope/registry/manifests/mocha.js.map +0 -1
  73. package/dist/scope/registry/manifests/svelte.d.ts +0 -11
  74. package/dist/scope/registry/manifests/svelte.d.ts.map +0 -1
  75. package/dist/scope/registry/manifests/svelte.js +0 -11
  76. package/dist/scope/registry/manifests/svelte.js.map +0 -1
  77. package/dist/scope/registry/manifests/ts.d.ts +0 -17
  78. package/dist/scope/registry/manifests/ts.d.ts.map +0 -1
  79. package/dist/scope/registry/manifests/ts.js +0 -30
  80. package/dist/scope/registry/manifests/ts.js.map +0 -1
  81. package/dist/scope/registry/manifests/yml.d.ts +0 -7
  82. package/dist/scope/registry/manifests/yml.d.ts.map +0 -1
  83. package/dist/scope/registry/manifests/yml.js +0 -10
  84. package/dist/scope/registry/manifests/yml.js.map +0 -1
  85. package/src/factory/model/index.d.ts +0 -2
  86. package/src/factory/model/tree.d.ts +0 -8
  87. package/src/scope/registry/index.ts +0 -23
  88. package/src/scope/registry/manifests/css.ts +0 -9
  89. package/src/scope/registry/manifests/html.ts +0 -10
  90. package/src/scope/registry/manifests/js.ts +0 -8
  91. package/src/scope/registry/manifests/json.ts +0 -7
  92. package/src/scope/registry/manifests/jsonc.ts +0 -9
  93. package/src/scope/registry/manifests/jsoncc.ts +0 -9
  94. package/src/scope/registry/manifests/mocha.ts +0 -8
  95. package/src/scope/registry/manifests/svelte.ts +0 -10
  96. package/src/scope/registry/manifests/ts.ts +0 -30
  97. package/src/scope/registry/manifests/yml.ts +0 -9
@@ -1,23 +0,0 @@
1
- import { js } from "./manifests/js";
2
- import { ts } from "./manifests/ts";
3
- import { mocha } from "./manifests/mocha";
4
- import { svelte } from "./manifests/svelte";
5
- import { html } from "./manifests/html";
6
- import { css } from "./manifests/css";
7
- import { json } from "./manifests/json";
8
- import { jsonc } from "./manifests/jsonc";
9
- import { jsoncc } from "./manifests/jsoncc";
10
- import { yml } from "./manifests/yml";
11
-
12
- export const registry = {
13
- js,
14
- ts,
15
- mocha,
16
- svelte,
17
- html,
18
- css,
19
- json,
20
- jsonc,
21
- jsoncc,
22
- yml,
23
- };
@@ -1,9 +0,0 @@
1
- export const css = {
2
- languageOptions: {
3
- // DOC: https://github.com/eslint/css?tab=readme-ov-file#languages
4
- tolerant: false /* @default: true | DOC: https://github.com/eslint/css?tab=readme-ov-file#tolerant-mode */,
5
- // customSyntax: {} /* DOC: Tailwind: https://github.com/eslint/css?tab=readme-ov-file#configuring-tailwind-syntax | DOC: https://github.com/eslint/css?tab=readme-ov-file#configuring-custom-syntax */,
6
- },
7
- parserOptions: {},
8
- language: "css/css",
9
- };
@@ -1,10 +0,0 @@
1
- export const html = {
2
- languageOptions: {
3
- parser: "html" as const,
4
- },
5
- parserOptions: {
6
- // templateEngineSyntax: {} /* DOC: https://html-eslint.org/docs/integrating-template-engine */,
7
- frontmatter: true /* @default: false | DOC: https://html-eslint.org/docs/integrating-template-engine#skip-frontmatter */,
8
- },
9
- language: "@html-eslint/html",
10
- };
@@ -1,8 +0,0 @@
1
- export const js = {
2
- languageOptions: {
3
- // DOC: https://eslint.org/docs/latest/use/configure/language-options
4
- },
5
- parserOptions: {
6
- // DOC: https://eslint.org/docs/latest/use/configure/language-options#specifying-parser-options
7
- },
8
- };
@@ -1,7 +0,0 @@
1
- export const json = {
2
- languageOptions: {
3
- allowTrailingCommas: true /* DOC: https://github.com/eslint/json?tab=readme-ov-file#allowing-trailing-commas-in-jsonc */,
4
- },
5
- parserOptions: {},
6
- language: "json/jsonc" /* INFO: `languageOptions.allowTrailingCommas` is only available on language `json/jsonc` */,
7
- };
@@ -1,9 +0,0 @@
1
- export const jsonc = {
2
- languageOptions: {
3
- // Inherits `json`
4
- },
5
- parserOptions: {
6
- // Inherits `json`
7
- },
8
- language: "json/jsonc",
9
- };
@@ -1,9 +0,0 @@
1
- export const jsoncc = {
2
- languageOptions: {
3
- // Inherits `jsonc`
4
- },
5
- parserOptions: {
6
- // Inherits `jsonc`
7
- },
8
- language: "json/jsonc",
9
- };
@@ -1,8 +0,0 @@
1
- export const mocha = {
2
- languageOptions: {
3
- globals: "mocha" as const,
4
- },
5
- parserOptions: {
6
- // Inherits `ts`
7
- },
8
- };
@@ -1,10 +0,0 @@
1
- export const svelte = {
2
- languageOptions: {
3
- parser: "svelte" as const,
4
- },
5
- parserOptions: {
6
- parser: "ts" as const,
7
- extraFileExtensions: [".svelte"],
8
- },
9
- processor: "svelte/svelte",
10
- };
@@ -1,30 +0,0 @@
1
- export const ts = {
2
- languageOptions: {
3
- parser: "ts" as const,
4
- },
5
- parserOptions: {
6
- // DOC: https://typescript-eslint.io/packages/parser/#configuration
7
- // INFO: `parserOptions.projectService` is the modern replacement for the deprecated `parserOptions.project`:
8
- // - https://typescript-eslint.io/blog/project-service/
9
- // - https://typescript-eslint.io/getting-started/typed-linting/
10
- // - https://typescript-eslint.io/troubleshooting/typed-linting/
11
-
12
- // disallowAutomaticSingleRunInference: false /* @default: false */,
13
- // cacheLifetime: { glob: 30 } /* { glob: "Infinity" (never) | number | @default: 30 seconds } */,
14
- ecmaFeatures: {
15
- // jsx: false /* @default: false */,
16
- globalReturn: true /* @default: false */,
17
- },
18
- ecmaVersion: 2023 /* number | @default: latest" */,
19
- emitDecoratorMetadata: false /* boolean | @default: undefined (inherits tsconfig, which has @default: false) */,
20
- experimentalDecorators: false /* boolean | @default: undefined (inherits tsconfig, which has @default: false) */,
21
- // extraFileExtensions: [] /* string[] | @default: [] (none) | BUG: https://typescript-eslint.io/troubleshooting/typed-linting/performance/#changes-to-extrafileextensions-with-projectservice */,
22
- isolatedDeclarations: false /* boolean | @default: undefined (inherits tsconfig, which has @default: false) */,
23
- // jsDocParsingMode: "all" /* type-info | @default(if `parserOptions.project` is set): all | @default: none */,
24
- // jsxFragmentName: null /* string | @default: null | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
25
- // jsxPragma: "React" /* null | string (e.g. "preact") | @default: "React" | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
26
- // lib: ["es2018"] /* string[] | @default: ["es2018"] | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
27
- projectService: true /* ProjectServiceOptions (DOC: https://typescript-eslint.io/packages/parser/#projectserviceoptions) | true | @default: false */,
28
- warnOnUnsupportedTypeScriptVersion: false /* preference due to nuisance | @default: true */,
29
- },
30
- };
@@ -1,9 +0,0 @@
1
- export const yml = {
2
- languageOptions: {
3
- parser: "yml" as const,
4
- },
5
- parserOptions: {
6
- // DOC: https://github.com/ota-meshi/yaml-eslint-parser?tab=readme-ov-file#advanced-configuration
7
- // defaultYAMLVersion: "1.2" /* "1.1" | @default: "1.2" | DOC: https://github.com/ota-meshi/yaml-eslint-parser?tab=readme-ov-file#parseroptionsdefaultyamlversion */,
8
- },
9
- };