@storm-software/eslint 0.70.1 → 0.71.1

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.70.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.71.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)
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
- typescriptConfig.plugins = {
13886
- ...typescriptConfig.plugins,
13887
- react,
13888
- "react-hooks": reactHooks,
13889
- "jsx-a11y": jsxA11y
13890
- };
13891
- typescriptConfig.settings = {
13892
- react: {
13893
- version: "detect"
13894
- }
13895
- };
13896
- typescriptConfig.rules = {
13897
- ...typescriptConfig.rules,
13898
- // React
13899
- ...config$3,
13900
- ...config$2,
13901
- ...config$4,
13902
- ...options.react
13903
- };
13904
- typescriptConfig.languageOptions = {
13905
- ...typescriptConfig.languageOptions,
13906
- parserOptions: {
13907
- ...typescriptConfig.languageOptions?.parserOptions,
13908
- ecmaFeatures: {
13909
- ...typescriptConfig.languageOptions?.parserOptions?.ecmaFeatures,
13910
- jsx: true
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
- typescriptConfig.plugins = {
13916
- ...typescriptConfig.plugins,
13949
+ reactConfig.plugins = {
13950
+ ...reactConfig.plugins,
13917
13951
  "react-compiler": reactCompiler
13918
13952
  };
13919
- typescriptConfig.rules = {
13920
- ...typescriptConfig.rules,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.70.1",
3
+ "version": "0.71.1",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {