@storm-software/eslint 0.83.0 → 0.83.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 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.82.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.83.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
@@ -12845,29 +12845,24 @@ const plugin = {
12845
12845
  },
12846
12846
  processors: {}
12847
12847
  };
12848
- plugin.configs && (plugin.configs.recommended = [
12849
- {
12850
- name: "banner/recommended/plugin",
12851
- plugins: { banner: plugin }
12852
- },
12853
- {
12854
- name: "banner/recommended/code-files",
12855
- files: [
12856
- CODE_FILE,
12857
- "!**/docs/**/*",
12858
- "!**/crates/**/*",
12859
- "!**/tmp/**/*",
12860
- "!**/dist/**/*",
12861
- "!**/coverage/**/*",
12862
- "!**/node_modules/**/*",
12863
- "!**/.cache/**/*",
12864
- "!**/.nx/**/*"
12865
- ],
12866
- rules: {
12867
- "banner/banner": ["error", { commentType: "block", numNewlines: 2 }]
12868
- }
12848
+ plugin.configs && (plugin.configs.recommended = {
12849
+ name: "banner/recommended",
12850
+ plugins: { banner: plugin },
12851
+ files: [
12852
+ CODE_FILE,
12853
+ "!**/docs/**/*",
12854
+ "!**/crates/**/*",
12855
+ "!**/tmp/**/*",
12856
+ "!**/dist/**/*",
12857
+ "!**/coverage/**/*",
12858
+ "!**/node_modules/**/*",
12859
+ "!**/.cache/**/*",
12860
+ "!**/.nx/**/*"
12861
+ ],
12862
+ rules: {
12863
+ "banner/banner": ["error", { commentType: "block", numNewlines: 2 }]
12869
12864
  }
12870
- ]);
12865
+ });
12871
12866
 
12872
12867
  const formatConfig = (name, config = []) => {
12873
12868
  return config.map((config2, index) => {
@@ -12896,10 +12891,20 @@ function getStormConfig(options = {
12896
12891
  react: {},
12897
12892
  useReactCompiler: false
12898
12893
  }, ...userConfigs) {
12894
+ const tsconfig = options.tsconfig ?? "./tsconfig.base.json";
12899
12895
  const tsConfigType = options.tsConfigType || "eslint-recommended";
12900
12896
  const useUnicorn = options.useUnicorn ?? true;
12901
12897
  const react = options.react ?? {};
12902
12898
  const useReactCompiler = options.useReactCompiler ?? false;
12899
+ const bannerConfig = {
12900
+ ...plugin.configs["recommended"],
12901
+ rules: {
12902
+ "banner/banner": [
12903
+ "error",
12904
+ { commentType: "block", numNewlines: 2, repositoryName: options.name }
12905
+ ]
12906
+ }
12907
+ };
12903
12908
  const configs = [
12904
12909
  // Prettier
12905
12910
  prettierConfig,
@@ -12910,9 +12915,7 @@ function getStormConfig(options = {
12910
12915
  // files: [CODE_FILE],
12911
12916
  // rules: importRules
12912
12917
  // },
12913
- // Banner
12914
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
12915
- ...plugin.configs["recommended"],
12918
+ bannerConfig,
12916
12919
  // NX
12917
12920
  {
12918
12921
  plugins: { "@nx": nxPlugin }
@@ -13007,9 +13010,7 @@ function getStormConfig(options = {
13007
13010
  plugins: { tsdoc },
13008
13011
  rules: config
13009
13012
  });
13010
- typescriptConfigs.push(
13011
- ...plugin.configs["recommended"]
13012
- );
13013
+ typescriptConfigs.push(bannerConfig);
13013
13014
  configs.push(
13014
13015
  ...tsEslint$1.config({
13015
13016
  files: [TS_FILE],
@@ -13032,7 +13033,7 @@ function getStormConfig(options = {
13032
13033
  parserOptions: {
13033
13034
  emitDecoratorMetadata: true,
13034
13035
  experimentalDecorators: true,
13035
- project: options.tsconfig ? options.tsconfig : "./tsconfig.base.json",
13036
+ project: tsconfig,
13036
13037
  projectService: true,
13037
13038
  sourceType: "module",
13038
13039
  projectFolderIgnoreList: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.83.0",
3
+ "version": "0.83.2",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {