@storm-software/eslint-config-react 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/LICENSE +201 -0
- package/README.md +286 -0
- package/dist/chunk-AXVVDHTL.js +6809 -0
- package/dist/chunk-GGNOJ77I.js +1 -0
- package/dist/index.cjs +6863 -0
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/preset.cjs +6861 -0
- package/dist/preset.d.cts +14 -0
- package/dist/preset.d.ts +14 -0
- package/dist/preset.js +1 -0
- package/dist/types.cjs +2 -0
- package/dist/types.d.cts +46 -0
- package/dist/types.d.ts +46 -0
- package/dist/types.js +1 -0
- package/package.json +128 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PresetConfig, UserConfig, PresetResult } from '@storm-software/eslint';
|
|
2
|
+
import { OptionsConfig } from './types.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Get the ESLint React configuration for a Storm workspace.
|
|
6
|
+
*
|
|
7
|
+
* @param options - The preset options.
|
|
8
|
+
* @param userConfigs - Additional ESLint configurations.
|
|
9
|
+
*/
|
|
10
|
+
declare function preset(options: PresetConfig<OptionsConfig>, ...userConfigs: UserConfig[]): PresetResult;
|
|
11
|
+
declare const getConfig: typeof preset;
|
|
12
|
+
declare const defineConfig: typeof preset;
|
|
13
|
+
|
|
14
|
+
export { preset as default, defineConfig, getConfig, preset };
|
package/dist/preset.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PresetConfig, UserConfig, PresetResult } from '@storm-software/eslint';
|
|
2
|
+
import { OptionsConfig } from './types.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Get the ESLint React configuration for a Storm workspace.
|
|
6
|
+
*
|
|
7
|
+
* @param options - The preset options.
|
|
8
|
+
* @param userConfigs - Additional ESLint configurations.
|
|
9
|
+
*/
|
|
10
|
+
declare function preset(options: PresetConfig<OptionsConfig>, ...userConfigs: UserConfig[]): PresetResult;
|
|
11
|
+
declare const getConfig: typeof preset;
|
|
12
|
+
declare const defineConfig: typeof preset;
|
|
13
|
+
|
|
14
|
+
export { preset as default, defineConfig, getConfig, preset };
|
package/dist/preset.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { preset_default as default, defineConfig, getConfig, preset } from './chunk-AXVVDHTL.js';
|
package/dist/types.cjs
ADDED
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { OptionsConfig as OptionsConfig$1, OptionsOverrides, OptionsStorybook } from '@storm-software/eslint';
|
|
2
|
+
|
|
3
|
+
interface OptionsConfig extends Omit<OptionsConfig$1, "jsx" | "react" | "react-native" | "mdx" | "storybook"> {
|
|
4
|
+
/**
|
|
5
|
+
* Enable linting for mdx files.
|
|
6
|
+
*
|
|
7
|
+
* @defaultValue true
|
|
8
|
+
*/
|
|
9
|
+
mdx?: false | OptionsOverrides;
|
|
10
|
+
/**
|
|
11
|
+
* Enable Storybook support.
|
|
12
|
+
*
|
|
13
|
+
* @defaultValue true
|
|
14
|
+
*/
|
|
15
|
+
storybook?: false | OptionsStorybook;
|
|
16
|
+
/**
|
|
17
|
+
* Override React rules.
|
|
18
|
+
*/
|
|
19
|
+
react?: OptionsOverrides;
|
|
20
|
+
/**
|
|
21
|
+
* Enable react native rules.
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue true
|
|
24
|
+
*/
|
|
25
|
+
"react-native"?: false | OptionsOverrides;
|
|
26
|
+
/**
|
|
27
|
+
* Enable Astro rules.
|
|
28
|
+
*
|
|
29
|
+
* @defaultValue false
|
|
30
|
+
*/
|
|
31
|
+
astro?: true | OptionsOverrides;
|
|
32
|
+
/**
|
|
33
|
+
* Enable Next.js rules.
|
|
34
|
+
*
|
|
35
|
+
* @defaultValue false
|
|
36
|
+
*/
|
|
37
|
+
next?: true | OptionsOverrides;
|
|
38
|
+
/**
|
|
39
|
+
* Enable UnoCSS rules.
|
|
40
|
+
*
|
|
41
|
+
* @defaultValue false
|
|
42
|
+
*/
|
|
43
|
+
unocss?: true | OptionsOverrides;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type { OptionsConfig };
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { OptionsConfig as OptionsConfig$1, OptionsOverrides, OptionsStorybook } from '@storm-software/eslint';
|
|
2
|
+
|
|
3
|
+
interface OptionsConfig extends Omit<OptionsConfig$1, "jsx" | "react" | "react-native" | "mdx" | "storybook"> {
|
|
4
|
+
/**
|
|
5
|
+
* Enable linting for mdx files.
|
|
6
|
+
*
|
|
7
|
+
* @defaultValue true
|
|
8
|
+
*/
|
|
9
|
+
mdx?: false | OptionsOverrides;
|
|
10
|
+
/**
|
|
11
|
+
* Enable Storybook support.
|
|
12
|
+
*
|
|
13
|
+
* @defaultValue true
|
|
14
|
+
*/
|
|
15
|
+
storybook?: false | OptionsStorybook;
|
|
16
|
+
/**
|
|
17
|
+
* Override React rules.
|
|
18
|
+
*/
|
|
19
|
+
react?: OptionsOverrides;
|
|
20
|
+
/**
|
|
21
|
+
* Enable react native rules.
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue true
|
|
24
|
+
*/
|
|
25
|
+
"react-native"?: false | OptionsOverrides;
|
|
26
|
+
/**
|
|
27
|
+
* Enable Astro rules.
|
|
28
|
+
*
|
|
29
|
+
* @defaultValue false
|
|
30
|
+
*/
|
|
31
|
+
astro?: true | OptionsOverrides;
|
|
32
|
+
/**
|
|
33
|
+
* Enable Next.js rules.
|
|
34
|
+
*
|
|
35
|
+
* @defaultValue false
|
|
36
|
+
*/
|
|
37
|
+
next?: true | OptionsOverrides;
|
|
38
|
+
/**
|
|
39
|
+
* Enable UnoCSS rules.
|
|
40
|
+
*
|
|
41
|
+
* @defaultValue false
|
|
42
|
+
*/
|
|
43
|
+
unocss?: true | OptionsOverrides;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type { OptionsConfig };
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './chunk-GGNOJ77I.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@storm-software/eslint-config-react",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "A package containing a shared ESLint configuration for React projects used by Storm Software across many projects.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"eslint",
|
|
8
|
+
"eslint-config",
|
|
9
|
+
"eslintconfig",
|
|
10
|
+
"monorepo",
|
|
11
|
+
"storm",
|
|
12
|
+
"storm-ops",
|
|
13
|
+
"sullivanpj"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://stormsoftware.com",
|
|
16
|
+
"bugs": "https://github.com/storm-software/storm-ops/issues",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "github",
|
|
19
|
+
"url": "https://github.com/storm-software/storm-ops",
|
|
20
|
+
"directory": "packages/eslint-config-react"
|
|
21
|
+
},
|
|
22
|
+
"funding": {
|
|
23
|
+
"type": "github",
|
|
24
|
+
"url": "https://github.com/sponsors/storm-software"
|
|
25
|
+
},
|
|
26
|
+
"license": "Apache-2.0",
|
|
27
|
+
"author": {
|
|
28
|
+
"name": "Storm Software",
|
|
29
|
+
"email": "contact@stormsoftware.com",
|
|
30
|
+
"url": "https://stormsoftware.com"
|
|
31
|
+
},
|
|
32
|
+
"maintainers": [
|
|
33
|
+
{
|
|
34
|
+
"name": "Storm Software",
|
|
35
|
+
"email": "contact@stormsoftware.com",
|
|
36
|
+
"url": "https://stormsoftware.com"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "Pat Sullivan",
|
|
40
|
+
"email": "admin@stormsoftware.com",
|
|
41
|
+
"url": "https://patsullivan.org"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"contributors": [
|
|
45
|
+
{
|
|
46
|
+
"name": "Storm Software",
|
|
47
|
+
"email": "contact@stormsoftware.com",
|
|
48
|
+
"url": "https://stormsoftware.com"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"sideEffects": false,
|
|
52
|
+
"type": "module",
|
|
53
|
+
"exports": {
|
|
54
|
+
"./package.json": "./package.json",
|
|
55
|
+
".": {
|
|
56
|
+
"import": {
|
|
57
|
+
"types": "./dist/preset.d.ts",
|
|
58
|
+
"default": "./dist/preset.js"
|
|
59
|
+
},
|
|
60
|
+
"require": {
|
|
61
|
+
"types": "./dist/preset.d.cts",
|
|
62
|
+
"default": "./dist/preset.cjs"
|
|
63
|
+
},
|
|
64
|
+
"default": {
|
|
65
|
+
"types": "./dist/preset.d.ts",
|
|
66
|
+
"default": "./dist/preset.js"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"./index": {
|
|
70
|
+
"import": {
|
|
71
|
+
"types": "./dist/preset.d.ts",
|
|
72
|
+
"default": "./dist/preset.js"
|
|
73
|
+
},
|
|
74
|
+
"require": {
|
|
75
|
+
"types": "./dist/preset.d.cts",
|
|
76
|
+
"default": "./dist/preset.cjs"
|
|
77
|
+
},
|
|
78
|
+
"default": {
|
|
79
|
+
"types": "./dist/preset.d.ts",
|
|
80
|
+
"default": "./dist/preset.js"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"./preset": {
|
|
84
|
+
"import": {
|
|
85
|
+
"types": "./dist/preset.d.ts",
|
|
86
|
+
"default": "./dist/preset.js"
|
|
87
|
+
},
|
|
88
|
+
"require": {
|
|
89
|
+
"types": "./dist/preset.d.cts",
|
|
90
|
+
"default": "./dist/preset.cjs"
|
|
91
|
+
},
|
|
92
|
+
"default": {
|
|
93
|
+
"types": "./dist/preset.d.ts",
|
|
94
|
+
"default": "./dist/preset.js"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"./types": {
|
|
98
|
+
"import": { "types": "./dist/types.d.ts", "default": "./dist/types.js" },
|
|
99
|
+
"require": {
|
|
100
|
+
"types": "./dist/types.d.cts",
|
|
101
|
+
"default": "./dist/types.cjs"
|
|
102
|
+
},
|
|
103
|
+
"default": { "types": "./dist/types.d.ts", "default": "./dist/types.js" }
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"main": "./dist/index.js",
|
|
107
|
+
"types": "./dist/index.d.ts",
|
|
108
|
+
"files": ["dist"],
|
|
109
|
+
"dependencies": {
|
|
110
|
+
"@eslint-react/eslint-plugin": "^5.9.0",
|
|
111
|
+
"@next/eslint-plugin-next": "^15.5.19",
|
|
112
|
+
"@storm-software/eslint": "0.170.81",
|
|
113
|
+
"@unocss/eslint-plugin": "^65.5.0",
|
|
114
|
+
"astro-eslint-parser": "^1.4.0",
|
|
115
|
+
"eslint": "^9.39.4",
|
|
116
|
+
"eslint-plugin-astro": "^1.7.0",
|
|
117
|
+
"eslint-plugin-mdx": "^3.8.1",
|
|
118
|
+
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
119
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
120
|
+
"eslint-plugin-react-native": "^5.0.0",
|
|
121
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
122
|
+
"eslint-plugin-storybook": "^0.11.6",
|
|
123
|
+
"prettier-plugin-astro": "^0.14.1"
|
|
124
|
+
},
|
|
125
|
+
"devDependencies": { "tsup": "8.4.0", "typescript": "^5.9.3" },
|
|
126
|
+
"publishConfig": { "access": "public" },
|
|
127
|
+
"gitHead": "8f0d34104a7e3ae91f28120ca9796f09f34b379d"
|
|
128
|
+
}
|