@wistia/oxlint-config 0.3.1 → 0.3.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.
Files changed (2) hide show
  1. package/index.d.mts +32 -0
  2. package/package.json +7 -3
package/index.d.mts ADDED
@@ -0,0 +1,32 @@
1
+ import type { DummyRule, ExternalPluginEntry, OxlintConfig } from 'oxlint';
2
+
3
+ export type RuleFile = {
4
+ plugins?: string[];
5
+ jsPlugins?: ExternalPluginEntry[];
6
+ rules: Record<string, DummyRule>;
7
+ };
8
+
9
+ // Rules
10
+ export declare const baseRules: RuleFile;
11
+ export declare const importRules: RuleFile;
12
+ export declare const promiseRules: RuleFile;
13
+ export declare const typescriptRules: RuleFile;
14
+ export declare const reactRules: RuleFile;
15
+ export declare const reactA11yRules: RuleFile;
16
+ export declare const nodeRules: RuleFile;
17
+ export declare const vitestRules: RuleFile;
18
+ export declare const playwrightRules: RuleFile;
19
+ export declare const storybookRules: RuleFile;
20
+ export declare const styledComponentsRules: RuleFile;
21
+ export declare const testingLibraryRules: RuleFile;
22
+
23
+ // Configs
24
+ export declare const javascriptConfig: OxlintConfig;
25
+ export declare const typescriptConfig: OxlintConfig;
26
+ export declare const reactConfig: OxlintConfig;
27
+ export declare const nodeConfig: OxlintConfig;
28
+ export declare const vitestConfig: OxlintConfig;
29
+ export declare const playwrightConfig: OxlintConfig;
30
+ export declare const storybookConfig: OxlintConfig;
31
+ export declare const styledComponentsConfig: OxlintConfig;
32
+ export declare const testingLibraryConfig: OxlintConfig;
package/package.json CHANGED
@@ -1,19 +1,23 @@
1
1
  {
2
2
  "name": "@wistia/oxlint-config",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Wistia's Oxlint configurations",
5
5
  "packageManager": "yarn@4.13.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "configs",
9
9
  "rules",
10
- "index.mjs"
10
+ "index.mjs",
11
+ "index.d.mts"
11
12
  ],
12
13
  "exports": {
13
14
  "./package.json": "./package.json",
14
15
  "./configs/*": "./configs/*",
15
16
  "./rules/*": "./rules/*",
16
- ".": "./index.mjs",
17
+ ".": {
18
+ "types": "./index.d.mts",
19
+ "default": "./index.mjs"
20
+ },
17
21
  "./javascript": "./configs/javascript.mjs",
18
22
  "./typescript": "./configs/typescript.mjs",
19
23
  "./react": "./configs/react.mjs",