@eslinted/defaults 10.35.0 → 11.0.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 (72) hide show
  1. package/dist/index.d.ts +1 -2
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/{settings.d.ts → settings/global/index.d.ts} +2 -2
  5. package/dist/settings/global/index.d.ts.map +1 -0
  6. package/dist/{settings.js → settings/global/index.js} +2 -2
  7. package/dist/settings/global/index.js.map +1 -0
  8. package/dist/settings/index.d.ts +86 -0
  9. package/dist/settings/index.d.ts.map +1 -0
  10. package/dist/settings/index.js +7 -0
  11. package/dist/settings/index.js.map +1 -0
  12. package/dist/settings/registry/index.d.ts +78 -0
  13. package/dist/settings/registry/index.d.ts.map +1 -0
  14. package/dist/settings/registry/index.js +23 -0
  15. package/dist/settings/registry/index.js.map +1 -0
  16. package/dist/settings/registry/manifests/css.d.ts +8 -0
  17. package/dist/settings/registry/manifests/css.d.ts.map +1 -0
  18. package/dist/settings/registry/manifests/css.js +10 -0
  19. package/dist/settings/registry/manifests/css.js.map +1 -0
  20. package/dist/settings/registry/manifests/html.d.ts +10 -0
  21. package/dist/settings/registry/manifests/html.d.ts.map +1 -0
  22. package/dist/settings/registry/manifests/html.js +11 -0
  23. package/dist/settings/registry/manifests/html.js.map +1 -0
  24. package/dist/settings/registry/manifests/js.d.ts +5 -0
  25. package/dist/settings/registry/manifests/js.d.ts.map +1 -0
  26. package/dist/settings/registry/manifests/js.js +9 -0
  27. package/dist/settings/registry/manifests/js.js.map +1 -0
  28. package/dist/settings/registry/manifests/json.d.ts +8 -0
  29. package/dist/settings/registry/manifests/json.d.ts.map +1 -0
  30. package/dist/settings/registry/manifests/json.js +8 -0
  31. package/dist/settings/registry/manifests/json.js.map +1 -0
  32. package/dist/settings/registry/manifests/jsonc.d.ts +6 -0
  33. package/dist/settings/registry/manifests/jsonc.d.ts.map +1 -0
  34. package/dist/settings/registry/manifests/jsonc.js +10 -0
  35. package/dist/settings/registry/manifests/jsonc.js.map +1 -0
  36. package/dist/settings/registry/manifests/jsoncc.d.ts +6 -0
  37. package/dist/settings/registry/manifests/jsoncc.d.ts.map +1 -0
  38. package/dist/settings/registry/manifests/jsoncc.js +10 -0
  39. package/dist/settings/registry/manifests/jsoncc.js.map +1 -0
  40. package/dist/settings/registry/manifests/mocha.d.ts +7 -0
  41. package/dist/settings/registry/manifests/mocha.d.ts.map +1 -0
  42. package/dist/settings/registry/manifests/mocha.js +9 -0
  43. package/dist/settings/registry/manifests/mocha.js.map +1 -0
  44. package/dist/settings/registry/manifests/svelte.d.ts +11 -0
  45. package/dist/settings/registry/manifests/svelte.d.ts.map +1 -0
  46. package/dist/settings/registry/manifests/svelte.js +11 -0
  47. package/dist/settings/registry/manifests/svelte.js.map +1 -0
  48. package/dist/settings/registry/manifests/ts.d.ts +17 -0
  49. package/dist/settings/registry/manifests/ts.d.ts.map +1 -0
  50. package/dist/settings/registry/manifests/ts.js +30 -0
  51. package/dist/settings/registry/manifests/ts.js.map +1 -0
  52. package/dist/settings/registry/manifests/yml.d.ts +7 -0
  53. package/dist/settings/registry/manifests/yml.d.ts.map +1 -0
  54. package/dist/settings/registry/manifests/yml.js +10 -0
  55. package/dist/settings/registry/manifests/yml.js.map +1 -0
  56. package/package.json +1 -1
  57. package/src/index.ts +0 -1
  58. package/src/{settings.ts → settings/global/index.ts} +1 -1
  59. package/src/settings/index.ts +7 -0
  60. package/src/settings/registry/index.ts +23 -0
  61. package/src/settings/registry/manifests/css.ts +9 -0
  62. package/src/settings/registry/manifests/html.ts +10 -0
  63. package/src/settings/registry/manifests/js.ts +8 -0
  64. package/src/settings/registry/manifests/json.ts +7 -0
  65. package/src/settings/registry/manifests/jsonc.ts +9 -0
  66. package/src/settings/registry/manifests/jsoncc.ts +9 -0
  67. package/src/settings/registry/manifests/mocha.ts +8 -0
  68. package/src/settings/registry/manifests/svelte.ts +10 -0
  69. package/src/settings/registry/manifests/ts.ts +30 -0
  70. package/src/settings/registry/manifests/yml.ts +9 -0
  71. package/dist/settings.d.ts.map +0 -1
  72. package/dist/settings.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- export { settings } from "./settings.js";
1
+ export { settings } from "./settings/index.js";
2
2
  export { files } from "./files/index.js";
3
3
  export { ignores } from "./ignores/index.js";
4
4
  export { rules } from "./rules/index.js";
5
- export type * as RuleStrings from "./rules/strings/index.js";
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,KAAK,WAAW,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { settings } from "./settings.js";
1
+ export { settings } from "./settings/index.js";
2
2
  export { files } from "./files/index.js";
3
3
  export { ignores } from "./ignores/index.js";
4
4
  export { rules } from "./rules/index.js";
@@ -1,7 +1,7 @@
1
- export declare const settings: {
1
+ export declare const global: {
2
2
  ecmaVersion: 2023;
3
3
  sourceType: "module";
4
4
  noInlineConfig: boolean;
5
5
  reportUnusedDisableDirectives: "error";
6
6
  };
7
- //# sourceMappingURL=settings.d.ts.map
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/settings/global/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;CAKlB,CAAC"}
@@ -1,7 +1,7 @@
1
- export const settings = {
1
+ export const global = {
2
2
  ecmaVersion: 2023,
3
3
  sourceType: "module",
4
4
  noInlineConfig: false,
5
5
  reportUnusedDisableDirectives: "error",
6
6
  };
7
- //# sourceMappingURL=settings.js.map
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/settings/global/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,WAAW,EAAE,IAAa;IAC1B,UAAU,EAAE,QAAiB;IAC7B,cAAc,EAAE,KAAK;IACrB,6BAA6B,EAAE,OAAgB;CAChD,CAAC"}
@@ -0,0 +1,86 @@
1
+ export declare const settings: {
2
+ global: {
3
+ ecmaVersion: 2023;
4
+ sourceType: "module";
5
+ noInlineConfig: boolean;
6
+ reportUnusedDisableDirectives: "error";
7
+ };
8
+ registry: {
9
+ js: {
10
+ languageOptions: {};
11
+ parserOptions: {};
12
+ };
13
+ ts: {
14
+ languageOptions: {
15
+ parser: "ts";
16
+ };
17
+ parserOptions: {
18
+ ecmaFeatures: {
19
+ globalReturn: boolean;
20
+ };
21
+ ecmaVersion: number;
22
+ emitDecoratorMetadata: boolean;
23
+ experimentalDecorators: boolean;
24
+ isolatedDeclarations: boolean;
25
+ projectService: boolean;
26
+ warnOnUnsupportedTypeScriptVersion: boolean;
27
+ };
28
+ };
29
+ mocha: {
30
+ languageOptions: {
31
+ globals: "mocha";
32
+ };
33
+ parserOptions: {};
34
+ };
35
+ svelte: {
36
+ languageOptions: {
37
+ parser: "svelte";
38
+ };
39
+ parserOptions: {
40
+ parser: "ts";
41
+ extraFileExtensions: string[];
42
+ };
43
+ processor: string;
44
+ };
45
+ html: {
46
+ languageOptions: {
47
+ parser: "html";
48
+ };
49
+ parserOptions: {
50
+ frontmatter: boolean;
51
+ };
52
+ language: string;
53
+ };
54
+ css: {
55
+ languageOptions: {
56
+ tolerant: boolean;
57
+ };
58
+ parserOptions: {};
59
+ language: string;
60
+ };
61
+ json: {
62
+ languageOptions: {
63
+ allowTrailingCommas: boolean;
64
+ };
65
+ parserOptions: {};
66
+ language: string;
67
+ };
68
+ jsonc: {
69
+ languageOptions: {};
70
+ parserOptions: {};
71
+ language: string;
72
+ };
73
+ jsoncc: {
74
+ languageOptions: {};
75
+ parserOptions: {};
76
+ language: string;
77
+ };
78
+ yml: {
79
+ languageOptions: {
80
+ parser: "yml";
81
+ };
82
+ parserOptions: {};
83
+ };
84
+ };
85
+ };
86
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/settings/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { global } from "./global/index.js";
2
+ import { registry } from "./registry/index.js";
3
+ export const settings = {
4
+ global,
5
+ registry,
6
+ };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/settings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,MAAM;IACN,QAAQ;CACT,CAAC"}
@@ -0,0 +1,78 @@
1
+ export declare const registry: {
2
+ js: {
3
+ languageOptions: {};
4
+ parserOptions: {};
5
+ };
6
+ ts: {
7
+ languageOptions: {
8
+ parser: "ts";
9
+ };
10
+ parserOptions: {
11
+ ecmaFeatures: {
12
+ globalReturn: boolean;
13
+ };
14
+ ecmaVersion: number;
15
+ emitDecoratorMetadata: boolean;
16
+ experimentalDecorators: boolean;
17
+ isolatedDeclarations: boolean;
18
+ projectService: boolean;
19
+ warnOnUnsupportedTypeScriptVersion: boolean;
20
+ };
21
+ };
22
+ mocha: {
23
+ languageOptions: {
24
+ globals: "mocha";
25
+ };
26
+ parserOptions: {};
27
+ };
28
+ svelte: {
29
+ languageOptions: {
30
+ parser: "svelte";
31
+ };
32
+ parserOptions: {
33
+ parser: "ts";
34
+ extraFileExtensions: string[];
35
+ };
36
+ processor: string;
37
+ };
38
+ html: {
39
+ languageOptions: {
40
+ parser: "html";
41
+ };
42
+ parserOptions: {
43
+ frontmatter: boolean;
44
+ };
45
+ language: string;
46
+ };
47
+ css: {
48
+ languageOptions: {
49
+ tolerant: boolean;
50
+ };
51
+ parserOptions: {};
52
+ language: string;
53
+ };
54
+ json: {
55
+ languageOptions: {
56
+ allowTrailingCommas: boolean;
57
+ };
58
+ parserOptions: {};
59
+ language: string;
60
+ };
61
+ jsonc: {
62
+ languageOptions: {};
63
+ parserOptions: {};
64
+ language: string;
65
+ };
66
+ jsoncc: {
67
+ languageOptions: {};
68
+ parserOptions: {};
69
+ language: string;
70
+ };
71
+ yml: {
72
+ languageOptions: {
73
+ parser: "yml";
74
+ };
75
+ parserOptions: {};
76
+ };
77
+ };
78
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/settings/registry/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWpB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { js } from "./manifests/js.js";
2
+ import { ts } from "./manifests/ts.js";
3
+ import { mocha } from "./manifests/mocha.js";
4
+ import { svelte } from "./manifests/svelte.js";
5
+ import { html } from "./manifests/html.js";
6
+ import { css } from "./manifests/css.js";
7
+ import { json } from "./manifests/json.js";
8
+ import { jsonc } from "./manifests/jsonc.js";
9
+ import { jsoncc } from "./manifests/jsoncc.js";
10
+ import { yml } from "./manifests/yml.js";
11
+ export const registry = {
12
+ js,
13
+ ts,
14
+ mocha,
15
+ svelte,
16
+ html,
17
+ css,
18
+ json,
19
+ jsonc,
20
+ jsoncc,
21
+ yml,
22
+ };
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/settings/registry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,EAAE;IACF,EAAE;IACF,KAAK;IACL,MAAM;IACN,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,KAAK;IACL,MAAM;IACN,GAAG;CACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const css: {
2
+ languageOptions: {
3
+ tolerant: boolean;
4
+ };
5
+ parserOptions: {};
6
+ language: string;
7
+ };
8
+ //# sourceMappingURL=css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/css.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG;;;;;;CAQf,CAAC"}
@@ -0,0 +1,10 @@
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
+ };
10
+ //# sourceMappingURL=css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/css.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,eAAe,EAAE;QACf,kEAAkE;QAClE,QAAQ,EAAE,KAAK,CAAC,0FAA0F;QAC1G,wMAAwM;KACzM;IACD,aAAa,EAAE,EAAE;IACjB,QAAQ,EAAE,SAAS;CACpB,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare const html: {
2
+ languageOptions: {
3
+ parser: "html";
4
+ };
5
+ parserOptions: {
6
+ frontmatter: boolean;
7
+ };
8
+ language: string;
9
+ };
10
+ //# sourceMappingURL=html.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/html.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;CAShB,CAAC"}
@@ -0,0 +1,11 @@
1
+ export const html = {
2
+ languageOptions: {
3
+ parser: "html",
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
+ };
11
+ //# sourceMappingURL=html.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/html.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,eAAe,EAAE;QACf,MAAM,EAAE,MAAe;KACxB;IACD,aAAa,EAAE;QACb,gGAAgG;QAChG,WAAW,EAAE,IAAI,CAAC,sGAAsG;KACzH;IACD,QAAQ,EAAE,mBAAmB;CAC9B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const js: {
2
+ languageOptions: {};
3
+ parserOptions: {};
4
+ };
5
+ //# sourceMappingURL=js.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/js.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE;;;CAOd,CAAC"}
@@ -0,0 +1,9 @@
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
+ };
9
+ //# sourceMappingURL=js.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"js.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/js.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,EAAE,GAAG;IAChB,eAAe,EAAE;IACf,qEAAqE;KACtE;IACD,aAAa,EAAE;IACb,+FAA+F;KAChG;CACF,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const json: {
2
+ languageOptions: {
3
+ allowTrailingCommas: boolean;
4
+ };
5
+ parserOptions: {};
6
+ language: string;
7
+ };
8
+ //# sourceMappingURL=json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/json.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;CAMhB,CAAC"}
@@ -0,0 +1,8 @@
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
+ };
8
+ //# sourceMappingURL=json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/json.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,eAAe,EAAE;QACf,mBAAmB,EAAE,IAAI,CAAC,8FAA8F;KACzH;IACD,aAAa,EAAE,EAAE;IACjB,QAAQ,EAAE,YAAY,CAAC,4FAA4F;CACpH,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const jsonc: {
2
+ languageOptions: {};
3
+ parserOptions: {};
4
+ language: string;
5
+ };
6
+ //# sourceMappingURL=jsonc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/jsonc.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;CAQjB,CAAC"}
@@ -0,0 +1,10 @@
1
+ export const jsonc = {
2
+ languageOptions: {
3
+ // Inherits `json`
4
+ },
5
+ parserOptions: {
6
+ // Inherits `json`
7
+ },
8
+ language: "json/jsonc",
9
+ };
10
+ //# sourceMappingURL=jsonc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/jsonc.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,eAAe,EAAE;IACf,kBAAkB;KACnB;IACD,aAAa,EAAE;IACb,kBAAkB;KACnB;IACD,QAAQ,EAAE,YAAY;CACvB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const jsoncc: {
2
+ languageOptions: {};
3
+ parserOptions: {};
4
+ language: string;
5
+ };
6
+ //# sourceMappingURL=jsoncc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsoncc.d.ts","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/jsoncc.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;CAQlB,CAAC"}
@@ -0,0 +1,10 @@
1
+ export const jsoncc = {
2
+ languageOptions: {
3
+ // Inherits `jsonc`
4
+ },
5
+ parserOptions: {
6
+ // Inherits `jsonc`
7
+ },
8
+ language: "json/jsonc",
9
+ };
10
+ //# sourceMappingURL=jsoncc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsoncc.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/jsoncc.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,eAAe,EAAE;IACf,mBAAmB;KACpB;IACD,aAAa,EAAE;IACb,mBAAmB;KACpB;IACD,QAAQ,EAAE,YAAY;CACvB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const mocha: {
2
+ languageOptions: {
3
+ globals: "mocha";
4
+ };
5
+ parserOptions: {};
6
+ };
7
+ //# sourceMappingURL=mocha.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mocha.d.ts","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/mocha.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;;CAOjB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export const mocha = {
2
+ languageOptions: {
3
+ globals: "mocha",
4
+ },
5
+ parserOptions: {
6
+ // Inherits `ts`
7
+ },
8
+ };
9
+ //# sourceMappingURL=mocha.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/mocha.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,eAAe,EAAE;QACf,OAAO,EAAE,OAAgB;KAC1B;IACD,aAAa,EAAE;IACb,gBAAgB;KACjB;CACF,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const svelte: {
2
+ languageOptions: {
3
+ parser: "svelte";
4
+ };
5
+ parserOptions: {
6
+ parser: "ts";
7
+ extraFileExtensions: string[];
8
+ };
9
+ processor: string;
10
+ };
11
+ //# sourceMappingURL=svelte.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/svelte.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;CASlB,CAAC"}
@@ -0,0 +1,11 @@
1
+ export const svelte = {
2
+ languageOptions: {
3
+ parser: "svelte",
4
+ },
5
+ parserOptions: {
6
+ parser: "ts",
7
+ extraFileExtensions: [".svelte"],
8
+ },
9
+ processor: "svelte/svelte",
10
+ };
11
+ //# sourceMappingURL=svelte.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/svelte.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,MAAM,EAAE,QAAiB;KAC1B;IACD,aAAa,EAAE;QACb,MAAM,EAAE,IAAa;QACrB,mBAAmB,EAAE,CAAC,SAAS,CAAC;KACjC;IACD,SAAS,EAAE,eAAe;CAC3B,CAAC"}
@@ -0,0 +1,17 @@
1
+ export declare const ts: {
2
+ languageOptions: {
3
+ parser: "ts";
4
+ };
5
+ parserOptions: {
6
+ ecmaFeatures: {
7
+ globalReturn: boolean;
8
+ };
9
+ ecmaVersion: number;
10
+ emitDecoratorMetadata: boolean;
11
+ experimentalDecorators: boolean;
12
+ isolatedDeclarations: boolean;
13
+ projectService: boolean;
14
+ warnOnUnsupportedTypeScriptVersion: boolean;
15
+ };
16
+ };
17
+ //# sourceMappingURL=ts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/ts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;CA6Bd,CAAC"}
@@ -0,0 +1,30 @@
1
+ export const ts = {
2
+ languageOptions: {
3
+ parser: "ts",
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
+ // disallowAutomaticSingleRunInference: false /* @default: false */,
12
+ // cacheLifetime: { glob: 30 } /* { glob: "Infinity" (never) | number | @default: 30 seconds } */,
13
+ ecmaFeatures: {
14
+ // jsx: false /* @default: false */,
15
+ globalReturn: true /* @default: false */,
16
+ },
17
+ ecmaVersion: 2023 /* number | @default: latest" */,
18
+ emitDecoratorMetadata: false /* boolean | @default: undefined (inherits tsconfig, which has @default: false) */,
19
+ experimentalDecorators: false /* boolean | @default: undefined (inherits tsconfig, which has @default: false) */,
20
+ // extraFileExtensions: [] /* string[] | @default: [] (none) | BUG: https://typescript-eslint.io/troubleshooting/typed-linting/performance/#changes-to-extrafileextensions-with-projectservice */,
21
+ isolatedDeclarations: false /* boolean | @default: undefined (inherits tsconfig, which has @default: false) */,
22
+ // jsDocParsingMode: "all" /* type-info | @default(if `parserOptions.project` is set): all | @default: none */,
23
+ // jsxFragmentName: null /* string | @default: null | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
24
+ // jsxPragma: "React" /* null | string (e.g. "preact") | @default: "React" | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
25
+ // lib: ["es2018"] /* string[] | @default: ["es2018"] | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
26
+ projectService: true /* ProjectServiceOptions (DOC: https://typescript-eslint.io/packages/parser/#projectserviceoptions) | true | @default: false */,
27
+ warnOnUnsupportedTypeScriptVersion: false /* preference due to nuisance | @default: true */,
28
+ },
29
+ };
30
+ //# sourceMappingURL=ts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/ts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,EAAE,GAAG;IAChB,eAAe,EAAE;QACf,MAAM,EAAE,IAAa;KACtB;IACD,aAAa,EAAE;QACb,mEAAmE;QACnE,6GAA6G;QAC7G,uDAAuD;QACvD,gEAAgE;QAChE,gEAAgE;QAEhE,oEAAoE;QACpE,kGAAkG;QAClG,YAAY,EAAE;YACZ,oCAAoC;YACpC,YAAY,EAAE,IAAI,CAAC,qBAAqB;SACzC;QACD,WAAW,EAAE,IAAI,CAAC,gCAAgC;QAClD,qBAAqB,EAAE,KAAK,CAAC,kFAAkF;QAC/G,sBAAsB,EAAE,KAAK,CAAC,kFAAkF;QAChH,kMAAkM;QAClM,oBAAoB,EAAE,KAAK,CAAC,kFAAkF;QAC9G,+GAA+G;QAC/G,yJAAyJ;QACzJ,gLAAgL;QAChL,2JAA2J;QAC3J,cAAc,EAAE,IAAI,CAAC,+HAA+H;QACpJ,kCAAkC,EAAE,KAAK,CAAC,iDAAiD;KAC5F;CACF,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const yml: {
2
+ languageOptions: {
3
+ parser: "yml";
4
+ };
5
+ parserOptions: {};
6
+ };
7
+ //# sourceMappingURL=yml.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/yml.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG;;;;;CAQf,CAAC"}
@@ -0,0 +1,10 @@
1
+ export const yml = {
2
+ languageOptions: {
3
+ parser: "yml",
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
+ };
10
+ //# sourceMappingURL=yml.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../../src/settings/registry/manifests/yml.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,eAAe,EAAE;QACf,MAAM,EAAE,KAAc;KACvB;IACD,aAAa,EAAE;IACb,iGAAiG;IACjG,qKAAqK;KACtK;CACF,CAAC"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "$schema": "https://json.schemastore.org/package",
4
4
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
5
  "name": "@eslinted/defaults",
6
- "version": "10.35.0",
6
+ "version": "11.0.0",
7
7
  "repository": "github:jimmy-zhening-luo/linted-defaults",
8
8
  "private": false,
9
9
  "engineStrict": true,
package/src/index.ts CHANGED
@@ -2,4 +2,3 @@ export { settings } from "./settings";
2
2
  export { files } from "./files";
3
3
  export { ignores } from "./ignores";
4
4
  export { rules } from "./rules";
5
- export type * as RuleStrings from "./rules/strings";
@@ -1,4 +1,4 @@
1
- export const settings = {
1
+ export const global = {
2
2
  ecmaVersion: 2023 as const,
3
3
  sourceType: "module" as const,
4
4
  noInlineConfig: false,
@@ -0,0 +1,7 @@
1
+ import { global } from "./global";
2
+ import { registry } from "./registry";
3
+
4
+ export const settings = {
5
+ global,
6
+ registry,
7
+ };
@@ -0,0 +1,23 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,10 @@
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
+ };
@@ -0,0 +1,8 @@
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
+ };
@@ -0,0 +1,7 @@
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
+ };
@@ -0,0 +1,9 @@
1
+ export const jsonc = {
2
+ languageOptions: {
3
+ // Inherits `json`
4
+ },
5
+ parserOptions: {
6
+ // Inherits `json`
7
+ },
8
+ language: "json/jsonc",
9
+ };
@@ -0,0 +1,9 @@
1
+ export const jsoncc = {
2
+ languageOptions: {
3
+ // Inherits `jsonc`
4
+ },
5
+ parserOptions: {
6
+ // Inherits `jsonc`
7
+ },
8
+ language: "json/jsonc",
9
+ };
@@ -0,0 +1,8 @@
1
+ export const mocha = {
2
+ languageOptions: {
3
+ globals: "mocha" as const,
4
+ },
5
+ parserOptions: {
6
+ // Inherits `ts`
7
+ },
8
+ };
@@ -0,0 +1,10 @@
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
+ };
@@ -0,0 +1,30 @@
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
+ };
@@ -0,0 +1,9 @@
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
+ };
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,WAAW,EAAE,IAAa;IAC1B,UAAU,EAAE,QAAiB;IAC7B,cAAc,EAAE,KAAK;IACrB,6BAA6B,EAAE,OAAgB;CAChD,CAAC"}