@storm-software/eslint 0.84.1 → 0.85.0
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 +22 -15
- 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
|
@@ -17,6 +17,7 @@ import tsdoc from 'eslint-plugin-tsdoc';
|
|
|
17
17
|
import unicorn from 'eslint-plugin-unicorn';
|
|
18
18
|
import yml from 'eslint-plugin-yml';
|
|
19
19
|
import globals from 'globals';
|
|
20
|
+
import { writeInfo, writeDebug } from '@storm-software/config-tools';
|
|
20
21
|
import { merge } from 'radash';
|
|
21
22
|
import tsEslint$1 from 'typescript-eslint';
|
|
22
23
|
import require$$0 from 'eslint/use-at-your-own-risk';
|
|
@@ -12851,8 +12852,8 @@ const plugin = {
|
|
|
12851
12852
|
plugin.configs && (plugin.configs.recommended = {
|
|
12852
12853
|
name: "banner/recommended",
|
|
12853
12854
|
plugins: { banner: plugin },
|
|
12854
|
-
files: [
|
|
12855
|
-
|
|
12855
|
+
files: [CODE_FILE],
|
|
12856
|
+
ignores: [
|
|
12856
12857
|
"!**/docs/**/*",
|
|
12857
12858
|
"!**/crates/**/*",
|
|
12858
12859
|
"!**/tmp/**/*",
|
|
@@ -12899,16 +12900,6 @@ function getStormConfig(options = {
|
|
|
12899
12900
|
const useUnicorn = options.useUnicorn ?? true;
|
|
12900
12901
|
const react = options.react ?? {};
|
|
12901
12902
|
const useReactCompiler = options.useReactCompiler ?? false;
|
|
12902
|
-
const bannerConfig = {
|
|
12903
|
-
...plugin.configs["recommended"],
|
|
12904
|
-
files: [TS_FILE],
|
|
12905
|
-
rules: {
|
|
12906
|
-
"banner/banner": [
|
|
12907
|
-
"error",
|
|
12908
|
-
{ commentType: "block", numNewlines: 2, repositoryName: options.name }
|
|
12909
|
-
]
|
|
12910
|
-
}
|
|
12911
|
-
};
|
|
12912
12903
|
const configs = [
|
|
12913
12904
|
// Prettier
|
|
12914
12905
|
prettierConfig,
|
|
@@ -12919,7 +12910,7 @@ function getStormConfig(options = {
|
|
|
12919
12910
|
// files: [CODE_FILE],
|
|
12920
12911
|
// rules: importRules
|
|
12921
12912
|
// },
|
|
12922
|
-
bannerConfig,
|
|
12913
|
+
// bannerConfig,
|
|
12923
12914
|
// NX
|
|
12924
12915
|
{
|
|
12925
12916
|
plugins: { "@nx": nxPlugin }
|
|
@@ -13010,7 +13001,18 @@ function getStormConfig(options = {
|
|
|
13010
13001
|
plugins: { tsdoc },
|
|
13011
13002
|
rules: config
|
|
13012
13003
|
});
|
|
13013
|
-
configs.push(
|
|
13004
|
+
configs.push({
|
|
13005
|
+
// ...banner.configs!["recommended"],
|
|
13006
|
+
name: "banner",
|
|
13007
|
+
plugins: { banner: plugin },
|
|
13008
|
+
files: [TS_FILE],
|
|
13009
|
+
rules: {
|
|
13010
|
+
"banner/banner": [
|
|
13011
|
+
"error",
|
|
13012
|
+
{ commentType: "block", numNewlines: 2, repositoryName: options.name }
|
|
13013
|
+
]
|
|
13014
|
+
}
|
|
13015
|
+
});
|
|
13014
13016
|
if (react) {
|
|
13015
13017
|
const reactConfigs = [
|
|
13016
13018
|
{
|
|
@@ -13171,13 +13173,18 @@ function getStormConfig(options = {
|
|
|
13171
13173
|
}
|
|
13172
13174
|
});
|
|
13173
13175
|
}
|
|
13174
|
-
|
|
13176
|
+
const result = formatConfig(
|
|
13175
13177
|
"Preset",
|
|
13176
13178
|
configs.reduce(
|
|
13177
13179
|
(ret, config) => merge(ret, [config], (c) => c.files),
|
|
13178
13180
|
[]
|
|
13179
13181
|
)
|
|
13180
13182
|
);
|
|
13183
|
+
writeInfo("\u2699\uFE0F Completed generated Storm ESLint configuration objects", {
|
|
13184
|
+
logLevel: "all"
|
|
13185
|
+
});
|
|
13186
|
+
writeDebug(result, { logLevel: "all" });
|
|
13187
|
+
return result;
|
|
13181
13188
|
}
|
|
13182
13189
|
|
|
13183
13190
|
export { getStormConfig };
|
package/package.json
CHANGED