@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 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
- [![Version](https://img.shields.io/badge/version-0.84.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.84.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
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
- CODE_FILE,
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(bannerConfig);
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
- return formatConfig(
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.84.1",
3
+ "version": "0.85.0",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {