@theholocron/eslint-config 6.1.0 → 7.0.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/bundles/library.d.ts +1213 -0
- package/dist/bundles/library.js +17 -0
- package/dist/bundles/next-app.d.ts +5 -0
- package/dist/bundles/next-app.js +21 -0
- package/dist/bundles/node-app.d.ts +1213 -0
- package/dist/bundles/node-app.js +15 -0
- package/dist/bundles/react-app.d.ts +1213 -0
- package/dist/bundles/react-app.js +17 -0
- package/dist/configs/base.d.ts +1213 -0
- package/dist/configs/base.js +14 -0
- package/dist/configs/cypress.d.ts +5 -0
- package/dist/configs/cypress.js +11 -0
- package/dist/configs/next.d.ts +5 -0
- package/dist/configs/next.js +14 -0
- package/dist/configs/node.d.ts +5 -0
- package/dist/configs/node.js +14 -0
- package/dist/configs/react.d.ts +5 -0
- package/{configs → dist/configs}/react.js +4 -4
- package/dist/configs/storybook.d.ts +5 -0
- package/dist/configs/storybook.js +7 -0
- package/dist/configs/typescript.d.ts +5 -0
- package/dist/configs/typescript.js +13 -0
- package/dist/configs/vitest.d.ts +206 -0
- package/dist/configs/vitest.js +15 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/package.json +50 -31
- package/bundles/library.js +0 -21
- package/bundles/next-app.js +0 -19
- package/bundles/node-app.js +0 -8
- package/bundles/react-app.js +0 -15
- package/configs/base.js +0 -17
- package/configs/cypress.js +0 -13
- package/configs/next.js +0 -18
- package/configs/node.js +0 -15
- package/configs/storybook.js +0 -7
- package/configs/typescript.js +0 -19
- package/configs/vitest.js +0 -22
- package/index.js +0 -2
package/configs/typescript.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import tseslint from "typescript-eslint";
|
|
2
|
-
|
|
3
|
-
export function typescript() {
|
|
4
|
-
return [
|
|
5
|
-
...tseslint.configs.recommended,
|
|
6
|
-
{
|
|
7
|
-
name: "@theholocron/typescript",
|
|
8
|
-
rules: {
|
|
9
|
-
"@typescript-eslint/no-unused-vars": [
|
|
10
|
-
"error",
|
|
11
|
-
{
|
|
12
|
-
argsIgnorePattern: "^_",
|
|
13
|
-
varsIgnorePattern: "^_",
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
];
|
|
19
|
-
}
|
package/configs/vitest.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import vitest from "@vitest/eslint-plugin";
|
|
2
|
-
|
|
3
|
-
export function vitestConfig() {
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
name: "@theholocron/vitest",
|
|
7
|
-
files: ["**/*.{test,spec}.{ts,js}", "**/setup*.{ts,js}"],
|
|
8
|
-
plugins: { vitest },
|
|
9
|
-
rules: {
|
|
10
|
-
...vitest.configs.recommended.rules, // you can also use vitest.configs.all.rules to enable all rules
|
|
11
|
-
"vitest/expect-expect": [
|
|
12
|
-
"error",
|
|
13
|
-
{
|
|
14
|
-
assertFunctionNames: ["expect", "expectRequest"],
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
];
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { vitestConfig as vitest };
|
package/index.js
DELETED