@luxass/eslint-config 4.0.0-beta.1 → 4.0.0-beta.2

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 (88) hide show
  1. package/dist/{chunk-D22QGGAS.mjs → chunk-2EQRCLEQ.mjs} +19 -16
  2. package/dist/{chunk-C6E356K2.mjs → chunk-5CXAPQV3.mjs} +26 -3
  3. package/dist/{chunk-QLZ7XDIR.mjs → chunk-6SYSH62F.mjs} +3 -3
  4. package/dist/{chunk-KZ7VBBWT.mjs → chunk-AM4JLG65.mjs} +42 -2
  5. package/dist/{chunk-DX7HDGX6.mjs → chunk-BTZJDCAN.mjs} +1 -1
  6. package/dist/{chunk-EM2N3I25.mjs → chunk-DCGVBPLE.mjs} +1 -1
  7. package/dist/chunk-G6V66ILI.mjs +63 -0
  8. package/dist/{chunk-UGD2TRXO.mjs → chunk-HLDEUDLN.mjs} +2 -2
  9. package/dist/{chunk-3JCJ7J5K.mjs → chunk-NRBPL3VW.mjs} +1 -1
  10. package/dist/{chunk-KTJ5MQXV.mjs → chunk-OGH5EICB.mjs} +7 -2
  11. package/dist/{chunk-RFYK7NGH.mjs → chunk-R3GRT6P5.mjs} +4 -4
  12. package/dist/{chunk-WGDT3TJP.mjs → chunk-WVJWB3E2.mjs} +1 -1
  13. package/dist/{chunk-GNERIPAH.mjs → chunk-ZTOORI5P.mjs} +1 -1
  14. package/dist/configs/comments.d.cts +1 -1
  15. package/dist/configs/comments.d.ts +1 -1
  16. package/dist/configs/ignores.cjs +19 -0
  17. package/dist/configs/ignores.d.cts +1 -1
  18. package/dist/configs/ignores.d.ts +1 -1
  19. package/dist/configs/ignores.mjs +2 -2
  20. package/dist/configs/imports.d.cts +2 -2
  21. package/dist/configs/imports.d.ts +2 -2
  22. package/dist/configs/index.cjs +145 -25
  23. package/dist/configs/index.d.cts +2 -1
  24. package/dist/configs/index.d.ts +2 -1
  25. package/dist/configs/index.mjs +18 -14
  26. package/dist/configs/javascript.cjs +20 -3
  27. package/dist/configs/javascript.d.cts +2 -2
  28. package/dist/configs/javascript.d.ts +2 -2
  29. package/dist/configs/javascript.mjs +2 -2
  30. package/dist/configs/jsdoc.d.cts +2 -2
  31. package/dist/configs/jsdoc.d.ts +2 -2
  32. package/dist/configs/jsonc.cjs +17 -0
  33. package/dist/configs/jsonc.d.cts +2 -2
  34. package/dist/configs/jsonc.d.ts +2 -2
  35. package/dist/configs/jsonc.mjs +2 -2
  36. package/dist/configs/markdown.cjs +17 -0
  37. package/dist/configs/markdown.d.cts +2 -2
  38. package/dist/configs/markdown.d.ts +2 -2
  39. package/dist/configs/markdown.mjs +2 -2
  40. package/dist/configs/nextjs.cjs +33 -15
  41. package/dist/configs/nextjs.d.cts +2 -2
  42. package/dist/configs/nextjs.d.ts +2 -2
  43. package/dist/configs/nextjs.mjs +2 -2
  44. package/dist/configs/node.d.cts +1 -1
  45. package/dist/configs/node.d.ts +1 -1
  46. package/dist/configs/perfectionist.cjs +2 -2
  47. package/dist/configs/perfectionist.d.cts +2 -2
  48. package/dist/configs/perfectionist.d.ts +2 -2
  49. package/dist/configs/perfectionist.mjs +1 -1
  50. package/dist/configs/react.cjs +24 -2
  51. package/dist/configs/react.d.cts +1 -1
  52. package/dist/configs/react.d.ts +1 -1
  53. package/dist/configs/react.mjs +2 -2
  54. package/dist/configs/sort.d.cts +1 -1
  55. package/dist/configs/sort.d.ts +1 -1
  56. package/dist/configs/stylistic.d.cts +1 -1
  57. package/dist/configs/stylistic.d.ts +1 -1
  58. package/dist/configs/tailwindcss.cjs +128 -0
  59. package/dist/configs/tailwindcss.d.cts +14 -0
  60. package/dist/configs/tailwindcss.d.ts +14 -0
  61. package/dist/configs/tailwindcss.mjs +8 -0
  62. package/dist/configs/test.cjs +19 -2
  63. package/dist/configs/test.d.cts +2 -2
  64. package/dist/configs/test.d.ts +2 -2
  65. package/dist/configs/test.mjs +2 -2
  66. package/dist/configs/typescript.cjs +58 -1
  67. package/dist/configs/typescript.d.cts +2 -2
  68. package/dist/configs/typescript.d.ts +2 -2
  69. package/dist/configs/typescript.mjs +2 -2
  70. package/dist/configs/unicorn.d.cts +1 -1
  71. package/dist/configs/unicorn.d.ts +1 -1
  72. package/dist/configs/unocss.d.cts +1 -1
  73. package/dist/configs/unocss.d.ts +1 -1
  74. package/dist/configs/vue.cjs +17 -0
  75. package/dist/configs/vue.d.cts +2 -2
  76. package/dist/configs/vue.d.ts +2 -2
  77. package/dist/configs/vue.mjs +2 -2
  78. package/dist/configs/yaml.cjs +17 -0
  79. package/dist/configs/yaml.d.cts +2 -2
  80. package/dist/configs/yaml.d.ts +2 -2
  81. package/dist/configs/yaml.mjs +2 -2
  82. package/dist/index.cjs +177 -41
  83. package/dist/index.d.cts +7 -6
  84. package/dist/index.d.ts +7 -6
  85. package/dist/index.mjs +49 -29
  86. package/dist/{types-1OpPSxOO.d.ts → types-3xH9kIfB.d.ts} +56 -16
  87. package/package.json +2 -1
  88. /package/dist/{chunk-P6SR2VCL.mjs → chunk-QMWKLGGE.mjs} +0 -0
@@ -1,13 +1,16 @@
1
1
  import {
2
+ GLOB_NEXTJS_OG,
3
+ GLOB_NEXTJS_ROUTES,
2
4
  GLOB_SRC
3
- } from "./chunk-C6E356K2.mjs";
5
+ } from "./chunk-5CXAPQV3.mjs";
4
6
  import {
5
7
  interop
6
8
  } from "./chunk-4VUK6ART.mjs";
7
9
 
8
10
  // src/configs/nextjs.ts
9
- async function nextjs() {
11
+ async function nextjs(options = {}) {
10
12
  const pluginNextjs = await interop(import("@next/eslint-plugin-next"));
13
+ const { overrides, rootDir } = options;
11
14
  return [
12
15
  {
13
16
  name: "luxass:nextjs:setup",
@@ -43,11 +46,12 @@ async function nextjs() {
43
46
  "@next/next/no-unwanted-polyfillio": ["warn"],
44
47
  "jsx-a11y/anchor-is-valid": ["off"],
45
48
  // This rule creates errors with webpack parsing on edge runtime
46
- "unicorn/prefer-node-protocol": ["off"]
49
+ "unicorn/prefer-node-protocol": ["off"],
50
+ ...overrides
47
51
  },
48
52
  settings: {
49
53
  next: {
50
- rootDir: true
54
+ rootDir: rootDir ?? true
51
55
  },
52
56
  react: {
53
57
  pragma: "React",
@@ -56,20 +60,19 @@ async function nextjs() {
56
60
  }
57
61
  },
58
62
  {
59
- files: [
60
- "**/app/**/page.{js,jsx,tsx}",
61
- "**/app/**/layout.{js,jsx,tsx}",
62
- "**/app/**/error.{js,jsx,tsx}",
63
- "**/app/**/template.{js,jsx,tsx}",
64
- "**/app/**/not-found.{js,jsx,tsx}",
65
- "**/app/**/loading.{js,jsx,tsx}",
66
- "**/app/**/robots.{js,jsx,ts,tsx}",
67
- "**/app/**/sitemap.{js,jsx,ts,tsx}",
68
- "**/pages/**/*.{js,jsx,tsx}"
69
- ],
63
+ files: GLOB_NEXTJS_ROUTES,
70
64
  name: "luxass:nextjs:default-export-override",
71
65
  rules: {
72
- "import/no-default-export": "off"
66
+ "import/prefer-default-export": "error"
67
+ }
68
+ },
69
+ {
70
+ files: GLOB_NEXTJS_OG,
71
+ name: "luxass:nextjs:allow-tw-property",
72
+ rules: {
73
+ "react/no-unknown-property": ["error", {
74
+ ignore: ["tw"]
75
+ }]
73
76
  }
74
77
  }
75
78
  ];
@@ -5,7 +5,7 @@ var GLOB_JS = "**/*.?([cm])js";
5
5
  var GLOB_JSX = "**/*.?([cm])jsx";
6
6
  var GLOB_TS = "**/*.?([cm])ts";
7
7
  var GLOB_TSX = "**/*.?([cm])tsx";
8
- var GLOB_REACT = "**/*.?([cm])?(j|t)sx";
8
+ var GLOB_JSX_EXT = "[jt]sx";
9
9
  var GLOB_STYLE = "**/*.{c,le,sc}ss";
10
10
  var GLOB_CSS = "**/*.css";
11
11
  var GLOB_LESS = "**/*.less";
@@ -15,6 +15,7 @@ var GLOB_JSON5 = "**/*.json5";
15
15
  var GLOB_JSONC = "**/*.jsonc";
16
16
  var GLOB_MARKDOWN = "**/*.md";
17
17
  var GLOB_VUE = "**/*.vue";
18
+ var GLOB_REACT = GLOB_SRC;
18
19
  var GLOB_YAML = "**/*.y?(a)ml";
19
20
  var GLOB_HTML = "**/*.htm?(l)";
20
21
  var GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
@@ -25,6 +26,22 @@ var GLOB_TESTS = [
25
26
  `**/*.bench.${GLOB_SRC_EXT}`,
26
27
  `**/*.benchmark.${GLOB_SRC_EXT}`
27
28
  ];
29
+ var GLOB_NEXTJS_OG = [
30
+ `**/app/**/opengraph-image.${GLOB_JSX_EXT}`,
31
+ `**/app/**/twitter-image.${GLOB_JSX_EXT}`,
32
+ `**/app/**/route.${GLOB_JSX_EXT}`
33
+ ];
34
+ var GLOB_NEXTJS_ROUTES = [
35
+ `**/app/**/page.${GLOB_SRC_EXT}`,
36
+ `**/app/**/layout.${GLOB_SRC_EXT}`,
37
+ `**/app/**/error.${GLOB_SRC_EXT}`,
38
+ `**/app/**/template.${GLOB_SRC_EXT}`,
39
+ `**/app/**/not-found.${GLOB_SRC_EXT}`,
40
+ `**/app/**/loading.${GLOB_SRC_EXT}`,
41
+ `**/app/**/robots.${GLOB_SRC_EXT}`,
42
+ `**/app/**/sitemap.${GLOB_SRC_EXT}`,
43
+ `**/pages/**/*.${GLOB_SRC_EXT}`
44
+ ];
28
45
  var GLOB_ALL_SRC = [
29
46
  GLOB_SRC,
30
47
  GLOB_STYLE,
@@ -33,11 +50,14 @@ var GLOB_ALL_SRC = [
33
50
  GLOB_MARKDOWN,
34
51
  GLOB_VUE,
35
52
  GLOB_YAML,
36
- GLOB_HTML
53
+ GLOB_HTML,
54
+ GLOB_REACT
37
55
  ];
38
56
  var GLOB_EXCLUDE = [
39
57
  "**/node_modules",
40
58
  "**/dist",
59
+ "**/out",
60
+ "**/build",
41
61
  "**/package-lock.json",
42
62
  "**/yarn.lock",
43
63
  "**/pnpm-lock.yaml",
@@ -73,7 +93,7 @@ export {
73
93
  GLOB_JSX,
74
94
  GLOB_TS,
75
95
  GLOB_TSX,
76
- GLOB_REACT,
96
+ GLOB_JSX_EXT,
77
97
  GLOB_STYLE,
78
98
  GLOB_CSS,
79
99
  GLOB_LESS,
@@ -83,10 +103,13 @@ export {
83
103
  GLOB_JSONC,
84
104
  GLOB_MARKDOWN,
85
105
  GLOB_VUE,
106
+ GLOB_REACT,
86
107
  GLOB_YAML,
87
108
  GLOB_HTML,
88
109
  GLOB_MARKDOWN_CODE,
89
110
  GLOB_TESTS,
111
+ GLOB_NEXTJS_OG,
112
+ GLOB_NEXTJS_ROUTES,
90
113
  GLOB_ALL_SRC,
91
114
  GLOB_EXCLUDE
92
115
  };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  GLOB_TESTS
3
- } from "./chunk-C6E356K2.mjs";
3
+ } from "./chunk-5CXAPQV3.mjs";
4
4
  import {
5
5
  interop
6
6
  } from "./chunk-4VUK6ART.mjs";
7
7
 
8
8
  // src/configs/test.ts
9
9
  async function test(options = {}) {
10
- const { isInEditor = false, overrides = {} } = options;
10
+ const { isEditor = false, overrides = {} } = options;
11
11
  const [
12
12
  pluginVitest,
13
13
  pluginNoOnlyTests
@@ -37,7 +37,7 @@ async function test(options = {}) {
37
37
  { fn: "it", withinDescribe: "it" }
38
38
  ],
39
39
  "test/no-identical-title": "error",
40
- "test/no-only-tests": isInEditor ? "off" : "error",
40
+ "test/no-only-tests": isEditor ? "off" : "error",
41
41
  "test/prefer-hooks-in-order": "error",
42
42
  "test/prefer-lowercase-title": "error",
43
43
  ...overrides
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-C5VMTRKT.mjs";
4
4
  import {
5
5
  GLOB_SRC
6
- } from "./chunk-C6E356K2.mjs";
6
+ } from "./chunk-5CXAPQV3.mjs";
7
7
  import {
8
8
  interop,
9
9
  renameRules,
@@ -95,7 +95,47 @@ async function typescript(options) {
95
95
  "error",
96
96
  { "ts-ignore": "allow-with-description" }
97
97
  ],
98
- "ts/ban-types": ["error", { types: { Function: false } }],
98
+ "ts/ban-types": ["error", {
99
+ extendDefaults: false,
100
+ types: {
101
+ "BigInt": {
102
+ fixWith: "bigint",
103
+ message: "Use `bigint` instead."
104
+ },
105
+ "Boolean": {
106
+ fixWith: "boolean",
107
+ message: "Use `boolean` instead."
108
+ },
109
+ "Function": "Use a specific function type instead, like `() => void`.",
110
+ "Number": {
111
+ fixWith: "number",
112
+ message: "Use `number` instead."
113
+ },
114
+ "Object": {
115
+ fixWith: "Record<string, unknown>",
116
+ message: "The `Object` type is mostly the same as `unknown`. You probably want `Record<string, unknown>` instead. See https://github.com/typescript-eslint/typescript-eslint/pull/848"
117
+ },
118
+ "String": {
119
+ fixWith: "string",
120
+ message: "Use `string` instead."
121
+ },
122
+ "Symbol": {
123
+ fixWith: "symbol",
124
+ message: "Use `symbol` instead."
125
+ },
126
+ "[]": {
127
+ message: "Don't use the empty array type `[]`. It only allows empty arrays. Use `SomeType[]` instead."
128
+ },
129
+ "object": {
130
+ fixWith: "Record<string, unknown>",
131
+ message: "The `object` type is hard to use. Use `Record<string, unknown>` instead. See: https://github.com/typescript-eslint/typescript-eslint/pull/848"
132
+ },
133
+ "{}": {
134
+ fixWith: "Record<string, unknown>",
135
+ message: "The `{}` type is mostly the same as `unknown`. You probably want `Record<string, unknown>` instead."
136
+ }
137
+ }
138
+ }],
99
139
  "ts/consistent-type-definitions": ["error", "interface"],
100
140
  "ts/consistent-type-imports": [
101
141
  "error",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GLOB_EXCLUDE
3
- } from "./chunk-C6E356K2.mjs";
3
+ } from "./chunk-5CXAPQV3.mjs";
4
4
 
5
5
  // src/configs/ignores.ts
6
6
  function ignores() {
@@ -2,7 +2,7 @@ import {
2
2
  GLOB_JSON,
3
3
  GLOB_JSON5,
4
4
  GLOB_JSONC
5
- } from "./chunk-C6E356K2.mjs";
5
+ } from "./chunk-5CXAPQV3.mjs";
6
6
  import {
7
7
  interop
8
8
  } from "./chunk-4VUK6ART.mjs";
@@ -0,0 +1,63 @@
1
+ import {
2
+ GLOB_HTML,
3
+ GLOB_SRC
4
+ } from "./chunk-5CXAPQV3.mjs";
5
+ import {
6
+ interop
7
+ } from "./chunk-4VUK6ART.mjs";
8
+
9
+ // src/configs/tailwindcss.ts
10
+ var DEFAULT_TAILWIND_CALLEES = ["classnames", "clsx", "cx", "cn"];
11
+ var DEFAULT_CLASS_REGEX = "^class(Name)?$";
12
+ async function tailwindcss(options = {}) {
13
+ const pluginTailwindCSS = await interop(import("eslint-plugin-tailwindcss"));
14
+ const {
15
+ callees = DEFAULT_TAILWIND_CALLEES,
16
+ classRegex = DEFAULT_CLASS_REGEX,
17
+ config = void 0,
18
+ nextjs,
19
+ removeDuplicates = true
20
+ } = options;
21
+ const tailwindCSSCallee = callees ?? DEFAULT_TAILWIND_CALLEES;
22
+ return [
23
+ {
24
+ name: "luxass:tailwindcss",
25
+ plugins: {
26
+ tailwindcss: pluginTailwindCSS
27
+ }
28
+ },
29
+ {
30
+ files: [GLOB_SRC, GLOB_HTML],
31
+ name: "luxass:tailwindcss:rules",
32
+ rules: {
33
+ "tailwindcss/classnames-order": ["error"],
34
+ "tailwindcss/enforces-negative-arbitrary-values": ["warn"],
35
+ "tailwindcss/enforces-shorthand": ["warn"],
36
+ "tailwindcss/migration-from-tailwind-2": ["warn"],
37
+ "tailwindcss/no-arbitrary-value": ["off"],
38
+ "tailwindcss/no-contradicting-classname": ["error"],
39
+ "tailwindcss/no-custom-classname": ["warn"]
40
+ },
41
+ settings: {
42
+ tailwindcss: {
43
+ callees: tailwindCSSCallee,
44
+ classRegex: nextjs ? "^(class(Name)?|tw)$" : classRegex,
45
+ config,
46
+ removeDuplicates
47
+ }
48
+ }
49
+ },
50
+ {
51
+ files: ["**/tailwind.config.?([cm])[jt]s"],
52
+ name: "luxass:tailwindcss:sort-keys-override",
53
+ rules: {
54
+ "sort-keys": "off",
55
+ "sort-keys/sort-keys-fix": "off"
56
+ }
57
+ }
58
+ ];
59
+ }
60
+
61
+ export {
62
+ tailwindcss
63
+ };
@@ -4,7 +4,7 @@ import {
4
4
 
5
5
  // src/configs/perfectionist.ts
6
6
  async function perfectionist(options = {}) {
7
- const { enableRules = false } = options;
7
+ const { enableAllRules = false } = options;
8
8
  return [
9
9
  {
10
10
  name: "luxass:perfectionist",
@@ -12,7 +12,7 @@ async function perfectionist(options = {}) {
12
12
  perfectionist: default2
13
13
  },
14
14
  rules: {
15
- ...enableRules ? {
15
+ ...enableAllRules ? {
16
16
  ...default2.configs["recommended-natural"].rules,
17
17
  "perfectionist/sort-imports": "off",
18
18
  // TODO: This rule should probably be enabled in favor of import/order?
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GLOB_YAML
3
- } from "./chunk-C6E356K2.mjs";
3
+ } from "./chunk-5CXAPQV3.mjs";
4
4
  import {
5
5
  interop
6
6
  } from "./chunk-4VUK6ART.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GLOB_REACT
3
- } from "./chunk-C6E356K2.mjs";
3
+ } from "./chunk-5CXAPQV3.mjs";
4
4
  import {
5
5
  interop
6
6
  } from "./chunk-4VUK6ART.mjs";
@@ -371,7 +371,7 @@ async function react() {
371
371
  "react/no-will-update-set-state": ["error"],
372
372
  "react/prefer-es6-class": ["error", "always"],
373
373
  "react/prefer-exact-props": ["error"],
374
- "react/prefer-read-only-props": ["error"],
374
+ "react/prefer-read-only-props": "off",
375
375
  "react/prefer-stateless-function": [
376
376
  "error",
377
377
  { ignorePureComponents: true }
@@ -450,6 +450,11 @@ async function react() {
450
450
  "react/static-property-placement": ["error", "property assignment"],
451
451
  "react/style-prop-object": ["error", { allow: ["FormattedNumber"] }],
452
452
  "react/void-dom-elements-no-children": ["error"]
453
+ },
454
+ settings: {
455
+ react: {
456
+ version: "detect"
457
+ }
453
458
  }
454
459
  }
455
460
  ];
@@ -5,12 +5,12 @@ import {
5
5
  import {
6
6
  GLOB_SRC,
7
7
  GLOB_SRC_EXT
8
- } from "./chunk-C6E356K2.mjs";
8
+ } from "./chunk-5CXAPQV3.mjs";
9
9
 
10
10
  // src/configs/javascript.ts
11
11
  import globals from "globals";
12
12
  async function javascript(options = {}) {
13
- const { isInEditor = false, overrides = {} } = options;
13
+ const { isEditor = false, overrides = {} } = options;
14
14
  return [
15
15
  {
16
16
  languageOptions: {
@@ -64,7 +64,7 @@ async function javascript(options = {}) {
64
64
  "no-compare-neg-zero": "error",
65
65
  "no-cond-assign": ["error", "always"],
66
66
  "no-console": [
67
- isInEditor ? "off" : "error",
67
+ isEditor ? "off" : "error",
68
68
  { allow: ["warn", "error"] }
69
69
  ],
70
70
  "no-const-assign": "error",
@@ -233,7 +233,7 @@ async function javascript(options = {}) {
233
233
  ],
234
234
  "symbol-description": "error",
235
235
  "unicode-bom": ["error", "never"],
236
- "unused-imports/no-unused-imports": isInEditor ? "off" : "error",
236
+ "unused-imports/no-unused-imports": isEditor ? "off" : "error",
237
237
  "unused-imports/no-unused-vars": [
238
238
  "error",
239
239
  {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GLOB_MARKDOWN,
3
3
  GLOB_MARKDOWN_CODE
4
- } from "./chunk-C6E356K2.mjs";
4
+ } from "./chunk-5CXAPQV3.mjs";
5
5
  import {
6
6
  interop
7
7
  } from "./chunk-4VUK6ART.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GLOB_VUE
3
- } from "./chunk-C6E356K2.mjs";
3
+ } from "./chunk-5CXAPQV3.mjs";
4
4
  import {
5
5
  interop
6
6
  } from "./chunk-4VUK6ART.mjs";
@@ -1,4 +1,4 @@
1
- import { F as FlatConfigItem } from '../types-1OpPSxOO.js';
1
+ import { F as FlatConfigItem } from '../types-3xH9kIfB.js';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@typescript-eslint/parser';
4
4
  import '@antfu/eslint-define-config';
@@ -1,4 +1,4 @@
1
- import { F as FlatConfigItem } from '../types-1OpPSxOO.js';
1
+ import { F as FlatConfigItem } from '../types-3xH9kIfB.js';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@typescript-eslint/parser';
4
4
  import '@antfu/eslint-define-config';
@@ -27,6 +27,7 @@ module.exports = __toCommonJS(ignores_exports);
27
27
  // src/globs.ts
28
28
  var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
29
29
  var GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
30
+ var GLOB_JSX_EXT = "[jt]sx";
30
31
  var GLOB_MARKDOWN = "**/*.md";
31
32
  var GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
32
33
  var GLOB_TESTS = [
@@ -36,9 +37,27 @@ var GLOB_TESTS = [
36
37
  `**/*.bench.${GLOB_SRC_EXT}`,
37
38
  `**/*.benchmark.${GLOB_SRC_EXT}`
38
39
  ];
40
+ var GLOB_NEXTJS_OG = [
41
+ `**/app/**/opengraph-image.${GLOB_JSX_EXT}`,
42
+ `**/app/**/twitter-image.${GLOB_JSX_EXT}`,
43
+ `**/app/**/route.${GLOB_JSX_EXT}`
44
+ ];
45
+ var GLOB_NEXTJS_ROUTES = [
46
+ `**/app/**/page.${GLOB_SRC_EXT}`,
47
+ `**/app/**/layout.${GLOB_SRC_EXT}`,
48
+ `**/app/**/error.${GLOB_SRC_EXT}`,
49
+ `**/app/**/template.${GLOB_SRC_EXT}`,
50
+ `**/app/**/not-found.${GLOB_SRC_EXT}`,
51
+ `**/app/**/loading.${GLOB_SRC_EXT}`,
52
+ `**/app/**/robots.${GLOB_SRC_EXT}`,
53
+ `**/app/**/sitemap.${GLOB_SRC_EXT}`,
54
+ `**/pages/**/*.${GLOB_SRC_EXT}`
55
+ ];
39
56
  var GLOB_EXCLUDE = [
40
57
  "**/node_modules",
41
58
  "**/dist",
59
+ "**/out",
60
+ "**/build",
42
61
  "**/package-lock.json",
43
62
  "**/yarn.lock",
44
63
  "**/pnpm-lock.yaml",
@@ -1,4 +1,4 @@
1
- import { F as FlatConfigItem } from '../types-1OpPSxOO.js';
1
+ import { F as FlatConfigItem } from '../types-3xH9kIfB.js';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@typescript-eslint/parser';
4
4
  import '@antfu/eslint-define-config';
@@ -1,4 +1,4 @@
1
- import { F as FlatConfigItem } from '../types-1OpPSxOO.js';
1
+ import { F as FlatConfigItem } from '../types-3xH9kIfB.js';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@typescript-eslint/parser';
4
4
  import '@antfu/eslint-define-config';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ignores
3
- } from "../chunk-DX7HDGX6.mjs";
4
- import "../chunk-C6E356K2.mjs";
3
+ } from "../chunk-BTZJDCAN.mjs";
4
+ import "../chunk-5CXAPQV3.mjs";
5
5
  export {
6
6
  ignores
7
7
  };
@@ -1,4 +1,4 @@
1
- import { O as OptionsStylistic, F as FlatConfigItem } from '../types-1OpPSxOO.js';
1
+ import { S as StylisticOptions, F as FlatConfigItem } from '../types-3xH9kIfB.js';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@typescript-eslint/parser';
4
4
  import '@antfu/eslint-define-config';
@@ -9,6 +9,6 @@ import 'eslint-plugin-antfu';
9
9
  import '@stylistic/eslint-plugin';
10
10
  import 'eslint';
11
11
 
12
- declare function imports(options?: OptionsStylistic): Promise<FlatConfigItem[]>;
12
+ declare function imports(options?: StylisticOptions): Promise<FlatConfigItem[]>;
13
13
 
14
14
  export { imports };
@@ -1,4 +1,4 @@
1
- import { O as OptionsStylistic, F as FlatConfigItem } from '../types-1OpPSxOO.js';
1
+ import { S as StylisticOptions, F as FlatConfigItem } from '../types-3xH9kIfB.js';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@typescript-eslint/parser';
4
4
  import '@antfu/eslint-define-config';
@@ -9,6 +9,6 @@ import 'eslint-plugin-antfu';
9
9
  import '@stylistic/eslint-plugin';
10
10
  import 'eslint';
11
11
 
12
- declare function imports(options?: OptionsStylistic): Promise<FlatConfigItem[]>;
12
+ declare function imports(options?: StylisticOptions): Promise<FlatConfigItem[]>;
13
13
 
14
14
  export { imports };