@stzhu/eslint-config 0.7.0 → 0.8.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/README.md +19 -12
- package/dist/chunk-7D4SUZUM.js +38 -0
- package/dist/chunk-7D4SUZUM.js.map +1 -0
- package/dist/chunk-AKYUAI22.js +43 -0
- package/dist/chunk-AKYUAI22.js.map +1 -0
- package/dist/{chunk-LD4GK7PC.js → chunk-W7DGUSEO.js} +20 -16
- package/dist/chunk-W7DGUSEO.js.map +1 -0
- package/dist/expo.cjs +33 -18
- package/dist/expo.cjs.map +1 -1
- package/dist/expo.d.cts +7 -2
- package/dist/expo.d.ts +7 -2
- package/dist/expo.js +16 -4
- package/dist/expo.js.map +1 -1
- package/dist/import.cjs +39403 -0
- package/dist/import.cjs.map +1 -0
- package/dist/import.d.cts +10 -0
- package/dist/import.d.ts +10 -0
- package/dist/import.js +39375 -0
- package/dist/import.js.map +1 -0
- package/dist/lingui.cjs +5 -1
- package/dist/lingui.cjs.map +1 -1
- package/dist/lingui.d.cts +7 -2
- package/dist/lingui.d.ts +7 -2
- package/dist/lingui.js +7 -1
- package/dist/lingui.js.map +1 -1
- package/dist/node.cjs +47 -34
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +7 -2
- package/dist/node.d.ts +7 -2
- package/dist/node.js +11 -6
- package/dist/node.js.map +1 -1
- package/dist/react.cjs +81 -68
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +7 -2
- package/dist/react.d.ts +7 -2
- package/dist/react.js +45 -40
- package/dist/react.js.map +1 -1
- package/dist/storybook.cjs +5 -1
- package/dist/storybook.cjs.map +1 -1
- package/dist/storybook.d.cts +7 -2
- package/dist/storybook.d.ts +7 -2
- package/dist/storybook.js +7 -1
- package/dist/storybook.js.map +1 -1
- package/dist/tailwind.cjs +13 -9
- package/dist/tailwind.cjs.map +1 -1
- package/dist/tailwind.d.cts +7 -2
- package/dist/tailwind.d.ts +7 -2
- package/dist/tailwind.js +15 -9
- package/dist/tailwind.js.map +1 -1
- package/dist/ts.cjs +39 -30
- package/dist/ts.cjs.map +1 -1
- package/dist/ts.d.cts +7 -2
- package/dist/ts.d.ts +7 -2
- package/dist/ts.js +3 -2
- package/dist/turbo.cjs +5 -1
- package/dist/turbo.cjs.map +1 -1
- package/dist/turbo.d.cts +7 -2
- package/dist/turbo.d.ts +7 -2
- package/dist/turbo.js +7 -1
- package/dist/turbo.js.map +1 -1
- package/dist/types.d-DV2WF_ti.d.cts +1142 -0
- package/dist/types.d-DV2WF_ti.d.ts +1142 -0
- package/dist/vitest.cjs +29 -21
- package/dist/vitest.cjs.map +1 -1
- package/dist/vitest.d.cts +7 -2
- package/dist/vitest.d.ts +7 -2
- package/dist/vitest.js +31 -21
- package/dist/vitest.js.map +1 -1
- package/package.json +33 -19
- package/dist/chunk-LD4GK7PC.js.map +0 -1
- package/dist/chunk-VT2KKBLH.js +0 -36
- package/dist/chunk-VT2KKBLH.js.map +0 -1
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 defineConfig(\n
|
|
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,KAAK,CAAC;AAAA,MAClD;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
|
@@ -35,5 +35,9 @@ __export(storybook_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(storybook_exports);
|
|
36
36
|
var import_config = require("eslint/config");
|
|
37
37
|
var import_eslint_plugin_storybook = __toESM(require("eslint-plugin-storybook"), 1);
|
|
38
|
-
var storybook_default =
|
|
38
|
+
var storybook_default = {
|
|
39
|
+
configs: {
|
|
40
|
+
recommended: (0, import_config.defineConfig)(import_eslint_plugin_storybook.default.configs["flat/recommended"])
|
|
41
|
+
}
|
|
42
|
+
};
|
|
39
43
|
//# 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 storybook from 'eslint-plugin-storybook';\n\nexport default defineConfig(storybook.configs['flat/recommended']);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA6B;AAC7B,qCAAsB;AAEtB,IAAO,
|
|
1
|
+
{"version":3,"sources":["../src/storybook.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport storybook from 'eslint-plugin-storybook';\n\nexport default {\n configs: {\n recommended: defineConfig(storybook.configs['flat/recommended']),\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA6B;AAC7B,qCAAsB;AAEtB,IAAO,oBAAQ;AAAA,EACb,SAAS;AAAA,IACP,iBAAa,4BAAa,+BAAAA,QAAU,QAAQ,kBAAkB,CAAC;AAAA,EACjE;AACF;","names":["storybook"]}
|
package/dist/storybook.d.cts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { C as ConfigObject, R as RulesConfig } from './types.d-DV2WF_ti.cjs';
|
|
2
|
+
import 'json-schema';
|
|
2
3
|
|
|
3
|
-
declare const _default:
|
|
4
|
+
declare const _default: {
|
|
5
|
+
configs: {
|
|
6
|
+
recommended: ConfigObject<RulesConfig>[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
|
|
5
10
|
export { _default as default };
|
package/dist/storybook.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { C as ConfigObject, R as RulesConfig } from './types.d-DV2WF_ti.js';
|
|
2
|
+
import 'json-schema';
|
|
2
3
|
|
|
3
|
-
declare const _default:
|
|
4
|
+
declare const _default: {
|
|
5
|
+
configs: {
|
|
6
|
+
recommended: ConfigObject<RulesConfig>[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
|
|
5
10
|
export { _default as default };
|
package/dist/storybook.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import "./chunk-7D4SUZUM.js";
|
|
2
|
+
|
|
1
3
|
// src/storybook.ts
|
|
2
4
|
import { defineConfig } from "eslint/config";
|
|
3
5
|
import storybook from "eslint-plugin-storybook";
|
|
4
|
-
var storybook_default =
|
|
6
|
+
var storybook_default = {
|
|
7
|
+
configs: {
|
|
8
|
+
recommended: defineConfig(storybook.configs["flat/recommended"])
|
|
9
|
+
}
|
|
10
|
+
};
|
|
5
11
|
export {
|
|
6
12
|
storybook_default as default
|
|
7
13
|
};
|
package/dist/storybook.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/storybook.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport storybook from 'eslint-plugin-storybook';\n\nexport default defineConfig(storybook.configs['flat/recommended']);\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/storybook.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport storybook from 'eslint-plugin-storybook';\n\nexport default {\n configs: {\n recommended: defineConfig(storybook.configs['flat/recommended']),\n },\n};\n"],"mappings":";;;AAAA,SAAS,oBAAoB;AAC7B,OAAO,eAAe;AAEtB,IAAO,oBAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa,aAAa,UAAU,QAAQ,kBAAkB,CAAC;AAAA,EACjE;AACF;","names":[]}
|
package/dist/tailwind.cjs
CHANGED
|
@@ -35,14 +35,18 @@ __export(tailwind_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(tailwind_exports);
|
|
36
36
|
var import_config = require("eslint/config");
|
|
37
37
|
var import_eslint_plugin_better_tailwindcss = __toESM(require("eslint-plugin-better-tailwindcss"), 1);
|
|
38
|
-
var tailwind_default =
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
var tailwind_default = {
|
|
39
|
+
configs: {
|
|
40
|
+
recommended: (0, import_config.defineConfig)({
|
|
41
|
+
files: ["**/*.tsx"],
|
|
42
|
+
plugins: {
|
|
43
|
+
"better-tailwindcss": import_eslint_plugin_better_tailwindcss.default
|
|
44
|
+
},
|
|
45
|
+
rules: {
|
|
46
|
+
...import_eslint_plugin_better_tailwindcss.default.configs["recommended-error"]?.rules,
|
|
47
|
+
"better-tailwindcss/no-deprecated-classes": "warn"
|
|
48
|
+
}
|
|
49
|
+
})
|
|
46
50
|
}
|
|
47
|
-
}
|
|
51
|
+
};
|
|
48
52
|
//# sourceMappingURL=tailwind.cjs.map
|
package/dist/tailwind.cjs.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 defineConfig({\n
|
|
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;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA6B;AAC7B,8CAA0C;AAE1C,IAAO,mBAAQ;AAAA,EACb,SAAS;AAAA,IACP,iBAAa,4BAAa;AAAA,MACxB,OAAO,CAAC,UAAU;AAAA,MAClB,SAAS;AAAA,QACP,sBAAsB,wCAAAA;AAAA,MACxB;AAAA,MACA,OAAO;AAAA,QACL,GAAG,wCAAAA,QAA8B,QAAQ,mBAAmB,GAAG;AAAA,QAC/D,4CAA4C;AAAA,MAC9C;AAAA,IACF,CAAC;AAAA,EACH;AACF;","names":["eslintPluginBetterTailwindcss"]}
|
package/dist/tailwind.d.cts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { C as ConfigObject, R as RulesConfig } from './types.d-DV2WF_ti.cjs';
|
|
2
|
+
import 'json-schema';
|
|
2
3
|
|
|
3
|
-
declare const _default:
|
|
4
|
+
declare const _default: {
|
|
5
|
+
configs: {
|
|
6
|
+
recommended: ConfigObject<RulesConfig>[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
|
|
5
10
|
export { _default as default };
|
package/dist/tailwind.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { C as ConfigObject, R as RulesConfig } from './types.d-DV2WF_ti.js';
|
|
2
|
+
import 'json-schema';
|
|
2
3
|
|
|
3
|
-
declare const _default:
|
|
4
|
+
declare const _default: {
|
|
5
|
+
configs: {
|
|
6
|
+
recommended: ConfigObject<RulesConfig>[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
|
|
5
10
|
export { _default as default };
|
package/dist/tailwind.js
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
|
+
import "./chunk-7D4SUZUM.js";
|
|
2
|
+
|
|
1
3
|
// src/tailwind.ts
|
|
2
4
|
import { defineConfig } from "eslint/config";
|
|
3
5
|
import eslintPluginBetterTailwindcss from "eslint-plugin-better-tailwindcss";
|
|
4
|
-
var tailwind_default =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
var tailwind_default = {
|
|
7
|
+
configs: {
|
|
8
|
+
recommended: defineConfig({
|
|
9
|
+
files: ["**/*.tsx"],
|
|
10
|
+
plugins: {
|
|
11
|
+
"better-tailwindcss": eslintPluginBetterTailwindcss
|
|
12
|
+
},
|
|
13
|
+
rules: {
|
|
14
|
+
...eslintPluginBetterTailwindcss.configs["recommended-error"]?.rules,
|
|
15
|
+
"better-tailwindcss/no-deprecated-classes": "warn"
|
|
16
|
+
}
|
|
17
|
+
})
|
|
12
18
|
}
|
|
13
|
-
}
|
|
19
|
+
};
|
|
14
20
|
export {
|
|
15
21
|
tailwind_default as default
|
|
16
22
|
};
|
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 defineConfig({\n
|
|
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,32 +43,37 @@ 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 importConfig = (0, import_config.defineConfig)({
|
|
47
|
+
name: "import/custom",
|
|
48
|
+
rules: {
|
|
49
|
+
"import/enforce-node-protocol-usage": ["error", "always"],
|
|
50
|
+
"import/first": "error",
|
|
51
|
+
"import/newline-after-import": "error"
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
var simpleImportSortConfig = (0, import_config.defineConfig)({
|
|
55
|
+
name: "simple-import-sort/custom",
|
|
56
|
+
plugins: {
|
|
57
|
+
"simple-import-sort": import_eslint_plugin_simple_import_sort.default
|
|
58
|
+
},
|
|
59
|
+
rules: {
|
|
60
|
+
"simple-import-sort/imports": "error",
|
|
61
|
+
"simple-import-sort/exports": "error"
|
|
62
|
+
}
|
|
63
|
+
});
|
|
46
64
|
var import_default = (0, import_config.defineConfig)(
|
|
47
65
|
import_eslint_plugin_import.default.flatConfigs.recommended,
|
|
48
66
|
{
|
|
49
|
-
name: "import/
|
|
67
|
+
name: "import/settings",
|
|
50
68
|
settings: {
|
|
51
69
|
"import/resolver": {
|
|
52
70
|
typescript: true,
|
|
53
71
|
node: true
|
|
54
72
|
}
|
|
55
|
-
},
|
|
56
|
-
rules: {
|
|
57
|
-
"import/enforce-node-protocol-usage": ["error", "always"],
|
|
58
|
-
"import/first": "error",
|
|
59
|
-
"import/newline-after-import": "error"
|
|
60
73
|
}
|
|
61
74
|
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
plugins: {
|
|
65
|
-
"simple-import-sort": import_eslint_plugin_simple_import_sort.default
|
|
66
|
-
},
|
|
67
|
-
rules: {
|
|
68
|
-
"simple-import-sort/imports": "error",
|
|
69
|
-
"simple-import-sort/exports": "error"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
75
|
+
importConfig,
|
|
76
|
+
simpleImportSortConfig
|
|
72
77
|
);
|
|
73
78
|
|
|
74
79
|
// src/configs/typescript.ts
|
|
@@ -135,18 +140,22 @@ var typescript_default = (0, import_config2.defineConfig)(
|
|
|
135
140
|
);
|
|
136
141
|
|
|
137
142
|
// src/ts.ts
|
|
138
|
-
var ts_default =
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
143
|
+
var ts_default = {
|
|
144
|
+
configs: {
|
|
145
|
+
recommended: (0, import_config3.defineConfig)(
|
|
146
|
+
Object.assign({ name: "@eslint/js/recommended" }, import_js.default.configs.recommended),
|
|
147
|
+
import_default,
|
|
148
|
+
import_eslint_plugin_import2.default.flatConfigs.typescript,
|
|
149
|
+
{
|
|
150
|
+
name: "ts/config-file-globals",
|
|
151
|
+
files: ["*.config.{mjs,cjs,js,ts}"],
|
|
152
|
+
languageOptions: {
|
|
153
|
+
globals: import_globals.default.node
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
typescript_default,
|
|
157
|
+
import_eslint_config_prettier.default
|
|
158
|
+
)
|
|
159
|
+
}
|
|
160
|
+
};
|
|
152
161
|
//# sourceMappingURL=ts.cjs.map
|
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 defineConfig(\n
|
|
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 importConfig = 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 simpleImportSortConfig = 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 importConfig,\n simpleImportSortConfig,\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,mBAAe,4BAAa;AAAA,EACvC,MAAM;AAAA,EACN,OAAO;AAAA,IACL,sCAAsC,CAAC,SAAS,QAAQ;AAAA,IACxD,gBAAgB;AAAA,IAChB,+BAA+B;AAAA,EACjC;AACF,CAAC;AAEM,IAAM,6BAAyB,4BAAa;AAAA,EACjD,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,5 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { C as ConfigObject, R as RulesConfig } from './types.d-DV2WF_ti.cjs';
|
|
2
|
+
import 'json-schema';
|
|
2
3
|
|
|
3
|
-
declare const _default:
|
|
4
|
+
declare const _default: {
|
|
5
|
+
configs: {
|
|
6
|
+
recommended: ConfigObject<RulesConfig>[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
|
|
5
10
|
export { _default as default };
|
package/dist/ts.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { C as ConfigObject, R as RulesConfig } from './types.d-DV2WF_ti.js';
|
|
2
|
+
import 'json-schema';
|
|
2
3
|
|
|
3
|
-
declare const _default:
|
|
4
|
+
declare const _default: {
|
|
5
|
+
configs: {
|
|
6
|
+
recommended: ConfigObject<RulesConfig>[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
|
|
5
10
|
export { _default as default };
|
package/dist/ts.js
CHANGED
package/dist/turbo.cjs
CHANGED
|
@@ -25,5 +25,9 @@ __export(turbo_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(turbo_exports);
|
|
26
26
|
var import_config = require("eslint/config");
|
|
27
27
|
var import_eslint_plugin_turbo = require("eslint-plugin-turbo");
|
|
28
|
-
var turbo_default =
|
|
28
|
+
var turbo_default = {
|
|
29
|
+
configs: {
|
|
30
|
+
recommended: (0, import_config.defineConfig)(import_eslint_plugin_turbo.configs["flat/recommended"])
|
|
31
|
+
}
|
|
32
|
+
};
|
|
29
33
|
//# sourceMappingURL=turbo.cjs.map
|
package/dist/turbo.cjs.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 defineConfig(turboConfigs['flat/recommended']);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA6B;AAC7B,iCAAwC;AAExC,IAAO,
|
|
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;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA6B;AAC7B,iCAAwC;AAExC,IAAO,gBAAQ;AAAA,EACb,SAAS;AAAA,IACP,iBAAa,4BAAa,2BAAAA,QAAa,kBAAkB,CAAC;AAAA,EAC5D;AACF;","names":["turboConfigs"]}
|
package/dist/turbo.d.cts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { C as ConfigObject, R as RulesConfig } from './types.d-DV2WF_ti.cjs';
|
|
2
|
+
import 'json-schema';
|
|
2
3
|
|
|
3
|
-
declare const _default:
|
|
4
|
+
declare const _default: {
|
|
5
|
+
configs: {
|
|
6
|
+
recommended: ConfigObject<RulesConfig>[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
|
|
5
10
|
export { _default as default };
|
package/dist/turbo.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { C as ConfigObject, R as RulesConfig } from './types.d-DV2WF_ti.js';
|
|
2
|
+
import 'json-schema';
|
|
2
3
|
|
|
3
|
-
declare const _default:
|
|
4
|
+
declare const _default: {
|
|
5
|
+
configs: {
|
|
6
|
+
recommended: ConfigObject<RulesConfig>[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
|
|
5
10
|
export { _default as default };
|
package/dist/turbo.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import "./chunk-7D4SUZUM.js";
|
|
2
|
+
|
|
1
3
|
// src/turbo.ts
|
|
2
4
|
import { defineConfig } from "eslint/config";
|
|
3
5
|
import { configs as turboConfigs } from "eslint-plugin-turbo";
|
|
4
|
-
var turbo_default =
|
|
6
|
+
var turbo_default = {
|
|
7
|
+
configs: {
|
|
8
|
+
recommended: defineConfig(turboConfigs["flat/recommended"])
|
|
9
|
+
}
|
|
10
|
+
};
|
|
5
11
|
export {
|
|
6
12
|
turbo_default as default
|
|
7
13
|
};
|
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 defineConfig(turboConfigs['flat/recommended']);\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":[]}
|