@stzhu/eslint-config 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -4
- package/dist/{chunk-5AKEETFH.mjs → chunk-LD4GK7PC.js} +2 -2
- package/dist/{chunk-ECAGGCDW.mjs → chunk-VT2KKBLH.js} +1 -1
- package/dist/expo.cjs +74 -0
- package/dist/expo.cjs.map +1 -0
- package/dist/expo.js +10 -71
- package/dist/expo.js.map +1 -1
- package/dist/index.cjs +33 -0
- package/dist/{index.mjs.map → index.cjs.map} +1 -1
- package/dist/index.js +3 -29
- package/dist/index.js.map +1 -1
- package/dist/lingui.cjs +39 -0
- package/dist/lingui.cjs.map +1 -0
- package/dist/lingui.js +6 -37
- package/dist/lingui.js.map +1 -1
- package/dist/node.cjs +163 -0
- package/dist/node.cjs.map +1 -0
- package/dist/node.js +11 -157
- package/dist/node.js.map +1 -1
- package/dist/react.cjs +201 -0
- package/dist/react.cjs.map +1 -0
- package/dist/react.js +22 -168
- package/dist/react.js.map +1 -1
- package/dist/storybook.cjs +39 -0
- package/dist/storybook.cjs.map +1 -0
- package/dist/storybook.js +6 -37
- package/dist/storybook.js.map +1 -1
- package/dist/tailwind.cjs +48 -0
- package/dist/{tailwind.mjs.map → tailwind.cjs.map} +1 -1
- package/dist/tailwind.js +8 -39
- package/dist/tailwind.js.map +1 -1
- package/dist/ts.cjs +152 -0
- package/dist/ts.cjs.map +1 -0
- package/dist/ts.js +6 -150
- package/dist/ts.js.map +1 -1
- package/dist/turbo.cjs +29 -0
- package/dist/turbo.cjs.map +1 -0
- package/dist/turbo.js +6 -27
- package/dist/turbo.js.map +1 -1
- package/dist/vitest.cjs +62 -0
- package/dist/{vitest.mjs.map → vitest.cjs.map} +1 -1
- package/dist/vitest.js +6 -37
- package/dist/vitest.js.map +1 -1
- package/package.json +2 -5
- package/dist/expo.mjs +0 -13
- package/dist/expo.mjs.map +0 -1
- package/dist/index.mjs +0 -7
- package/dist/lingui.mjs +0 -8
- package/dist/lingui.mjs.map +0 -1
- package/dist/node.mjs +0 -17
- package/dist/node.mjs.map +0 -1
- package/dist/react.mjs +0 -55
- package/dist/react.mjs.map +0 -1
- package/dist/storybook.mjs +0 -8
- package/dist/storybook.mjs.map +0 -1
- package/dist/tailwind.mjs +0 -17
- package/dist/ts.mjs +0 -8
- package/dist/ts.mjs.map +0 -1
- package/dist/turbo.mjs +0 -8
- package/dist/turbo.mjs.map +0 -1
- package/dist/vitest.mjs +0 -31
- /package/dist/{chunk-5AKEETFH.mjs.map → chunk-LD4GK7PC.js.map} +0 -0
- /package/dist/{chunk-ECAGGCDW.mjs.map → chunk-VT2KKBLH.js.map} +0 -0
- /package/dist/{expo.d.mts → expo.d.cts} +0 -0
- /package/dist/{index.d.mts → index.d.cts} +0 -0
- /package/dist/{lingui.d.mts → lingui.d.cts} +0 -0
- /package/dist/{node.d.mts → node.d.cts} +0 -0
- /package/dist/{react.d.mts → react.d.cts} +0 -0
- /package/dist/{storybook.d.mts → storybook.d.cts} +0 -0
- /package/dist/{tailwind.d.mts → tailwind.d.cts} +0 -0
- /package/dist/{ts.d.mts → ts.d.cts} +0 -0
- /package/dist/{turbo.d.mts → turbo.d.cts} +0 -0
- /package/dist/{vitest.d.mts → vitest.d.cts} +0 -0
package/dist/vitest.cjs
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
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
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/vitest.ts
|
|
31
|
+
var vitest_exports = {};
|
|
32
|
+
__export(vitest_exports, {
|
|
33
|
+
default: () => vitest_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(vitest_exports);
|
|
36
|
+
var import_eslint_plugin = __toESM(require("@vitest/eslint-plugin"), 1);
|
|
37
|
+
var import_config = require("eslint/config");
|
|
38
|
+
var vitest_default = (0, import_config.defineConfig)(import_eslint_plugin.default.configs.recommended, {
|
|
39
|
+
name: "custom/vitest",
|
|
40
|
+
files: ["**/*.test.{ts,tsx}"],
|
|
41
|
+
rules: {
|
|
42
|
+
"vitest/consistent-test-it": [
|
|
43
|
+
"error",
|
|
44
|
+
{
|
|
45
|
+
fn: "test",
|
|
46
|
+
withinDescribe: "test"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"vitest/no-focused-tests": "error",
|
|
50
|
+
"vitest/no-disabled-tests": "error",
|
|
51
|
+
"vitest/prefer-lowercase-title": [
|
|
52
|
+
"warn",
|
|
53
|
+
{
|
|
54
|
+
ignoreTopLevelDescribe: true
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
// Disable certain strict typescript eslint rules for tests
|
|
58
|
+
// https://github.com/vitest-dev/vitest/issues/4543#issuecomment-1824881253
|
|
59
|
+
"@typescript-eslint/no-unsafe-assignment": "off"
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=vitest.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/vitest.ts"],"sourcesContent":["import vitest from '@vitest/eslint-plugin';\nimport { defineConfig } from 'eslint/config';\n\nexport default defineConfig(vitest.configs.recommended, {\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"],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"sources":["../src/vitest.ts"],"sourcesContent":["import vitest from '@vitest/eslint-plugin';\nimport { defineConfig } from 'eslint/config';\n\nexport default defineConfig(vitest.configs.recommended, {\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAmB;AACnB,oBAA6B;AAE7B,IAAO,qBAAQ,4BAAa,qBAAAA,QAAO,QAAQ,aAAa;AAAA,EACtD,MAAM;AAAA,EACN,OAAO,CAAC,oBAAoB;AAAA,EAC5B,OAAO;AAAA,IACL,6BAA6B;AAAA,MAC3B;AAAA,MACA;AAAA,QACE,IAAI;AAAA,QACJ,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA,IACA,2BAA2B;AAAA,IAC3B,4BAA4B;AAAA,IAC5B,iCAAiC;AAAA,MAC/B;AAAA,MACA;AAAA,QACE,wBAAwB;AAAA,MAC1B;AAAA,IACF;AAAA;AAAA;AAAA,IAGA,2CAA2C;AAAA,EAC7C;AACF,CAAC;","names":["vitest"]}
|
package/dist/vitest.js
CHANGED
|
@@ -1,41 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
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
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
1
|
// src/vitest.ts
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(vitest_exports);
|
|
36
|
-
var import_eslint_plugin = __toESM(require("@vitest/eslint-plugin"));
|
|
37
|
-
var import_config = require("eslint/config");
|
|
38
|
-
var vitest_default = (0, import_config.defineConfig)(import_eslint_plugin.default.configs.recommended, {
|
|
2
|
+
import vitest from "@vitest/eslint-plugin";
|
|
3
|
+
import { defineConfig } from "eslint/config";
|
|
4
|
+
var vitest_default = defineConfig(vitest.configs.recommended, {
|
|
39
5
|
name: "custom/vitest",
|
|
40
6
|
files: ["**/*.test.{ts,tsx}"],
|
|
41
7
|
rules: {
|
|
@@ -59,4 +25,7 @@ var vitest_default = (0, import_config.defineConfig)(import_eslint_plugin.defaul
|
|
|
59
25
|
"@typescript-eslint/no-unsafe-assignment": "off"
|
|
60
26
|
}
|
|
61
27
|
});
|
|
28
|
+
export {
|
|
29
|
+
vitest_default as default
|
|
30
|
+
};
|
|
62
31
|
//# sourceMappingURL=vitest.js.map
|
package/dist/vitest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/vitest.ts"],"sourcesContent":["import vitest from '@vitest/eslint-plugin';\nimport { defineConfig } from 'eslint/config';\n\nexport default defineConfig(vitest.configs.recommended, {\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"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/vitest.ts"],"sourcesContent":["import vitest from '@vitest/eslint-plugin';\nimport { defineConfig } from 'eslint/config';\n\nexport default defineConfig(vitest.configs.recommended, {\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"],"mappings":";AAAA,OAAO,YAAY;AACnB,SAAS,oBAAoB;AAE7B,IAAO,iBAAQ,aAAa,OAAO,QAAQ,aAAa;AAAA,EACtD,MAAM;AAAA,EACN,OAAO,CAAC,oBAAoB;AAAA,EAC5B,OAAO;AAAA,IACL,6BAA6B;AAAA,MAC3B;AAAA,MACA;AAAA,QACE,IAAI;AAAA,QACJ,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA,IACA,2BAA2B;AAAA,IAC3B,4BAA4B;AAAA,IAC5B,iCAAiC;AAAA,MAC/B;AAAA,MACA;AAAA,QACE,wBAAwB;AAAA,MAC1B;AAAA,IACF;AAAA;AAAA;AAAA,IAGA,2CAA2C;AAAA,EAC7C;AACF,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stzhu/eslint-config",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Shared config for ESLint",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint"
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"author": "Steve Zhu <4130171+stevezhu@users.noreply.github.com>",
|
|
14
|
+
"type": "module",
|
|
14
15
|
"exports": {
|
|
15
16
|
".": {
|
|
16
17
|
"types": "./dist/index.d.ts",
|
|
@@ -99,14 +100,10 @@
|
|
|
99
100
|
},
|
|
100
101
|
"peerDependencies": {
|
|
101
102
|
"eslint": "^9",
|
|
102
|
-
"postcss": "^8",
|
|
103
103
|
"tailwindcss": "^4",
|
|
104
104
|
"typescript": "^5"
|
|
105
105
|
},
|
|
106
106
|
"peerDependenciesMeta": {
|
|
107
|
-
"postcss": {
|
|
108
|
-
"optional": true
|
|
109
|
-
},
|
|
110
107
|
"tailwindcss": {
|
|
111
108
|
"optional": true
|
|
112
109
|
},
|
package/dist/expo.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import_default
|
|
3
|
-
} from "./chunk-ECAGGCDW.mjs";
|
|
4
|
-
|
|
5
|
-
// src/expo.ts
|
|
6
|
-
import { defineConfig } from "eslint/config";
|
|
7
|
-
import expo from "eslint-config-expo/flat";
|
|
8
|
-
import prettier from "eslint-config-prettier";
|
|
9
|
-
var expo_default = defineConfig(expo, import_default, prettier);
|
|
10
|
-
export {
|
|
11
|
-
expo_default as default
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=expo.mjs.map
|
package/dist/expo.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/expo.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\n// @ts-expect-error - doesn't support typescript\nimport expo from 'eslint-config-expo/flat';\nimport prettier from 'eslint-config-prettier';\n\nimport importConfig from './configs/import.js';\n\n// eslint-disable-next-line @typescript-eslint/no-unsafe-argument\nexport default defineConfig(expo, importConfig, prettier);\n"],"mappings":";;;;;AAAA,SAAS,oBAAoB;AAE7B,OAAO,UAAU;AACjB,OAAO,cAAc;AAKrB,IAAO,eAAQ,aAAa,MAAM,gBAAc,QAAQ;","names":[]}
|
package/dist/index.mjs
DELETED
package/dist/lingui.mjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// src/lingui.ts
|
|
2
|
-
import { defineConfig } from "eslint/config";
|
|
3
|
-
import pluginLingui from "eslint-plugin-lingui";
|
|
4
|
-
var lingui_default = defineConfig(pluginLingui.configs["flat/recommended"]);
|
|
5
|
-
export {
|
|
6
|
-
lingui_default as default
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=lingui.mjs.map
|
package/dist/lingui.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lingui.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport pluginLingui from 'eslint-plugin-lingui';\n\nexport default defineConfig(pluginLingui.configs['flat/recommended']);\n"],"mappings":";AAAA,SAAS,oBAAoB;AAC7B,OAAO,kBAAkB;AAEzB,IAAO,iBAAQ,aAAa,aAAa,QAAQ,kBAAkB,CAAC;","names":[]}
|
package/dist/node.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ts_default
|
|
3
|
-
} from "./chunk-5AKEETFH.mjs";
|
|
4
|
-
import "./chunk-ECAGGCDW.mjs";
|
|
5
|
-
|
|
6
|
-
// src/node.ts
|
|
7
|
-
import { defineConfig } from "eslint/config";
|
|
8
|
-
import globals from "globals";
|
|
9
|
-
var node_default = defineConfig(ts_default, {
|
|
10
|
-
languageOptions: {
|
|
11
|
-
globals: globals.node
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
export {
|
|
15
|
-
node_default as default
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=node.mjs.map
|
package/dist/node.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 defineConfig(baseConfig, {\n languageOptions: {\n globals: globals.node,\n },\n});\n"],"mappings":";;;;;;AAAA,SAAS,oBAAoB;AAC7B,OAAO,aAAa;AAIpB,IAAO,eAAQ,aAAa,YAAY;AAAA,EACtC,iBAAiB;AAAA,IACf,SAAS,QAAQ;AAAA,EACnB;AACF,CAAC;","names":[]}
|
package/dist/react.mjs
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ts_default
|
|
3
|
-
} from "./chunk-5AKEETFH.mjs";
|
|
4
|
-
import "./chunk-ECAGGCDW.mjs";
|
|
5
|
-
|
|
6
|
-
// src/react.ts
|
|
7
|
-
import { defineConfig } from "eslint/config";
|
|
8
|
-
import prettier from "eslint-config-prettier";
|
|
9
|
-
import importPlugin from "eslint-plugin-import";
|
|
10
|
-
import react from "eslint-plugin-react";
|
|
11
|
-
import { configs as reactHooksConfigs } from "eslint-plugin-react-hooks";
|
|
12
|
-
import reactRefresh from "eslint-plugin-react-refresh";
|
|
13
|
-
import globals from "globals";
|
|
14
|
-
var react_default = defineConfig(
|
|
15
|
-
ts_default,
|
|
16
|
-
importPlugin.flatConfigs.react,
|
|
17
|
-
{
|
|
18
|
-
name: "react/src-browser-globals",
|
|
19
|
-
files: ["**/*.{ts,tsx}"],
|
|
20
|
-
languageOptions: {
|
|
21
|
-
globals: globals.browser
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
react.configs.flat["recommended"] ?? [],
|
|
25
|
-
react.configs.flat["jsx-runtime"] ?? [],
|
|
26
|
-
{
|
|
27
|
-
name: "react/custom",
|
|
28
|
-
settings: {
|
|
29
|
-
react: {
|
|
30
|
-
version: "detect"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
rules: {
|
|
34
|
-
"react/function-component-definition": [
|
|
35
|
-
"error",
|
|
36
|
-
{ namedComponents: "function-declaration" }
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
reactHooksConfigs["recommended-latest"],
|
|
41
|
-
{
|
|
42
|
-
name: "react-refresh/custom",
|
|
43
|
-
plugins: {
|
|
44
|
-
"react-refresh": reactRefresh
|
|
45
|
-
},
|
|
46
|
-
rules: {
|
|
47
|
-
"react-refresh/only-export-components": "warn"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
prettier
|
|
51
|
-
);
|
|
52
|
-
export {
|
|
53
|
-
react_default as default
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=react.mjs.map
|
package/dist/react.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 { configs as reactHooksConfigs } 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 baseConfig,\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 reactHooksConfigs['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"],"mappings":";;;;;;AAAA,SAAS,oBAAoB;AAC7B,OAAO,cAAc;AACrB,OAAO,kBAAkB;AACzB,OAAO,WAAW;AAClB,SAAS,WAAW,yBAAyB;AAC7C,OAAO,kBAAkB;AACzB,OAAO,aAAa;AAIpB,IAAO,gBAAQ;AAAA,EACb;AAAA,EACA,aAAa,YAAY;AAAA,EACzB;AAAA,IACE,MAAM;AAAA,IACN,OAAO,CAAC,eAAe;AAAA,IACvB,iBAAiB;AAAA,MACf,SAAS,QAAQ;AAAA,IACnB;AAAA,EACF;AAAA,EACA,MAAM,QAAQ,KAAK,aAAa,KAAK,CAAC;AAAA,EACtC,MAAM,QAAQ,KAAK,aAAa,KAAK,CAAC;AAAA,EACtC;AAAA,IACE,MAAM;AAAA,IACN,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,IACA,OAAO;AAAA,MACL,uCAAuC;AAAA,QACrC;AAAA,QACA,EAAE,iBAAiB,uBAAuB;AAAA,MAC5C;AAAA,IACF;AAAA,EACF;AAAA,EACA,kBAAkB,oBAAoB;AAAA,EACtC;AAAA,IACE,MAAM;AAAA,IACN,SAAS;AAAA,MACP,iBAAiB;AAAA,IACnB;AAAA,IACA,OAAO;AAAA,MACL,wCAAwC;AAAA,IAC1C;AAAA,EACF;AAAA,EACA;AACF;","names":[]}
|
package/dist/storybook.mjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// src/storybook.ts
|
|
2
|
-
import { defineConfig } from "eslint/config";
|
|
3
|
-
import storybook from "eslint-plugin-storybook";
|
|
4
|
-
var storybook_default = defineConfig(storybook.configs["flat/recommended"]);
|
|
5
|
-
export {
|
|
6
|
-
storybook_default as default
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=storybook.mjs.map
|
package/dist/storybook.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,SAAS,oBAAoB;AAC7B,OAAO,eAAe;AAEtB,IAAO,oBAAQ,aAAa,UAAU,QAAQ,kBAAkB,CAAC;","names":[]}
|
package/dist/tailwind.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// src/tailwind.ts
|
|
2
|
-
import { defineConfig } from "eslint/config";
|
|
3
|
-
import eslintPluginBetterTailwindcss from "eslint-plugin-better-tailwindcss";
|
|
4
|
-
var tailwind_default = defineConfig({
|
|
5
|
-
files: ["**/*.tsx"],
|
|
6
|
-
plugins: {
|
|
7
|
-
"better-tailwindcss": eslintPluginBetterTailwindcss
|
|
8
|
-
},
|
|
9
|
-
rules: {
|
|
10
|
-
...eslintPluginBetterTailwindcss.configs["recommended-error"]?.rules,
|
|
11
|
-
"better-tailwindcss/no-deprecated-classes": "warn"
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
export {
|
|
15
|
-
tailwind_default as default
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=tailwind.mjs.map
|
package/dist/ts.mjs
DELETED
package/dist/ts.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/turbo.mjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// src/turbo.ts
|
|
2
|
-
import { defineConfig } from "eslint/config";
|
|
3
|
-
import { configs as turboConfigs } from "eslint-plugin-turbo";
|
|
4
|
-
var turbo_default = defineConfig(turboConfigs["flat/recommended"]);
|
|
5
|
-
export {
|
|
6
|
-
turbo_default as default
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=turbo.mjs.map
|
package/dist/turbo.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,SAAS,oBAAoB;AAC7B,SAAS,WAAW,oBAAoB;AAExC,IAAO,gBAAQ,aAAa,aAAa,kBAAkB,CAAC;","names":[]}
|
package/dist/vitest.mjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// src/vitest.ts
|
|
2
|
-
import vitest from "@vitest/eslint-plugin";
|
|
3
|
-
import { defineConfig } from "eslint/config";
|
|
4
|
-
var vitest_default = defineConfig(vitest.configs.recommended, {
|
|
5
|
-
name: "custom/vitest",
|
|
6
|
-
files: ["**/*.test.{ts,tsx}"],
|
|
7
|
-
rules: {
|
|
8
|
-
"vitest/consistent-test-it": [
|
|
9
|
-
"error",
|
|
10
|
-
{
|
|
11
|
-
fn: "test",
|
|
12
|
-
withinDescribe: "test"
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"vitest/no-focused-tests": "error",
|
|
16
|
-
"vitest/no-disabled-tests": "error",
|
|
17
|
-
"vitest/prefer-lowercase-title": [
|
|
18
|
-
"warn",
|
|
19
|
-
{
|
|
20
|
-
ignoreTopLevelDescribe: true
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
// Disable certain strict typescript eslint rules for tests
|
|
24
|
-
// https://github.com/vitest-dev/vitest/issues/4543#issuecomment-1824881253
|
|
25
|
-
"@typescript-eslint/no-unsafe-assignment": "off"
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
export {
|
|
29
|
-
vitest_default as default
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=vitest.mjs.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|