@stzhu/eslint-config 0.11.0 → 0.12.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.
- package/dist/import.cjs +1 -1
- package/dist/import.cjs.map +1 -1
- package/dist/import.d.cts +1 -1
- package/dist/import.d.mts +1 -1
- package/dist/import.mjs +1 -1
- package/dist/import.mjs.map +1 -1
- package/dist/react.cjs +12 -9
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -0
- package/dist/react.d.mts +1 -0
- package/dist/react.mjs +12 -9
- package/dist/react.mjs.map +1 -1
- package/dist/tailwind.cjs +14 -4
- package/dist/tailwind.cjs.map +1 -1
- package/dist/tailwind.d.cts +2 -0
- package/dist/tailwind.d.mts +2 -0
- package/dist/tailwind.mjs +14 -4
- package/dist/tailwind.mjs.map +1 -1
- package/package.json +3 -1
package/dist/import.cjs
CHANGED
|
@@ -3,7 +3,7 @@ let eslint_config = require("eslint/config");
|
|
|
3
3
|
let eslint_plugin_n = require("eslint-plugin-n");
|
|
4
4
|
eslint_plugin_n = require_chunk.__toESM(eslint_plugin_n);
|
|
5
5
|
//#region src/import.ts
|
|
6
|
-
var import_default = { configs: {
|
|
6
|
+
var import_default = { configs: { fileExtensionInImport: (0, eslint_config.defineConfig)({
|
|
7
7
|
plugins: { n: eslint_plugin_n.default },
|
|
8
8
|
rules: {
|
|
9
9
|
"n/no-missing-import": "error",
|
package/dist/import.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import.cjs","names":["nodePlugin"],"sources":["../src/import.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport nodePlugin from 'eslint-plugin-n';\n\nexport default {\n configs: {\n
|
|
1
|
+
{"version":3,"file":"import.cjs","names":["nodePlugin"],"sources":["../src/import.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport nodePlugin from 'eslint-plugin-n';\n\nexport default {\n configs: {\n fileExtensionInImport: defineConfig({\n plugins: {\n n: nodePlugin,\n },\n rules: {\n 'n/no-missing-import': 'error',\n 'n/file-extension-in-import': ['error', 'always'],\n },\n }),\n },\n};\n"],"mappings":";;;;;AAGA,IAAA,iBAAe,EACb,SAAS,EACP,wBAAA,GAAA,cAAA,cAAoC;CAClC,SAAS,EACP,GAAGA,gBAAAA,SACJ;CACD,OAAO;EACL,uBAAuB;EACvB,8BAA8B,CAAC,SAAS,SAAS;EAClD;CACF,CAAC,EACH,EACF"}
|
package/dist/import.d.cts
CHANGED
package/dist/import.d.mts
CHANGED
package/dist/import.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineConfig } from "eslint/config";
|
|
2
2
|
import nodePlugin from "eslint-plugin-n";
|
|
3
3
|
//#region src/import.ts
|
|
4
|
-
var import_default = { configs: {
|
|
4
|
+
var import_default = { configs: { fileExtensionInImport: defineConfig({
|
|
5
5
|
plugins: { n: nodePlugin },
|
|
6
6
|
rules: {
|
|
7
7
|
"n/no-missing-import": "error",
|
package/dist/import.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import.mjs","names":[],"sources":["../src/import.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport nodePlugin from 'eslint-plugin-n';\n\nexport default {\n configs: {\n
|
|
1
|
+
{"version":3,"file":"import.mjs","names":[],"sources":["../src/import.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport nodePlugin from 'eslint-plugin-n';\n\nexport default {\n configs: {\n fileExtensionInImport: defineConfig({\n plugins: {\n n: nodePlugin,\n },\n rules: {\n 'n/no-missing-import': 'error',\n 'n/file-extension-in-import': ['error', 'always'],\n },\n }),\n },\n};\n"],"mappings":";;;AAGA,IAAA,iBAAe,EACb,SAAS,EACP,uBAAuB,aAAa;CAClC,SAAS,EACP,GAAG,YACJ;CACD,OAAO;EACL,uBAAuB;EACvB,8BAA8B,CAAC,SAAS,SAAS;EAClD;CACF,CAAC,EACH,EACF"}
|
package/dist/react.cjs
CHANGED
|
@@ -13,15 +13,18 @@ let eslint_plugin_react_hooks = require("eslint-plugin-react-hooks");
|
|
|
13
13
|
eslint_plugin_react_hooks = require_chunk.__toESM(eslint_plugin_react_hooks);
|
|
14
14
|
let eslint_plugin_react_refresh = require("eslint-plugin-react-refresh");
|
|
15
15
|
//#region src/react.ts
|
|
16
|
-
var react_default = { configs: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
var react_default = { configs: {
|
|
17
|
+
recommended: (0, eslint_config.defineConfig)(require_ts.ts_default.configs.recommended, eslint_plugin_import.default.flatConfigs.react, {
|
|
18
|
+
name: "react/src-globals",
|
|
19
|
+
files: ["**/*.{js,jsx,ts,tsx}"],
|
|
20
|
+
languageOptions: { globals: globals.default.browser }
|
|
21
|
+
}, eslint_plugin_react.default.configs.flat["recommended"] ?? [], eslint_plugin_react.default.configs.flat["jsx-runtime"] ?? [], {
|
|
22
|
+
name: "react/custom",
|
|
23
|
+
settings: { react: { version: "detect" } },
|
|
24
|
+
rules: { "react/function-component-definition": ["error", { namedComponents: "function-declaration" }] }
|
|
25
|
+
}, eslint_plugin_react_hooks.default.configs.flat["recommended-latest"], eslint_plugin_react_refresh.reactRefresh.configs.vite(), eslint_config_prettier.default),
|
|
26
|
+
reactRefreshTanstackRouterOverride: (0, eslint_config.defineConfig)(eslint_plugin_react_refresh.reactRefresh.configs.vite({ extraHOCs: ["createRootRouteWithContext"] }))
|
|
27
|
+
} };
|
|
25
28
|
//#endregion
|
|
26
29
|
module.exports = react_default;
|
|
27
30
|
|
package/dist/react.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.cjs","names":["tsConfig","importPlugin","react","reactHooks","reactRefresh","prettier"],"sources":["../src/react.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport prettier from 'eslint-config-prettier';\nimport importPlugin from 'eslint-plugin-import';\nimport react from 'eslint-plugin-react';\nimport reactHooks from 'eslint-plugin-react-hooks';\nimport { reactRefresh } from 'eslint-plugin-react-refresh';\nimport globals from 'globals';\n\nimport tsConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(\n tsConfig.configs.recommended,\n importPlugin.flatConfigs.react,\n {\n name: 'react/src-globals',\n files: ['**/*.{js,jsx,ts,tsx}'],\n languageOptions: {\n globals: globals.browser,\n },\n },\n react.configs.flat['recommended'] ?? [],\n react.configs.flat['jsx-runtime'] ?? [],\n {\n name: 'react/custom',\n settings: {\n react: {\n version: 'detect',\n },\n },\n rules: {\n 'react/function-component-definition': [\n 'error',\n { namedComponents: 'function-declaration' },\n ],\n },\n },\n reactHooks.configs.flat['recommended-latest'],\n reactRefresh.configs.vite(),\n prettier,\n ),\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;AAUA,IAAA,gBAAe,EACb,SAAS,
|
|
1
|
+
{"version":3,"file":"react.cjs","names":["tsConfig","importPlugin","react","reactHooks","reactRefresh","prettier"],"sources":["../src/react.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport prettier from 'eslint-config-prettier';\nimport importPlugin from 'eslint-plugin-import';\nimport react from 'eslint-plugin-react';\nimport reactHooks from 'eslint-plugin-react-hooks';\nimport { reactRefresh } from 'eslint-plugin-react-refresh';\nimport globals from 'globals';\n\nimport tsConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(\n tsConfig.configs.recommended,\n importPlugin.flatConfigs.react,\n {\n name: 'react/src-globals',\n files: ['**/*.{js,jsx,ts,tsx}'],\n languageOptions: {\n globals: globals.browser,\n },\n },\n react.configs.flat['recommended'] ?? [],\n react.configs.flat['jsx-runtime'] ?? [],\n {\n name: 'react/custom',\n settings: {\n react: {\n version: 'detect',\n },\n },\n rules: {\n 'react/function-component-definition': [\n 'error',\n { namedComponents: 'function-declaration' },\n ],\n },\n },\n reactHooks.configs.flat['recommended-latest'],\n reactRefresh.configs.vite(),\n prettier,\n ),\n reactRefreshTanstackRouterOverride: defineConfig(\n reactRefresh.configs.vite({\n // XXX: workaround for @tanstack/react-router to suppress the error, but actually react\n // router doesn't have good support for HMR\n // References:\n // https://github.com/ArnaudBarre/eslint-plugin-react-refresh/releases/tag/v0.5.0\n // https://bsky.app/profile/arnaud-barre.bsky.social/post/3ma5h5tf2sk2e\n extraHOCs: ['createRootRouteWithContext'],\n }),\n ),\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;AAUA,IAAA,gBAAe,EACb,SAAS;CACP,cAAA,GAAA,cAAA,cACEA,WAAAA,WAAS,QAAQ,aACjBC,qBAAAA,QAAa,YAAY,OACzB;EACE,MAAM;EACN,OAAO,CAAC,uBAAuB;EAC/B,iBAAiB,EACf,SAAS,QAAA,QAAQ,SAClB;EACF,EACDC,oBAAAA,QAAM,QAAQ,KAAK,kBAAkB,EAAE,EACvCA,oBAAAA,QAAM,QAAQ,KAAK,kBAAkB,EAAE,EACvC;EACE,MAAM;EACN,UAAU,EACR,OAAO,EACL,SAAS,UACV,EACF;EACD,OAAO,EACL,uCAAuC,CACrC,SACA,EAAE,iBAAiB,wBAAwB,CAC5C,EACF;EACF,EACDC,0BAAAA,QAAW,QAAQ,KAAK,uBACxBC,4BAAAA,aAAa,QAAQ,MAAM,EAC3BC,uBAAAA,QACD;CACD,qCAAA,GAAA,cAAA,cACED,4BAAAA,aAAa,QAAQ,KAAK,EAMxB,WAAW,CAAC,6BAA6B,EAC1C,CAAC,CACH;CACF,EACF"}
|
package/dist/react.d.cts
CHANGED
package/dist/react.d.mts
CHANGED
package/dist/react.mjs
CHANGED
|
@@ -7,15 +7,18 @@ import react from "eslint-plugin-react";
|
|
|
7
7
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
8
8
|
import { reactRefresh } from "eslint-plugin-react-refresh";
|
|
9
9
|
//#region src/react.ts
|
|
10
|
-
var react_default = { configs: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
var react_default = { configs: {
|
|
11
|
+
recommended: defineConfig(ts_default.configs.recommended, importPlugin.flatConfigs.react, {
|
|
12
|
+
name: "react/src-globals",
|
|
13
|
+
files: ["**/*.{js,jsx,ts,tsx}"],
|
|
14
|
+
languageOptions: { globals: globals.browser }
|
|
15
|
+
}, react.configs.flat["recommended"] ?? [], react.configs.flat["jsx-runtime"] ?? [], {
|
|
16
|
+
name: "react/custom",
|
|
17
|
+
settings: { react: { version: "detect" } },
|
|
18
|
+
rules: { "react/function-component-definition": ["error", { namedComponents: "function-declaration" }] }
|
|
19
|
+
}, reactHooks.configs.flat["recommended-latest"], reactRefresh.configs.vite(), prettier),
|
|
20
|
+
reactRefreshTanstackRouterOverride: defineConfig(reactRefresh.configs.vite({ extraHOCs: ["createRootRouteWithContext"] }))
|
|
21
|
+
} };
|
|
19
22
|
//#endregion
|
|
20
23
|
export { react_default as default };
|
|
21
24
|
|
package/dist/react.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.mjs","names":["tsConfig"],"sources":["../src/react.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport prettier from 'eslint-config-prettier';\nimport importPlugin from 'eslint-plugin-import';\nimport react from 'eslint-plugin-react';\nimport reactHooks from 'eslint-plugin-react-hooks';\nimport { reactRefresh } from 'eslint-plugin-react-refresh';\nimport globals from 'globals';\n\nimport tsConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(\n tsConfig.configs.recommended,\n importPlugin.flatConfigs.react,\n {\n name: 'react/src-globals',\n files: ['**/*.{js,jsx,ts,tsx}'],\n languageOptions: {\n globals: globals.browser,\n },\n },\n react.configs.flat['recommended'] ?? [],\n react.configs.flat['jsx-runtime'] ?? [],\n {\n name: 'react/custom',\n settings: {\n react: {\n version: 'detect',\n },\n },\n rules: {\n 'react/function-component-definition': [\n 'error',\n { namedComponents: 'function-declaration' },\n ],\n },\n },\n reactHooks.configs.flat['recommended-latest'],\n reactRefresh.configs.vite(),\n prettier,\n ),\n },\n};\n"],"mappings":";;;;;;;;;AAUA,IAAA,gBAAe,EACb,SAAS,
|
|
1
|
+
{"version":3,"file":"react.mjs","names":["tsConfig"],"sources":["../src/react.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport prettier from 'eslint-config-prettier';\nimport importPlugin from 'eslint-plugin-import';\nimport react from 'eslint-plugin-react';\nimport reactHooks from 'eslint-plugin-react-hooks';\nimport { reactRefresh } from 'eslint-plugin-react-refresh';\nimport globals from 'globals';\n\nimport tsConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(\n tsConfig.configs.recommended,\n importPlugin.flatConfigs.react,\n {\n name: 'react/src-globals',\n files: ['**/*.{js,jsx,ts,tsx}'],\n languageOptions: {\n globals: globals.browser,\n },\n },\n react.configs.flat['recommended'] ?? [],\n react.configs.flat['jsx-runtime'] ?? [],\n {\n name: 'react/custom',\n settings: {\n react: {\n version: 'detect',\n },\n },\n rules: {\n 'react/function-component-definition': [\n 'error',\n { namedComponents: 'function-declaration' },\n ],\n },\n },\n reactHooks.configs.flat['recommended-latest'],\n reactRefresh.configs.vite(),\n prettier,\n ),\n reactRefreshTanstackRouterOverride: defineConfig(\n reactRefresh.configs.vite({\n // XXX: workaround for @tanstack/react-router to suppress the error, but actually react\n // router doesn't have good support for HMR\n // References:\n // https://github.com/ArnaudBarre/eslint-plugin-react-refresh/releases/tag/v0.5.0\n // https://bsky.app/profile/arnaud-barre.bsky.social/post/3ma5h5tf2sk2e\n extraHOCs: ['createRootRouteWithContext'],\n }),\n ),\n },\n};\n"],"mappings":";;;;;;;;;AAUA,IAAA,gBAAe,EACb,SAAS;CACP,aAAa,aACXA,WAAS,QAAQ,aACjB,aAAa,YAAY,OACzB;EACE,MAAM;EACN,OAAO,CAAC,uBAAuB;EAC/B,iBAAiB,EACf,SAAS,QAAQ,SAClB;EACF,EACD,MAAM,QAAQ,KAAK,kBAAkB,EAAE,EACvC,MAAM,QAAQ,KAAK,kBAAkB,EAAE,EACvC;EACE,MAAM;EACN,UAAU,EACR,OAAO,EACL,SAAS,UACV,EACF;EACD,OAAO,EACL,uCAAuC,CACrC,SACA,EAAE,iBAAiB,wBAAwB,CAC5C,EACF;EACF,EACD,WAAW,QAAQ,KAAK,uBACxB,aAAa,QAAQ,MAAM,EAC3B,SACD;CACD,oCAAoC,aAClC,aAAa,QAAQ,KAAK,EAMxB,WAAW,CAAC,6BAA6B,EAC1C,CAAC,CACH;CACF,EACF"}
|
package/dist/tailwind.cjs
CHANGED
|
@@ -3,10 +3,20 @@ let eslint_config = require("eslint/config");
|
|
|
3
3
|
let eslint_plugin_better_tailwindcss = require("eslint-plugin-better-tailwindcss");
|
|
4
4
|
eslint_plugin_better_tailwindcss = require_chunk.__toESM(eslint_plugin_better_tailwindcss);
|
|
5
5
|
//#region src/tailwind.ts
|
|
6
|
-
var tailwind_default = { configs: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
var tailwind_default = { configs: {
|
|
7
|
+
recommended: (0, eslint_config.defineConfig)({
|
|
8
|
+
files: ["**/*.{js,jsx,ts,tsx}"],
|
|
9
|
+
extends: [eslint_plugin_better_tailwindcss.default.configs["recommended"]]
|
|
10
|
+
}),
|
|
11
|
+
stylistic: (0, eslint_config.defineConfig)({
|
|
12
|
+
files: ["**/*.{js,jsx,ts,tsx}"],
|
|
13
|
+
extends: [eslint_plugin_better_tailwindcss.default.configs["stylistic"]]
|
|
14
|
+
}),
|
|
15
|
+
correctness: (0, eslint_config.defineConfig)({
|
|
16
|
+
files: ["**/*.{js,jsx,ts,tsx}"],
|
|
17
|
+
extends: [eslint_plugin_better_tailwindcss.default.configs["correctness"]]
|
|
18
|
+
})
|
|
19
|
+
} };
|
|
10
20
|
//#endregion
|
|
11
21
|
module.exports = tailwind_default;
|
|
12
22
|
|
package/dist/tailwind.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailwind.cjs","names":["eslintPluginBetterTailwindcss"],"sources":["../src/tailwind.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport eslintPluginBetterTailwindcss from 'eslint-plugin-better-tailwindcss';\n\nexport default {\n configs: {\n recommended: defineConfig({\n files: ['**/*.{js,jsx,ts,tsx}'],\n extends: [eslintPluginBetterTailwindcss.configs['recommended']],\n }),\n },\n};\n"],"mappings":";;;;;AAGA,IAAA,mBAAe,EACb,SAAS,
|
|
1
|
+
{"version":3,"file":"tailwind.cjs","names":["eslintPluginBetterTailwindcss"],"sources":["../src/tailwind.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport eslintPluginBetterTailwindcss from 'eslint-plugin-better-tailwindcss';\n\nexport default {\n configs: {\n recommended: defineConfig({\n files: ['**/*.{js,jsx,ts,tsx}'],\n extends: [eslintPluginBetterTailwindcss.configs['recommended']],\n }),\n stylistic: defineConfig({\n files: ['**/*.{js,jsx,ts,tsx}'],\n extends: [eslintPluginBetterTailwindcss.configs['stylistic']],\n }),\n correctness: defineConfig({\n files: ['**/*.{js,jsx,ts,tsx}'],\n extends: [eslintPluginBetterTailwindcss.configs['correctness']],\n }),\n },\n};\n"],"mappings":";;;;;AAGA,IAAA,mBAAe,EACb,SAAS;CACP,cAAA,GAAA,cAAA,cAA0B;EACxB,OAAO,CAAC,uBAAuB;EAC/B,SAAS,CAACA,iCAAAA,QAA8B,QAAQ,eAAe;EAChE,CAAC;CACF,YAAA,GAAA,cAAA,cAAwB;EACtB,OAAO,CAAC,uBAAuB;EAC/B,SAAS,CAACA,iCAAAA,QAA8B,QAAQ,aAAa;EAC9D,CAAC;CACF,cAAA,GAAA,cAAA,cAA0B;EACxB,OAAO,CAAC,uBAAuB;EAC/B,SAAS,CAACA,iCAAAA,QAA8B,QAAQ,eAAe;EAChE,CAAC;CACH,EACF"}
|
package/dist/tailwind.d.cts
CHANGED
package/dist/tailwind.d.mts
CHANGED
package/dist/tailwind.mjs
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { defineConfig } from "eslint/config";
|
|
2
2
|
import eslintPluginBetterTailwindcss from "eslint-plugin-better-tailwindcss";
|
|
3
3
|
//#region src/tailwind.ts
|
|
4
|
-
var tailwind_default = { configs: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
var tailwind_default = { configs: {
|
|
5
|
+
recommended: defineConfig({
|
|
6
|
+
files: ["**/*.{js,jsx,ts,tsx}"],
|
|
7
|
+
extends: [eslintPluginBetterTailwindcss.configs["recommended"]]
|
|
8
|
+
}),
|
|
9
|
+
stylistic: defineConfig({
|
|
10
|
+
files: ["**/*.{js,jsx,ts,tsx}"],
|
|
11
|
+
extends: [eslintPluginBetterTailwindcss.configs["stylistic"]]
|
|
12
|
+
}),
|
|
13
|
+
correctness: defineConfig({
|
|
14
|
+
files: ["**/*.{js,jsx,ts,tsx}"],
|
|
15
|
+
extends: [eslintPluginBetterTailwindcss.configs["correctness"]]
|
|
16
|
+
})
|
|
17
|
+
} };
|
|
8
18
|
//#endregion
|
|
9
19
|
export { tailwind_default as default };
|
|
10
20
|
|
package/dist/tailwind.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailwind.mjs","names":[],"sources":["../src/tailwind.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport eslintPluginBetterTailwindcss from 'eslint-plugin-better-tailwindcss';\n\nexport default {\n configs: {\n recommended: defineConfig({\n files: ['**/*.{js,jsx,ts,tsx}'],\n extends: [eslintPluginBetterTailwindcss.configs['recommended']],\n }),\n },\n};\n"],"mappings":";;;AAGA,IAAA,mBAAe,EACb,SAAS,
|
|
1
|
+
{"version":3,"file":"tailwind.mjs","names":[],"sources":["../src/tailwind.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport eslintPluginBetterTailwindcss from 'eslint-plugin-better-tailwindcss';\n\nexport default {\n configs: {\n recommended: defineConfig({\n files: ['**/*.{js,jsx,ts,tsx}'],\n extends: [eslintPluginBetterTailwindcss.configs['recommended']],\n }),\n stylistic: defineConfig({\n files: ['**/*.{js,jsx,ts,tsx}'],\n extends: [eslintPluginBetterTailwindcss.configs['stylistic']],\n }),\n correctness: defineConfig({\n files: ['**/*.{js,jsx,ts,tsx}'],\n extends: [eslintPluginBetterTailwindcss.configs['correctness']],\n }),\n },\n};\n"],"mappings":";;;AAGA,IAAA,mBAAe,EACb,SAAS;CACP,aAAa,aAAa;EACxB,OAAO,CAAC,uBAAuB;EAC/B,SAAS,CAAC,8BAA8B,QAAQ,eAAe;EAChE,CAAC;CACF,WAAW,aAAa;EACtB,OAAO,CAAC,uBAAuB;EAC/B,SAAS,CAAC,8BAA8B,QAAQ,aAAa;EAC9D,CAAC;CACF,aAAa,aAAa;EACxB,OAAO,CAAC,uBAAuB;EAC/B,SAAS,CAAC,8BAA8B,QAAQ,eAAe;EAChE,CAAC;CACH,EACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stzhu/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Shared config for ESLint",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint"
|
|
@@ -143,9 +143,11 @@
|
|
|
143
143
|
"@stzhu/prettier-plugin-tsconfig": "^0.7.3",
|
|
144
144
|
"@stzhu/tsconfig": "^0.5.0",
|
|
145
145
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
146
|
+
"eslint": "^9.39.4",
|
|
146
147
|
"prettier": "^3.8.1",
|
|
147
148
|
"prettier-plugin-packagejson": "^3.0.2",
|
|
148
149
|
"tsdown": "^0.21.7",
|
|
150
|
+
"typescript": "^6.0.2",
|
|
149
151
|
"vitest": "^4.1.2"
|
|
150
152
|
},
|
|
151
153
|
"peerDependencies": {
|