@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 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 "@heyq02/rslint-config";
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
- "no-console": "off",
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 { presetJavaScript, presetBasic, presetAll } from "@heyq02/rslint-config";
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
- vp install
81
- vp pack
82
- vp check
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,2 @@
1
+ import type { TypedFlatConfig } from '../types.js';
2
+ export declare const ignores: (extra?: string[]) => TypedFlatConfig[];
@@ -0,0 +1,4 @@
1
+ import type { TypedFlatConfig } from '../types.js';
2
+ export declare const imports: (options?: {
3
+ typescript?: boolean;
4
+ }) => TypedFlatConfig[];
@@ -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';
@@ -0,0 +1,3 @@
1
+ import type { TypedFlatConfig } from '../types.js';
2
+ export declare const restrictedSyntaxJs: string[];
3
+ export declare const javascript: () => TypedFlatConfig[];
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfig } from '../types.js';
2
+ export declare const jest: () => TypedFlatConfig[];
@@ -0,0 +1,2 @@
1
+ import type { NodePreset, TypedFlatConfig } from '../types.js';
2
+ export declare const node: (preset?: Exclude<NodePreset, false>) => TypedFlatConfig[];
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfig } from '../types.js';
2
+ export declare const promise: () => TypedFlatConfig[];
@@ -0,0 +1,5 @@
1
+ import type { TypedFlatConfig } from '../types.js';
2
+ export declare const jsxA11y: () => TypedFlatConfig[];
3
+ export declare const react: (options?: {
4
+ jsxA11y?: boolean;
5
+ }) => TypedFlatConfig[];
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfig } from '../types.js';
2
+ export declare const rstest: () => TypedFlatConfig[];
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfig } from '../types.js';
2
+ export declare const specialCases: () => TypedFlatConfig[];
@@ -0,0 +1,2 @@
1
+ import type { TypeScriptOptions, TypedFlatConfig } from '../types.js';
2
+ export declare const typescript: (options?: true | TypeScriptOptions) => TypedFlatConfig[];
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfig } from '../types.js';
2
+ export declare const unicorn: () => TypedFlatConfig[];
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;
@@ -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[];
@@ -0,0 +1,6 @@
1
+ export * from './configs/index.js';
2
+ export * from './env.js';
3
+ export * from './globs.js';
4
+ export * from './presets.js';
5
+ export * from './types.js';
6
+ export * from './utils.js';