@heyq02/rslint-config 0.0.1 → 0.0.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 +11 -6
- package/dist/configs/ignores.d.ts +2 -0
- package/dist/configs/imports.d.ts +4 -0
- package/dist/configs/index.d.ts +11 -0
- package/dist/configs/javascript.d.ts +3 -0
- package/dist/configs/jest.d.ts +2 -0
- package/dist/configs/node.d.ts +2 -0
- package/dist/configs/promise.d.ts +2 -0
- package/dist/configs/react.d.ts +5 -0
- package/dist/configs/rstest.d.ts +2 -0
- package/dist/configs/special-cases.d.ts +2 -0
- package/dist/configs/typescript.d.ts +2 -0
- package/dist/configs/unicorn.d.ts +2 -0
- package/dist/env.d.ts +6 -0
- package/dist/globs.d.ts +11 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +665 -0
- package/dist/presets.d.ts +30 -0
- package/dist/types.d.ts +85 -0
- package/dist/utils.d.ts +4 -0
- package/package.json +20 -11
- package/dist/index.d.mts +0 -183
- package/dist/index.mjs +0 -522
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ pnpm add -D @heyq02/rslint-config @rslint/core
|
|
|
27
27
|
|
|
28
28
|
```ts
|
|
29
29
|
// rslint.config.ts
|
|
30
|
-
import { heyq02 } from
|
|
30
|
+
import { heyq02 } from '@heyq02/rslint-config';
|
|
31
31
|
|
|
32
32
|
export default heyq02({
|
|
33
33
|
// Features auto-detect installed packages when omitted
|
|
@@ -44,7 +44,7 @@ export default heyq02(
|
|
|
44
44
|
{ typescript: true },
|
|
45
45
|
{
|
|
46
46
|
rules: {
|
|
47
|
-
|
|
47
|
+
'no-console': 'off',
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
);
|
|
@@ -69,7 +69,11 @@ export default heyq02(
|
|
|
69
69
|
### Presets
|
|
70
70
|
|
|
71
71
|
```ts
|
|
72
|
-
import {
|
|
72
|
+
import {
|
|
73
|
+
presetJavaScript,
|
|
74
|
+
presetBasic,
|
|
75
|
+
presetAll,
|
|
76
|
+
} from '@heyq02/rslint-config';
|
|
73
77
|
|
|
74
78
|
export default presetBasic();
|
|
75
79
|
```
|
|
@@ -77,9 +81,10 @@ export default presetBasic();
|
|
|
77
81
|
## Development
|
|
78
82
|
|
|
79
83
|
```bash
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
pnpm install
|
|
85
|
+
pnpm run build
|
|
86
|
+
pnpm run lint
|
|
87
|
+
pnpm run typecheck
|
|
83
88
|
pnpm release # bumpp → tag v* → GitHub Release + npm publish
|
|
84
89
|
```
|
|
85
90
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './ignores.js';
|
|
2
|
+
export * from './imports.js';
|
|
3
|
+
export * from './javascript.js';
|
|
4
|
+
export * from './jest.js';
|
|
5
|
+
export * from './node.js';
|
|
6
|
+
export * from './promise.js';
|
|
7
|
+
export * from './react.js';
|
|
8
|
+
export * from './rstest.js';
|
|
9
|
+
export * from './special-cases.js';
|
|
10
|
+
export * from './typescript.js';
|
|
11
|
+
export * from './unicorn.js';
|
package/dist/env.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const hasTypeScript: () => boolean;
|
|
2
|
+
export declare const hasReact: () => boolean;
|
|
3
|
+
export declare const hasJest: () => boolean;
|
|
4
|
+
export declare const hasRstest: () => boolean;
|
|
5
|
+
export declare function isInEditorEnv(): boolean;
|
|
6
|
+
export declare function isInGitHooksOrLintStaged(): boolean;
|
package/dist/globs.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
2
|
+
export declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
3
|
+
export declare const GLOB_JS = "**/*.?([cm])js";
|
|
4
|
+
export declare const GLOB_JSX = "**/*.jsx";
|
|
5
|
+
export declare const GLOB_TS = "**/*.?([cm])ts";
|
|
6
|
+
export declare const GLOB_TSX = "**/*.tsx";
|
|
7
|
+
export declare const GLOB_TESTS: readonly ["**/__tests__/**/*.?([cm])[jt]s?(x)", "**/*.spec.?([cm])[jt]s?(x)", "**/*.test.?([cm])[jt]s?(x)", "**/*.bench.?([cm])[jt]s?(x)", "**/*.benchmark.?([cm])[jt]s?(x)"];
|
|
8
|
+
export declare const GLOB_NODE_MODULES: '**/node_modules';
|
|
9
|
+
export declare const GLOB_DIST: '**/dist';
|
|
10
|
+
export declare const GLOB_LOCKFILE: string[];
|
|
11
|
+
export declare const GLOB_EXCLUDE: string[];
|