@storm-software/eslint 0.71.0 → 0.71.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 +1 -1
- package/dist/preset.mjs +66 -32
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/dist/preset.mjs
CHANGED
|
@@ -13881,48 +13881,82 @@ function getStormConfig(options = {
|
|
|
13881
13881
|
...options.ignores || []
|
|
13882
13882
|
]
|
|
13883
13883
|
};
|
|
13884
|
+
configs.push(typescriptConfig);
|
|
13884
13885
|
if (options.react) {
|
|
13885
|
-
|
|
13886
|
-
|
|
13887
|
-
|
|
13888
|
-
|
|
13889
|
-
|
|
13890
|
-
|
|
13891
|
-
|
|
13892
|
-
|
|
13893
|
-
|
|
13894
|
-
|
|
13895
|
-
|
|
13896
|
-
|
|
13897
|
-
|
|
13898
|
-
|
|
13899
|
-
|
|
13900
|
-
|
|
13901
|
-
|
|
13902
|
-
|
|
13903
|
-
|
|
13904
|
-
|
|
13905
|
-
|
|
13906
|
-
|
|
13907
|
-
|
|
13908
|
-
|
|
13909
|
-
|
|
13910
|
-
|
|
13886
|
+
const reactConfig = {
|
|
13887
|
+
files: ["**/*.tsx"],
|
|
13888
|
+
languageOptions: {
|
|
13889
|
+
globals: {
|
|
13890
|
+
...Object.fromEntries(
|
|
13891
|
+
Object.keys(globals).flatMap(
|
|
13892
|
+
(group) => Object.keys(globals[group]).map((key) => [
|
|
13893
|
+
key,
|
|
13894
|
+
"readonly"
|
|
13895
|
+
])
|
|
13896
|
+
)
|
|
13897
|
+
),
|
|
13898
|
+
...globals.browser,
|
|
13899
|
+
...globals.node,
|
|
13900
|
+
"window": "readonly",
|
|
13901
|
+
"Storm": "readonly"
|
|
13902
|
+
},
|
|
13903
|
+
ecmaVersion: "latest",
|
|
13904
|
+
parserOptions: {
|
|
13905
|
+
emitDecoratorMetadata: true,
|
|
13906
|
+
experimentalDecorators: true,
|
|
13907
|
+
project: options.tsconfig ? options.tsconfig : "./tsconfig.base.json",
|
|
13908
|
+
projectService: true,
|
|
13909
|
+
sourceType: "module",
|
|
13910
|
+
projectFolderIgnoreList: [
|
|
13911
|
+
"**/node_modules/**",
|
|
13912
|
+
"**/dist/**",
|
|
13913
|
+
"**/coverage/**",
|
|
13914
|
+
"**/tmp/**",
|
|
13915
|
+
"**/.nx/**"
|
|
13916
|
+
],
|
|
13917
|
+
ecmaFeatures: {
|
|
13918
|
+
jsx: true
|
|
13919
|
+
},
|
|
13920
|
+
...options.parserOptions
|
|
13911
13921
|
}
|
|
13912
|
-
}
|
|
13922
|
+
},
|
|
13923
|
+
settings: {
|
|
13924
|
+
react: {
|
|
13925
|
+
version: "detect"
|
|
13926
|
+
}
|
|
13927
|
+
},
|
|
13928
|
+
plugins: {
|
|
13929
|
+
react,
|
|
13930
|
+
"react-hooks": reactHooks,
|
|
13931
|
+
"jsx-a11y": jsxA11y
|
|
13932
|
+
},
|
|
13933
|
+
rules: {
|
|
13934
|
+
...config$3,
|
|
13935
|
+
...config$2,
|
|
13936
|
+
...config$4,
|
|
13937
|
+
...options.react ?? {}
|
|
13938
|
+
},
|
|
13939
|
+
ignores: [
|
|
13940
|
+
"dist",
|
|
13941
|
+
"coverage",
|
|
13942
|
+
"tmp",
|
|
13943
|
+
".nx",
|
|
13944
|
+
"node_modules",
|
|
13945
|
+
...options.ignores || []
|
|
13946
|
+
]
|
|
13913
13947
|
};
|
|
13914
13948
|
if (options.useReactCompiler) {
|
|
13915
|
-
|
|
13916
|
-
...
|
|
13949
|
+
reactConfig.plugins = {
|
|
13950
|
+
...reactConfig.plugins,
|
|
13917
13951
|
"react-compiler": reactCompiler
|
|
13918
13952
|
};
|
|
13919
|
-
|
|
13920
|
-
...
|
|
13953
|
+
reactConfig.rules = {
|
|
13954
|
+
...reactConfig.rules,
|
|
13921
13955
|
"react-compiler/react-compiler": "error"
|
|
13922
13956
|
};
|
|
13923
13957
|
}
|
|
13958
|
+
configs.push(reactConfig);
|
|
13924
13959
|
}
|
|
13925
|
-
configs.push(typescriptConfig);
|
|
13926
13960
|
if (options.markdown) {
|
|
13927
13961
|
configs.push(...markdown.configs.recommended);
|
|
13928
13962
|
configs.push({
|
package/package.json
CHANGED