@stzhu/eslint-config 0.8.0 → 0.9.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/{chunk-AKYUAI22.js → chunk-E7RK5RTJ.js} +7 -7
- package/dist/chunk-E7RK5RTJ.js.map +1 -0
- package/dist/{chunk-W7DGUSEO.js → chunk-NVDKHLI3.js} +2 -2
- package/dist/expo.cjs +6 -6
- package/dist/expo.cjs.map +1 -1
- package/dist/expo.d.cts +2 -3
- package/dist/expo.d.ts +2 -3
- package/dist/expo.js +5 -6
- package/dist/expo.js.map +1 -1
- package/dist/import.cjs +1 -39353
- package/dist/import.cjs.map +1 -1
- package/dist/import.d.cts +2 -3
- package/dist/import.d.ts +2 -3
- package/dist/import.js +2 -39357
- package/dist/import.js.map +1 -1
- package/dist/lingui.d.cts +2 -3
- package/dist/lingui.d.ts +2 -3
- package/dist/lingui.js +0 -2
- package/dist/lingui.js.map +1 -1
- package/dist/node.cjs +4 -4
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +2 -3
- package/dist/node.d.ts +2 -3
- package/dist/node.js +2 -3
- package/dist/node.js.map +1 -1
- package/dist/react.cjs +5 -5
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +2 -3
- package/dist/react.d.ts +2 -3
- package/dist/react.js +3 -4
- package/dist/react.js.map +1 -1
- package/dist/storybook.cjs +4 -12
- package/dist/storybook.cjs.map +1 -1
- package/dist/storybook.d.cts +2 -3
- package/dist/storybook.d.ts +2 -3
- package/dist/storybook.js +4 -4
- package/dist/storybook.js.map +1 -1
- package/dist/tailwind.d.cts +2 -3
- package/dist/tailwind.d.ts +2 -3
- package/dist/tailwind.js +0 -2
- package/dist/tailwind.js.map +1 -1
- package/dist/ts.cjs +4 -4
- package/dist/ts.cjs.map +1 -1
- package/dist/ts.d.cts +2 -3
- package/dist/ts.d.ts +2 -3
- package/dist/ts.js +2 -3
- package/dist/turbo.d.cts +2 -3
- package/dist/turbo.d.ts +2 -3
- package/dist/turbo.js +0 -2
- package/dist/turbo.js.map +1 -1
- package/dist/vitest.d.cts +2 -3
- package/dist/vitest.d.ts +2 -3
- package/dist/vitest.js +0 -2
- package/dist/vitest.js.map +1 -1
- package/package.json +19 -15
- package/dist/chunk-7D4SUZUM.js +0 -38
- package/dist/chunk-7D4SUZUM.js.map +0 -1
- package/dist/chunk-AKYUAI22.js.map +0 -1
- package/dist/types.d-DV2WF_ti.d.cts +0 -1142
- package/dist/types.d-DV2WF_ti.d.ts +0 -1142
- /package/dist/{chunk-W7DGUSEO.js.map → chunk-NVDKHLI3.js.map} +0 -0
package/dist/lingui.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/lingui.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/lingui.js
CHANGED
package/dist/lingui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lingui.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport pluginLingui from 'eslint-plugin-lingui';\n\nexport default {\n configs: {\n recommended: defineConfig(pluginLingui.configs['flat/recommended']),\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/lingui.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport pluginLingui from 'eslint-plugin-lingui';\n\nexport default {\n configs: {\n recommended: defineConfig(pluginLingui.configs['flat/recommended']),\n },\n};\n"],"mappings":";AAAA,SAAS,oBAAoB;AAC7B,OAAO,kBAAkB;AAEzB,IAAO,iBAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa,aAAa,aAAa,QAAQ,kBAAkB,CAAC;AAAA,EACpE;AACF;","names":[]}
|
package/dist/node.cjs
CHANGED
|
@@ -47,7 +47,7 @@ var import_globals = __toESM(require("globals"), 1);
|
|
|
47
47
|
var import_config = require("eslint/config");
|
|
48
48
|
var import_eslint_plugin_import = __toESM(require("eslint-plugin-import"), 1);
|
|
49
49
|
var import_eslint_plugin_simple_import_sort = __toESM(require("eslint-plugin-simple-import-sort"), 1);
|
|
50
|
-
var
|
|
50
|
+
var importPluginConfig = (0, import_config.defineConfig)({
|
|
51
51
|
name: "import/custom",
|
|
52
52
|
rules: {
|
|
53
53
|
"import/enforce-node-protocol-usage": ["error", "always"],
|
|
@@ -55,7 +55,7 @@ var importConfig = (0, import_config.defineConfig)({
|
|
|
55
55
|
"import/newline-after-import": "error"
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
var
|
|
58
|
+
var simpleImportSortPluginConfig = (0, import_config.defineConfig)({
|
|
59
59
|
name: "simple-import-sort/custom",
|
|
60
60
|
plugins: {
|
|
61
61
|
"simple-import-sort": import_eslint_plugin_simple_import_sort.default
|
|
@@ -76,8 +76,8 @@ var import_default = (0, import_config.defineConfig)(
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
importPluginConfig,
|
|
80
|
+
simpleImportSortPluginConfig
|
|
81
81
|
);
|
|
82
82
|
|
|
83
83
|
// src/configs/typescript.ts
|
package/dist/node.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/node.ts","../src/ts.ts","../src/configs/import.ts","../src/configs/typescript.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport globals from 'globals';\n\nimport baseConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(baseConfig.configs.recommended, {\n languageOptions: {\n globals: globals.node,\n },\n }),\n },\n};\n","import js from '@eslint/js';\nimport { defineConfig } from 'eslint/config';\nimport prettier from 'eslint-config-prettier';\nimport importPlugin from 'eslint-plugin-import';\nimport globals from 'globals';\n\nimport importConfig from './configs/import.js';\nimport typescriptConfig from './configs/typescript.js';\n\n// the difference between this and the `configs/typescript.js` file is that this is the entire\n// config for typescript projects, while that file is the eslint typescript config itself\n\nexport default {\n configs: {\n recommended: defineConfig(\n Object.assign({ name: '@eslint/js/recommended' }, js.configs.recommended),\n importConfig,\n importPlugin.flatConfigs.typescript,\n {\n name: 'ts/config-file-globals',\n files: ['*.config.{mjs,cjs,js,ts}'],\n languageOptions: {\n globals: globals.node,\n },\n },\n typescriptConfig,\n prettier,\n ),\n },\n};\n","import { defineConfig } from 'eslint/config';\nimport importPlugin from 'eslint-plugin-import';\nimport simpleImportSort from 'eslint-plugin-simple-import-sort';\n\nexport const
|
|
1
|
+
{"version":3,"sources":["../src/node.ts","../src/ts.ts","../src/configs/import.ts","../src/configs/typescript.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport globals from 'globals';\n\nimport baseConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(baseConfig.configs.recommended, {\n languageOptions: {\n globals: globals.node,\n },\n }),\n },\n};\n","import js from '@eslint/js';\nimport { defineConfig } from 'eslint/config';\nimport prettier from 'eslint-config-prettier';\nimport importPlugin from 'eslint-plugin-import';\nimport globals from 'globals';\n\nimport importConfig from './configs/import.js';\nimport typescriptConfig from './configs/typescript.js';\n\n// the difference between this and the `configs/typescript.js` file is that this is the entire\n// config for typescript projects, while that file is the eslint typescript config itself\n\nexport default {\n configs: {\n recommended: defineConfig(\n Object.assign({ name: '@eslint/js/recommended' }, js.configs.recommended),\n importConfig,\n importPlugin.flatConfigs.typescript,\n {\n name: 'ts/config-file-globals',\n files: ['*.config.{mjs,cjs,js,ts}'],\n languageOptions: {\n globals: globals.node,\n },\n },\n typescriptConfig,\n prettier,\n ),\n },\n};\n","import { defineConfig } from 'eslint/config';\nimport importPlugin from 'eslint-plugin-import';\nimport simpleImportSort from 'eslint-plugin-simple-import-sort';\n\nexport const importPluginConfig = defineConfig({\n name: 'import/custom',\n rules: {\n 'import/enforce-node-protocol-usage': ['error', 'always'],\n 'import/first': 'error',\n 'import/newline-after-import': 'error',\n },\n});\n\nexport const simpleImportSortPluginConfig = defineConfig({\n name: 'simple-import-sort/custom',\n plugins: {\n 'simple-import-sort': simpleImportSort,\n },\n rules: {\n 'simple-import-sort/imports': 'error',\n 'simple-import-sort/exports': 'error',\n },\n});\n\nexport default defineConfig(\n importPlugin.flatConfigs.recommended,\n {\n name: 'import/settings',\n settings: {\n 'import/resolver': {\n typescript: true,\n node: true,\n },\n },\n },\n importPluginConfig,\n simpleImportSortPluginConfig,\n);\n","import { defineConfig } from 'eslint/config';\nimport { configs as tseslintConfigs } from 'typescript-eslint';\n\nexport default defineConfig(\n tseslintConfigs.strictTypeChecked,\n {\n name: 'typescript/languageOptions',\n languageOptions: {\n parserOptions: {\n projectService: true,\n },\n },\n },\n {\n name: 'typescript/custom',\n rules: {\n '@typescript-eslint/consistent-type-definitions': 'off',\n '@typescript-eslint/no-misused-promises': [\n 'error',\n {\n checksVoidReturn: {\n attributes: false,\n },\n },\n ],\n '@typescript-eslint/no-unused-vars': [\n 'error',\n {\n args: 'all',\n argsIgnorePattern: '^_',\n caughtErrors: 'all',\n caughtErrorsIgnorePattern: '^_',\n destructuredArrayIgnorePattern: '^_',\n varsIgnorePattern: '^_',\n },\n ],\n '@typescript-eslint/restrict-template-expressions': [\n 'error',\n {\n allowNumber: true,\n },\n ],\n // https://tanstack.com/router/v1/docs/framework/react/api/router/redirectFunction\n '@typescript-eslint/only-throw-error': [\n 'warn',\n {\n allow: [\n {\n from: 'package',\n name: 'Redirect',\n package: '@tanstack/router-core',\n },\n ],\n },\n ],\n },\n },\n {\n files: ['**/*.{cjs,js}'],\n extends: [tseslintConfigs.disableTypeChecked],\n },\n);\n"],"mappings":"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","names":["import_config","import_globals","import_config","import_eslint_plugin_import","simpleImportSort","importPlugin","import_config","tseslintConfigs","js","importPlugin","globals","prettier","globals"]}
|
package/dist/node.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/node.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/node.js
CHANGED
package/dist/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/node.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport globals from 'globals';\n\nimport baseConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(baseConfig.configs.recommended, {\n languageOptions: {\n globals: globals.node,\n },\n }),\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/node.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport globals from 'globals';\n\nimport baseConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(baseConfig.configs.recommended, {\n languageOptions: {\n globals: globals.node,\n },\n }),\n },\n};\n"],"mappings":";;;;;;AAAA,SAAS,oBAAoB;AAC7B,OAAO,aAAa;AAIpB,IAAO,eAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa,aAAa,WAAW,QAAQ,aAAa;AAAA,MACxD,iBAAiB;AAAA,QACf,SAAS,QAAQ;AAAA,MACnB;AAAA,IACF,CAAC;AAAA,EACH;AACF;","names":[]}
|
package/dist/react.cjs
CHANGED
|
@@ -52,7 +52,7 @@ var import_globals = __toESM(require("globals"), 1);
|
|
|
52
52
|
var import_config = require("eslint/config");
|
|
53
53
|
var import_eslint_plugin_import = __toESM(require("eslint-plugin-import"), 1);
|
|
54
54
|
var import_eslint_plugin_simple_import_sort = __toESM(require("eslint-plugin-simple-import-sort"), 1);
|
|
55
|
-
var
|
|
55
|
+
var importPluginConfig = (0, import_config.defineConfig)({
|
|
56
56
|
name: "import/custom",
|
|
57
57
|
rules: {
|
|
58
58
|
"import/enforce-node-protocol-usage": ["error", "always"],
|
|
@@ -60,7 +60,7 @@ var importConfig = (0, import_config.defineConfig)({
|
|
|
60
60
|
"import/newline-after-import": "error"
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
|
-
var
|
|
63
|
+
var simpleImportSortPluginConfig = (0, import_config.defineConfig)({
|
|
64
64
|
name: "simple-import-sort/custom",
|
|
65
65
|
plugins: {
|
|
66
66
|
"simple-import-sort": import_eslint_plugin_simple_import_sort.default
|
|
@@ -81,8 +81,8 @@ var import_default = (0, import_config.defineConfig)(
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
importPluginConfig,
|
|
85
|
+
simpleImportSortPluginConfig
|
|
86
86
|
);
|
|
87
87
|
|
|
88
88
|
// src/configs/typescript.ts
|
|
@@ -197,7 +197,7 @@ var react_default = {
|
|
|
197
197
|
]
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
|
-
import_eslint_plugin_react_hooks.default.configs.flat["recommended-latest"]
|
|
200
|
+
import_eslint_plugin_react_hooks.default.configs.flat["recommended-latest"],
|
|
201
201
|
{
|
|
202
202
|
name: "react-refresh/custom",
|
|
203
203
|
plugins: {
|
package/dist/react.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/react.ts","../src/ts.ts","../src/configs/import.ts","../src/configs/typescript.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 baseConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(\n baseConfig.configs.recommended,\n importPlugin.flatConfigs.react,\n {\n name: 'react/src-browser-globals',\n files: ['**/*.{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']
|
|
1
|
+
{"version":3,"sources":["../src/react.ts","../src/ts.ts","../src/configs/import.ts","../src/configs/typescript.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 baseConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(\n baseConfig.configs.recommended,\n importPlugin.flatConfigs.react,\n {\n name: 'react/src-browser-globals',\n files: ['**/*.{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 {\n name: 'react-refresh/custom',\n plugins: {\n 'react-refresh': reactRefresh,\n },\n rules: {\n 'react-refresh/only-export-components': 'warn',\n },\n },\n prettier,\n ),\n },\n};\n","import js from '@eslint/js';\nimport { defineConfig } from 'eslint/config';\nimport prettier from 'eslint-config-prettier';\nimport importPlugin from 'eslint-plugin-import';\nimport globals from 'globals';\n\nimport importConfig from './configs/import.js';\nimport typescriptConfig from './configs/typescript.js';\n\n// the difference between this and the `configs/typescript.js` file is that this is the entire\n// config for typescript projects, while that file is the eslint typescript config itself\n\nexport default {\n configs: {\n recommended: defineConfig(\n Object.assign({ name: '@eslint/js/recommended' }, js.configs.recommended),\n importConfig,\n importPlugin.flatConfigs.typescript,\n {\n name: 'ts/config-file-globals',\n files: ['*.config.{mjs,cjs,js,ts}'],\n languageOptions: {\n globals: globals.node,\n },\n },\n typescriptConfig,\n prettier,\n ),\n },\n};\n","import { defineConfig } from 'eslint/config';\nimport importPlugin from 'eslint-plugin-import';\nimport simpleImportSort from 'eslint-plugin-simple-import-sort';\n\nexport const importPluginConfig = defineConfig({\n name: 'import/custom',\n rules: {\n 'import/enforce-node-protocol-usage': ['error', 'always'],\n 'import/first': 'error',\n 'import/newline-after-import': 'error',\n },\n});\n\nexport const simpleImportSortPluginConfig = defineConfig({\n name: 'simple-import-sort/custom',\n plugins: {\n 'simple-import-sort': simpleImportSort,\n },\n rules: {\n 'simple-import-sort/imports': 'error',\n 'simple-import-sort/exports': 'error',\n },\n});\n\nexport default defineConfig(\n importPlugin.flatConfigs.recommended,\n {\n name: 'import/settings',\n settings: {\n 'import/resolver': {\n typescript: true,\n node: true,\n },\n },\n },\n importPluginConfig,\n simpleImportSortPluginConfig,\n);\n","import { defineConfig } from 'eslint/config';\nimport { configs as tseslintConfigs } from 'typescript-eslint';\n\nexport default defineConfig(\n tseslintConfigs.strictTypeChecked,\n {\n name: 'typescript/languageOptions',\n languageOptions: {\n parserOptions: {\n projectService: true,\n },\n },\n },\n {\n name: 'typescript/custom',\n rules: {\n '@typescript-eslint/consistent-type-definitions': 'off',\n '@typescript-eslint/no-misused-promises': [\n 'error',\n {\n checksVoidReturn: {\n attributes: false,\n },\n },\n ],\n '@typescript-eslint/no-unused-vars': [\n 'error',\n {\n args: 'all',\n argsIgnorePattern: '^_',\n caughtErrors: 'all',\n caughtErrorsIgnorePattern: '^_',\n destructuredArrayIgnorePattern: '^_',\n varsIgnorePattern: '^_',\n },\n ],\n '@typescript-eslint/restrict-template-expressions': [\n 'error',\n {\n allowNumber: true,\n },\n ],\n // https://tanstack.com/router/v1/docs/framework/react/api/router/redirectFunction\n '@typescript-eslint/only-throw-error': [\n 'warn',\n {\n allow: [\n {\n from: 'package',\n name: 'Redirect',\n package: '@tanstack/router-core',\n },\n ],\n },\n ],\n },\n },\n {\n files: ['**/*.{cjs,js}'],\n extends: [tseslintConfigs.disableTypeChecked],\n },\n);\n"],"mappings":"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","names":["import_config","import_eslint_config_prettier","import_eslint_plugin_import","import_globals","import_config","import_eslint_plugin_import","simpleImportSort","importPlugin","import_config","tseslintConfigs","js","importPlugin","globals","prettier","importPlugin","globals","react","reactHooks","reactRefresh","prettier"]}
|
package/dist/react.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/react.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/react.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ts_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-7D4SUZUM.js";
|
|
3
|
+
} from "./chunk-NVDKHLI3.js";
|
|
4
|
+
import "./chunk-E7RK5RTJ.js";
|
|
6
5
|
|
|
7
6
|
// src/react.ts
|
|
8
7
|
import { defineConfig } from "eslint/config";
|
|
@@ -40,7 +39,7 @@ var react_default = {
|
|
|
40
39
|
]
|
|
41
40
|
}
|
|
42
41
|
},
|
|
43
|
-
reactHooks.configs.flat["recommended-latest"]
|
|
42
|
+
reactHooks.configs.flat["recommended-latest"],
|
|
44
43
|
{
|
|
45
44
|
name: "react-refresh/custom",
|
|
46
45
|
plugins: {
|
package/dist/react.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"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 baseConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(\n baseConfig.configs.recommended,\n importPlugin.flatConfigs.react,\n {\n name: 'react/src-browser-globals',\n files: ['**/*.{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']
|
|
1
|
+
{"version":3,"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 baseConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(\n baseConfig.configs.recommended,\n importPlugin.flatConfigs.react,\n {\n name: 'react/src-browser-globals',\n files: ['**/*.{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 {\n name: 'react-refresh/custom',\n plugins: {\n 'react-refresh': reactRefresh,\n },\n rules: {\n 'react-refresh/only-export-components': 'warn',\n },\n },\n prettier,\n ),\n },\n};\n"],"mappings":";;;;;;AAAA,SAAS,oBAAoB;AAC7B,OAAO,cAAc;AACrB,OAAO,kBAAkB;AACzB,OAAO,WAAW;AAClB,OAAO,gBAAgB;AACvB,OAAO,kBAAkB;AACzB,OAAO,aAAa;AAIpB,IAAO,gBAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa;AAAA,MACX,WAAW,QAAQ;AAAA,MACnB,aAAa,YAAY;AAAA,MACzB;AAAA,QACE,MAAM;AAAA,QACN,OAAO,CAAC,eAAe;AAAA,QACvB,iBAAiB;AAAA,UACf,SAAS,QAAQ;AAAA,QACnB;AAAA,MACF;AAAA,MACA,MAAM,QAAQ,KAAK,aAAa,KAAK,CAAC;AAAA,MACtC,MAAM,QAAQ,KAAK,aAAa,KAAK,CAAC;AAAA,MACtC;AAAA,QACE,MAAM;AAAA,QACN,UAAU;AAAA,UACR,OAAO;AAAA,YACL,SAAS;AAAA,UACX;AAAA,QACF;AAAA,QACA,OAAO;AAAA,UACL,uCAAuC;AAAA,YACrC;AAAA,YACA,EAAE,iBAAiB,uBAAuB;AAAA,UAC5C;AAAA,QACF;AAAA,MACF;AAAA,MACA,WAAW,QAAQ,KAAK,oBAAoB;AAAA,MAC5C;AAAA,QACE,MAAM;AAAA,QACN,SAAS;AAAA,UACP,iBAAiB;AAAA,QACnB;AAAA,QACA,OAAO;AAAA,UACL,wCAAwC;AAAA,QAC1C;AAAA,MACF;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
package/dist/storybook.cjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
19
|
|
|
30
20
|
// src/storybook.ts
|
|
@@ -34,10 +24,12 @@ __export(storybook_exports, {
|
|
|
34
24
|
});
|
|
35
25
|
module.exports = __toCommonJS(storybook_exports);
|
|
36
26
|
var import_config = require("eslint/config");
|
|
37
|
-
var import_eslint_plugin_storybook =
|
|
27
|
+
var import_eslint_plugin_storybook = require("eslint-plugin-storybook");
|
|
38
28
|
var storybook_default = {
|
|
39
29
|
configs: {
|
|
40
|
-
recommended: (0, import_config.defineConfig)(
|
|
30
|
+
recommended: (0, import_config.defineConfig)(
|
|
31
|
+
import_eslint_plugin_storybook.configs["flat/recommended"]
|
|
32
|
+
)
|
|
41
33
|
}
|
|
42
34
|
};
|
|
43
35
|
//# sourceMappingURL=storybook.cjs.map
|
package/dist/storybook.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/storybook.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport
|
|
1
|
+
{"version":3,"sources":["../src/storybook.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport { configs as storybookConfigs } from 'eslint-plugin-storybook';\n\nexport default {\n configs: {\n recommended: defineConfig(\n storybookConfigs['flat/recommended'] as Parameters<\n typeof defineConfig\n >[0],\n ),\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA6B;AAC7B,qCAA4C;AAE5C,IAAO,oBAAQ;AAAA,EACb,SAAS;AAAA,IACP,iBAAa;AAAA,MACX,+BAAAA,QAAiB,kBAAkB;AAAA,IAGrC;AAAA,EACF;AACF;","names":["storybookConfigs"]}
|
package/dist/storybook.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/storybook.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/storybook.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./chunk-7D4SUZUM.js";
|
|
2
|
-
|
|
3
1
|
// src/storybook.ts
|
|
4
2
|
import { defineConfig } from "eslint/config";
|
|
5
|
-
import
|
|
3
|
+
import { configs as storybookConfigs } from "eslint-plugin-storybook";
|
|
6
4
|
var storybook_default = {
|
|
7
5
|
configs: {
|
|
8
|
-
recommended: defineConfig(
|
|
6
|
+
recommended: defineConfig(
|
|
7
|
+
storybookConfigs["flat/recommended"]
|
|
8
|
+
)
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
export {
|
package/dist/storybook.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/storybook.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport
|
|
1
|
+
{"version":3,"sources":["../src/storybook.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport { configs as storybookConfigs } from 'eslint-plugin-storybook';\n\nexport default {\n configs: {\n recommended: defineConfig(\n storybookConfigs['flat/recommended'] as Parameters<\n typeof defineConfig\n >[0],\n ),\n },\n};\n"],"mappings":";AAAA,SAAS,oBAAoB;AAC7B,SAAS,WAAW,wBAAwB;AAE5C,IAAO,oBAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa;AAAA,MACX,iBAAiB,kBAAkB;AAAA,IAGrC;AAAA,EACF;AACF;","names":[]}
|
package/dist/tailwind.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/tailwind.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/tailwind.js
CHANGED
package/dist/tailwind.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"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: ['**/*.tsx'],\n plugins: {\n 'better-tailwindcss': eslintPluginBetterTailwindcss,\n },\n rules: {\n ...eslintPluginBetterTailwindcss.configs['recommended-error']?.rules,\n 'better-tailwindcss/no-deprecated-classes': 'warn',\n },\n }),\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"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: ['**/*.tsx'],\n plugins: {\n 'better-tailwindcss': eslintPluginBetterTailwindcss,\n },\n rules: {\n ...eslintPluginBetterTailwindcss.configs['recommended-error']?.rules,\n 'better-tailwindcss/no-deprecated-classes': 'warn',\n },\n }),\n },\n};\n"],"mappings":";AAAA,SAAS,oBAAoB;AAC7B,OAAO,mCAAmC;AAE1C,IAAO,mBAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa,aAAa;AAAA,MACxB,OAAO,CAAC,UAAU;AAAA,MAClB,SAAS;AAAA,QACP,sBAAsB;AAAA,MACxB;AAAA,MACA,OAAO;AAAA,QACL,GAAG,8BAA8B,QAAQ,mBAAmB,GAAG;AAAA,QAC/D,4CAA4C;AAAA,MAC9C;AAAA,IACF,CAAC;AAAA,EACH;AACF;","names":[]}
|
package/dist/ts.cjs
CHANGED
|
@@ -43,7 +43,7 @@ var import_globals = __toESM(require("globals"), 1);
|
|
|
43
43
|
var import_config = require("eslint/config");
|
|
44
44
|
var import_eslint_plugin_import = __toESM(require("eslint-plugin-import"), 1);
|
|
45
45
|
var import_eslint_plugin_simple_import_sort = __toESM(require("eslint-plugin-simple-import-sort"), 1);
|
|
46
|
-
var
|
|
46
|
+
var importPluginConfig = (0, import_config.defineConfig)({
|
|
47
47
|
name: "import/custom",
|
|
48
48
|
rules: {
|
|
49
49
|
"import/enforce-node-protocol-usage": ["error", "always"],
|
|
@@ -51,7 +51,7 @@ var importConfig = (0, import_config.defineConfig)({
|
|
|
51
51
|
"import/newline-after-import": "error"
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
var
|
|
54
|
+
var simpleImportSortPluginConfig = (0, import_config.defineConfig)({
|
|
55
55
|
name: "simple-import-sort/custom",
|
|
56
56
|
plugins: {
|
|
57
57
|
"simple-import-sort": import_eslint_plugin_simple_import_sort.default
|
|
@@ -72,8 +72,8 @@ var import_default = (0, import_config.defineConfig)(
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
importPluginConfig,
|
|
76
|
+
simpleImportSortPluginConfig
|
|
77
77
|
);
|
|
78
78
|
|
|
79
79
|
// src/configs/typescript.ts
|
package/dist/ts.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ts.ts","../src/configs/import.ts","../src/configs/typescript.ts"],"sourcesContent":["import js from '@eslint/js';\nimport { defineConfig } from 'eslint/config';\nimport prettier from 'eslint-config-prettier';\nimport importPlugin from 'eslint-plugin-import';\nimport globals from 'globals';\n\nimport importConfig from './configs/import.js';\nimport typescriptConfig from './configs/typescript.js';\n\n// the difference between this and the `configs/typescript.js` file is that this is the entire\n// config for typescript projects, while that file is the eslint typescript config itself\n\nexport default {\n configs: {\n recommended: defineConfig(\n Object.assign({ name: '@eslint/js/recommended' }, js.configs.recommended),\n importConfig,\n importPlugin.flatConfigs.typescript,\n {\n name: 'ts/config-file-globals',\n files: ['*.config.{mjs,cjs,js,ts}'],\n languageOptions: {\n globals: globals.node,\n },\n },\n typescriptConfig,\n prettier,\n ),\n },\n};\n","import { defineConfig } from 'eslint/config';\nimport importPlugin from 'eslint-plugin-import';\nimport simpleImportSort from 'eslint-plugin-simple-import-sort';\n\nexport const
|
|
1
|
+
{"version":3,"sources":["../src/ts.ts","../src/configs/import.ts","../src/configs/typescript.ts"],"sourcesContent":["import js from '@eslint/js';\nimport { defineConfig } from 'eslint/config';\nimport prettier from 'eslint-config-prettier';\nimport importPlugin from 'eslint-plugin-import';\nimport globals from 'globals';\n\nimport importConfig from './configs/import.js';\nimport typescriptConfig from './configs/typescript.js';\n\n// the difference between this and the `configs/typescript.js` file is that this is the entire\n// config for typescript projects, while that file is the eslint typescript config itself\n\nexport default {\n configs: {\n recommended: defineConfig(\n Object.assign({ name: '@eslint/js/recommended' }, js.configs.recommended),\n importConfig,\n importPlugin.flatConfigs.typescript,\n {\n name: 'ts/config-file-globals',\n files: ['*.config.{mjs,cjs,js,ts}'],\n languageOptions: {\n globals: globals.node,\n },\n },\n typescriptConfig,\n prettier,\n ),\n },\n};\n","import { defineConfig } from 'eslint/config';\nimport importPlugin from 'eslint-plugin-import';\nimport simpleImportSort from 'eslint-plugin-simple-import-sort';\n\nexport const importPluginConfig = defineConfig({\n name: 'import/custom',\n rules: {\n 'import/enforce-node-protocol-usage': ['error', 'always'],\n 'import/first': 'error',\n 'import/newline-after-import': 'error',\n },\n});\n\nexport const simpleImportSortPluginConfig = defineConfig({\n name: 'simple-import-sort/custom',\n plugins: {\n 'simple-import-sort': simpleImportSort,\n },\n rules: {\n 'simple-import-sort/imports': 'error',\n 'simple-import-sort/exports': 'error',\n },\n});\n\nexport default defineConfig(\n importPlugin.flatConfigs.recommended,\n {\n name: 'import/settings',\n settings: {\n 'import/resolver': {\n typescript: true,\n node: true,\n },\n },\n },\n importPluginConfig,\n simpleImportSortPluginConfig,\n);\n","import { defineConfig } from 'eslint/config';\nimport { configs as tseslintConfigs } from 'typescript-eslint';\n\nexport default defineConfig(\n tseslintConfigs.strictTypeChecked,\n {\n name: 'typescript/languageOptions',\n languageOptions: {\n parserOptions: {\n projectService: true,\n },\n },\n },\n {\n name: 'typescript/custom',\n rules: {\n '@typescript-eslint/consistent-type-definitions': 'off',\n '@typescript-eslint/no-misused-promises': [\n 'error',\n {\n checksVoidReturn: {\n attributes: false,\n },\n },\n ],\n '@typescript-eslint/no-unused-vars': [\n 'error',\n {\n args: 'all',\n argsIgnorePattern: '^_',\n caughtErrors: 'all',\n caughtErrorsIgnorePattern: '^_',\n destructuredArrayIgnorePattern: '^_',\n varsIgnorePattern: '^_',\n },\n ],\n '@typescript-eslint/restrict-template-expressions': [\n 'error',\n {\n allowNumber: true,\n },\n ],\n // https://tanstack.com/router/v1/docs/framework/react/api/router/redirectFunction\n '@typescript-eslint/only-throw-error': [\n 'warn',\n {\n allow: [\n {\n from: 'package',\n name: 'Redirect',\n package: '@tanstack/router-core',\n },\n ],\n },\n ],\n },\n },\n {\n files: ['**/*.{cjs,js}'],\n extends: [tseslintConfigs.disableTypeChecked],\n },\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAe;AACf,IAAAA,iBAA6B;AAC7B,oCAAqB;AACrB,IAAAC,+BAAyB;AACzB,qBAAoB;;;ACJpB,oBAA6B;AAC7B,kCAAyB;AACzB,8CAA6B;AAEtB,IAAM,yBAAqB,4BAAa;AAAA,EAC7C,MAAM;AAAA,EACN,OAAO;AAAA,IACL,sCAAsC,CAAC,SAAS,QAAQ;AAAA,IACxD,gBAAgB;AAAA,IAChB,+BAA+B;AAAA,EACjC;AACF,CAAC;AAEM,IAAM,mCAA+B,4BAAa;AAAA,EACvD,MAAM;AAAA,EACN,SAAS;AAAA,IACP,sBAAsB,wCAAAC;AAAA,EACxB;AAAA,EACA,OAAO;AAAA,IACL,8BAA8B;AAAA,IAC9B,8BAA8B;AAAA,EAChC;AACF,CAAC;AAED,IAAO,qBAAQ;AAAA,EACb,4BAAAC,QAAa,YAAY;AAAA,EACzB;AAAA,IACE,MAAM;AAAA,IACN,UAAU;AAAA,MACR,mBAAmB;AAAA,QACjB,YAAY;AAAA,QACZ,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,EACA;AACF;;;ACrCA,IAAAC,iBAA6B;AAC7B,+BAA2C;AAE3C,IAAO,yBAAQ;AAAA,EACb,yBAAAC,QAAgB;AAAA,EAChB;AAAA,IACE,MAAM;AAAA,IACN,iBAAiB;AAAA,MACf,eAAe;AAAA,QACb,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,OAAO;AAAA,MACL,kDAAkD;AAAA,MAClD,0CAA0C;AAAA,QACxC;AAAA,QACA;AAAA,UACE,kBAAkB;AAAA,YAChB,YAAY;AAAA,UACd;AAAA,QACF;AAAA,MACF;AAAA,MACA,qCAAqC;AAAA,QACnC;AAAA,QACA;AAAA,UACE,MAAM;AAAA,UACN,mBAAmB;AAAA,UACnB,cAAc;AAAA,UACd,2BAA2B;AAAA,UAC3B,gCAAgC;AAAA,UAChC,mBAAmB;AAAA,QACrB;AAAA,MACF;AAAA,MACA,oDAAoD;AAAA,QAClD;AAAA,QACA;AAAA,UACE,aAAa;AAAA,QACf;AAAA,MACF;AAAA;AAAA,MAEA,uCAAuC;AAAA,QACrC;AAAA,QACA;AAAA,UACE,OAAO;AAAA,YACL;AAAA,cACE,MAAM;AAAA,cACN,MAAM;AAAA,cACN,SAAS;AAAA,YACX;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,OAAO,CAAC,eAAe;AAAA,IACvB,SAAS,CAAC,yBAAAA,QAAgB,kBAAkB;AAAA,EAC9C;AACF;;;AFjDA,IAAO,aAAQ;AAAA,EACb,SAAS;AAAA,IACP,iBAAa;AAAA,MACX,OAAO,OAAO,EAAE,MAAM,yBAAyB,GAAG,UAAAC,QAAG,QAAQ,WAAW;AAAA,MACxE;AAAA,MACA,6BAAAC,QAAa,YAAY;AAAA,MACzB;AAAA,QACE,MAAM;AAAA,QACN,OAAO,CAAC,0BAA0B;AAAA,QAClC,iBAAiB;AAAA,UACf,SAAS,eAAAC,QAAQ;AAAA,QACnB;AAAA,MACF;AAAA,MACA;AAAA,MACA,8BAAAC;AAAA,IACF;AAAA,EACF;AACF;","names":["import_config","import_eslint_plugin_import","simpleImportSort","importPlugin","import_config","tseslintConfigs","js","importPlugin","globals","prettier"]}
|
package/dist/ts.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/ts.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/ts.js
CHANGED
package/dist/turbo.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/turbo.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/turbo.js
CHANGED
package/dist/turbo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/turbo.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport { configs as turboConfigs } from 'eslint-plugin-turbo';\n\nexport default {\n configs: {\n recommended: defineConfig(turboConfigs['flat/recommended']),\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/turbo.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport { configs as turboConfigs } from 'eslint-plugin-turbo';\n\nexport default {\n configs: {\n recommended: defineConfig(turboConfigs['flat/recommended']),\n },\n};\n"],"mappings":";AAAA,SAAS,oBAAoB;AAC7B,SAAS,WAAW,oBAAoB;AAExC,IAAO,gBAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa,aAAa,aAAa,kBAAkB,CAAC;AAAA,EAC5D;AACF;","names":[]}
|
package/dist/vitest.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/vitest.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/vitest.js
CHANGED
package/dist/vitest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/vitest.ts"],"sourcesContent":["import vitest from '@vitest/eslint-plugin';\nimport { Linter } from 'eslint';\nimport { defineConfig } from 'eslint/config';\n\nexport default {\n configs: {\n recommended: defineConfig(\n // XXX: temp fix for https://github.com/vitest-dev/eslint-plugin-vitest/issues/771\n vitest.configs.recommended as unknown as Linter.Config[],\n {\n name: 'custom/vitest',\n files: ['**/*.test.{ts,tsx}'],\n rules: {\n 'vitest/consistent-test-it': [\n 'error',\n {\n fn: 'test',\n withinDescribe: 'test',\n },\n ],\n 'vitest/no-focused-tests': 'error',\n 'vitest/no-disabled-tests': 'error',\n 'vitest/prefer-lowercase-title': [\n 'warn',\n {\n ignoreTopLevelDescribe: true,\n },\n ],\n // Disable certain strict typescript eslint rules for tests\n // https://github.com/vitest-dev/vitest/issues/4543#issuecomment-1824881253\n '@typescript-eslint/no-unsafe-assignment': 'off',\n },\n },\n ),\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/vitest.ts"],"sourcesContent":["import vitest from '@vitest/eslint-plugin';\nimport { Linter } from 'eslint';\nimport { defineConfig } from 'eslint/config';\n\nexport default {\n configs: {\n recommended: defineConfig(\n // XXX: temp fix for https://github.com/vitest-dev/eslint-plugin-vitest/issues/771\n vitest.configs.recommended as unknown as Linter.Config[],\n {\n name: 'custom/vitest',\n files: ['**/*.test.{ts,tsx}'],\n rules: {\n 'vitest/consistent-test-it': [\n 'error',\n {\n fn: 'test',\n withinDescribe: 'test',\n },\n ],\n 'vitest/no-focused-tests': 'error',\n 'vitest/no-disabled-tests': 'error',\n 'vitest/prefer-lowercase-title': [\n 'warn',\n {\n ignoreTopLevelDescribe: true,\n },\n ],\n // Disable certain strict typescript eslint rules for tests\n // https://github.com/vitest-dev/vitest/issues/4543#issuecomment-1824881253\n '@typescript-eslint/no-unsafe-assignment': 'off',\n },\n },\n ),\n },\n};\n"],"mappings":";AAAA,OAAO,YAAY;AAEnB,SAAS,oBAAoB;AAE7B,IAAO,iBAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa;AAAA;AAAA,MAEX,OAAO,QAAQ;AAAA,MACf;AAAA,QACE,MAAM;AAAA,QACN,OAAO,CAAC,oBAAoB;AAAA,QAC5B,OAAO;AAAA,UACL,6BAA6B;AAAA,YAC3B;AAAA,YACA;AAAA,cACE,IAAI;AAAA,cACJ,gBAAgB;AAAA,YAClB;AAAA,UACF;AAAA,UACA,2BAA2B;AAAA,UAC3B,4BAA4B;AAAA,UAC5B,iCAAiC;AAAA,YAC/B;AAAA,YACA;AAAA,cACE,wBAAwB;AAAA,YAC1B;AAAA,UACF;AAAA;AAAA;AAAA,UAGA,2CAA2C;AAAA,QAC7C;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|