@stzhu/eslint-config 0.11.0 → 0.13.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 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: { "file-extension-in-import": (0, eslint_config.defineConfig)({
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",
@@ -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 'file-extension-in-import': 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,6BAAA,GAAA,cAAA,cAAyC;CACvC,SAAS,EACP,GAAGA,gBAAAA,SACJ;CACD,OAAO;EACL,uBAAuB;EACvB,8BAA8B,CAAC,SAAS,SAAS;EAClD;CACF,CAAC,EACH,EACF"}
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
@@ -3,7 +3,7 @@ import * as _$eslint_config0 from "eslint/config";
3
3
  //#region src/import.d.ts
4
4
  declare const _default: {
5
5
  configs: {
6
- 'file-extension-in-import': _$eslint_config0.Config[];
6
+ fileExtensionInImport: _$eslint_config0.Config[];
7
7
  };
8
8
  };
9
9
  export = _default;
package/dist/import.d.mts CHANGED
@@ -3,7 +3,7 @@ import * as _$eslint_config0 from "eslint/config";
3
3
  //#region src/import.d.ts
4
4
  declare const _default: {
5
5
  configs: {
6
- 'file-extension-in-import': _$eslint_config0.Config[];
6
+ fileExtensionInImport: _$eslint_config0.Config[];
7
7
  };
8
8
  };
9
9
  //#endregion
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: { "file-extension-in-import": defineConfig({
4
+ var import_default = { configs: { fileExtensionInImport: defineConfig({
5
5
  plugins: { n: nodePlugin },
6
6
  rules: {
7
7
  "n/no-missing-import": "error",
@@ -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 'file-extension-in-import': 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,4BAA4B,aAAa;CACvC,SAAS,EACP,GAAG,YACJ;CACD,OAAO;EACL,uBAAuB;EACvB,8BAA8B,CAAC,SAAS,SAAS;EAClD;CACF,CAAC,EACH,EACF"}
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,25 @@ 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: { recommended: (0, eslint_config.defineConfig)(require_ts.ts_default.configs.recommended, eslint_plugin_import.default.flatConfigs.react, {
17
- name: "react/src-globals",
18
- files: ["**/*.{js,jsx,ts,tsx}"],
19
- languageOptions: { globals: globals.default.browser }
20
- }, eslint_plugin_react.default.configs.flat["recommended"] ?? [], eslint_plugin_react.default.configs.flat["jsx-runtime"] ?? [], {
21
- name: "react/custom",
22
- settings: { react: { version: "detect" } },
23
- rules: { "react/function-component-definition": ["error", { namedComponents: "function-declaration" }] }
24
- }, eslint_plugin_react_hooks.default.configs.flat["recommended-latest"], eslint_plugin_react_refresh.reactRefresh.configs.vite(), eslint_config_prettier.default) } };
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: [
27
+ "createFileRoute",
28
+ "createLazyFileRoute",
29
+ "createRootRoute",
30
+ "createRootRouteWithContext",
31
+ "createRoute",
32
+ "createLazyRoute"
33
+ ] }))
34
+ } };
25
35
  //#endregion
26
36
  module.exports = react_default;
27
37
 
@@ -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,EACP,cAAA,GAAA,cAAA,cACEA,WAAAA,WAAS,QAAQ,aACjBC,qBAAAA,QAAa,YAAY,OACzB;CACE,MAAM;CACN,OAAO,CAAC,uBAAuB;CAC/B,iBAAiB,EACf,SAAS,QAAA,QAAQ,SAClB;CACF,EACDC,oBAAAA,QAAM,QAAQ,KAAK,kBAAkB,EAAE,EACvCA,oBAAAA,QAAM,QAAQ,KAAK,kBAAkB,EAAE,EACvC;CACE,MAAM;CACN,UAAU,EACR,OAAO,EACL,SAAS,UACV,EACF;CACD,OAAO,EACL,uCAAuC,CACrC,SACA,EAAE,iBAAiB,wBAAwB,CAC5C,EACF;CACF,EACDC,0BAAAA,QAAW,QAAQ,KAAK,uBACxBC,4BAAAA,aAAa,QAAQ,MAAM,EAC3BC,uBAAAA,QACD,EACF,EACF"}
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: [\n 'createFileRoute',\n 'createLazyFileRoute',\n 'createRootRoute',\n 'createRootRouteWithContext',\n 'createRoute',\n 'createLazyRoute',\n ],\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;EACT;EACA;EACA;EACA;EACA;EACA;EACD,EACF,CAAC,CACH;CACF,EACF"}
package/dist/react.d.cts CHANGED
@@ -4,6 +4,7 @@ import * as _$eslint_config0 from "eslint/config";
4
4
  declare const _default: {
5
5
  configs: {
6
6
  recommended: _$eslint_config0.Config[];
7
+ reactRefreshTanstackRouterOverride: _$eslint_config0.Config[];
7
8
  };
8
9
  };
9
10
  export = _default;
package/dist/react.d.mts CHANGED
@@ -4,6 +4,7 @@ import * as _$eslint_config0 from "eslint/config";
4
4
  declare const _default: {
5
5
  configs: {
6
6
  recommended: _$eslint_config0.Config[];
7
+ reactRefreshTanstackRouterOverride: _$eslint_config0.Config[];
7
8
  };
8
9
  };
9
10
  //#endregion
package/dist/react.mjs CHANGED
@@ -7,15 +7,25 @@ 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: { recommended: defineConfig(ts_default.configs.recommended, importPlugin.flatConfigs.react, {
11
- name: "react/src-globals",
12
- files: ["**/*.{js,jsx,ts,tsx}"],
13
- languageOptions: { globals: globals.browser }
14
- }, react.configs.flat["recommended"] ?? [], react.configs.flat["jsx-runtime"] ?? [], {
15
- name: "react/custom",
16
- settings: { react: { version: "detect" } },
17
- rules: { "react/function-component-definition": ["error", { namedComponents: "function-declaration" }] }
18
- }, reactHooks.configs.flat["recommended-latest"], reactRefresh.configs.vite(), prettier) } };
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: [
21
+ "createFileRoute",
22
+ "createLazyFileRoute",
23
+ "createRootRoute",
24
+ "createRootRouteWithContext",
25
+ "createRoute",
26
+ "createLazyRoute"
27
+ ] }))
28
+ } };
19
29
  //#endregion
20
30
  export { react_default as default };
21
31
 
@@ -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,EACP,aAAa,aACXA,WAAS,QAAQ,aACjB,aAAa,YAAY,OACzB;CACE,MAAM;CACN,OAAO,CAAC,uBAAuB;CAC/B,iBAAiB,EACf,SAAS,QAAQ,SAClB;CACF,EACD,MAAM,QAAQ,KAAK,kBAAkB,EAAE,EACvC,MAAM,QAAQ,KAAK,kBAAkB,EAAE,EACvC;CACE,MAAM;CACN,UAAU,EACR,OAAO,EACL,SAAS,UACV,EACF;CACD,OAAO,EACL,uCAAuC,CACrC,SACA,EAAE,iBAAiB,wBAAwB,CAC5C,EACF;CACF,EACD,WAAW,QAAQ,KAAK,uBACxB,aAAa,QAAQ,MAAM,EAC3B,SACD,EACF,EACF"}
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: [\n 'createFileRoute',\n 'createLazyFileRoute',\n 'createRootRoute',\n 'createRootRouteWithContext',\n 'createRoute',\n 'createLazyRoute',\n ],\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;EACT;EACA;EACA;EACA;EACA;EACA;EACD,EACF,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: { recommended: (0, eslint_config.defineConfig)({
7
- files: ["**/*.{js,jsx,ts,tsx}"],
8
- extends: [eslint_plugin_better_tailwindcss.default.configs["recommended"]]
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
 
@@ -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,EACP,cAAA,GAAA,cAAA,cAA0B;CACxB,OAAO,CAAC,uBAAuB;CAC/B,SAAS,CAACA,iCAAAA,QAA8B,QAAQ,eAAe;CAChE,CAAC,EACH,EACF"}
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"}
@@ -4,6 +4,8 @@ import * as _$eslint_config0 from "eslint/config";
4
4
  declare const _default: {
5
5
  configs: {
6
6
  recommended: _$eslint_config0.Config[];
7
+ stylistic: _$eslint_config0.Config[];
8
+ correctness: _$eslint_config0.Config[];
7
9
  };
8
10
  };
9
11
  export = _default;
@@ -4,6 +4,8 @@ import * as _$eslint_config0 from "eslint/config";
4
4
  declare const _default: {
5
5
  configs: {
6
6
  recommended: _$eslint_config0.Config[];
7
+ stylistic: _$eslint_config0.Config[];
8
+ correctness: _$eslint_config0.Config[];
7
9
  };
8
10
  };
9
11
  //#endregion
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: { recommended: defineConfig({
5
- files: ["**/*.{js,jsx,ts,tsx}"],
6
- extends: [eslintPluginBetterTailwindcss.configs["recommended"]]
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
 
@@ -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,EACP,aAAa,aAAa;CACxB,OAAO,CAAC,uBAAuB;CAC/B,SAAS,CAAC,8BAA8B,QAAQ,eAAe;CAChE,CAAC,EACH,EACF"}
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.11.0",
3
+ "version": "0.13.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": {