@storm-software/eslint 0.68.12 → 0.68.13

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.68.11-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.68.12-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.d.mts CHANGED
@@ -4836,6 +4836,7 @@ interface PresetOptions {
4836
4836
  parserOptions?: Linter.ParserOptions;
4837
4837
  markdown?: false | Linter.RulesRecord;
4838
4838
  react?: false | Linter.RulesRecord;
4839
+ useReactCompiler?: boolean;
4839
4840
  }
4840
4841
  /**
4841
4842
  * Get the ESLint configuration for a Storm workspace.
package/dist/preset.d.ts CHANGED
@@ -4836,6 +4836,7 @@ interface PresetOptions {
4836
4836
  parserOptions?: Linter.ParserOptions;
4837
4837
  markdown?: false | Linter.RulesRecord;
4838
4838
  react?: false | Linter.RulesRecord;
4839
+ useReactCompiler?: boolean;
4839
4840
  }
4840
4841
  /**
4841
4842
  * Get the ESLint configuration for a Storm workspace.
package/dist/preset.mjs CHANGED
@@ -10,6 +10,7 @@ import jsxA11y from 'eslint-plugin-jsx-a11y';
10
10
  import markdown from 'eslint-plugin-markdown';
11
11
  import prettierConfig from 'eslint-plugin-prettier/recommended';
12
12
  import react from 'eslint-plugin-react';
13
+ import reactCompiler from 'eslint-plugin-react-compiler';
13
14
  import reactHooks from 'eslint-plugin-react-hooks';
14
15
  import tsdoc from 'eslint-plugin-tsdoc';
15
16
  import unicorn from 'eslint-plugin-unicorn';
@@ -13670,7 +13671,8 @@ function getStormConfig(options = {
13670
13671
  tsconfig: "./tsconfig.base.json",
13671
13672
  parserOptions: {},
13672
13673
  markdown: {},
13673
- react: {}
13674
+ react: {},
13675
+ useReactCompiler: false
13674
13676
  }, ...userConfigs) {
13675
13677
  const configs = [
13676
13678
  // https://eslint.org/docs/latest/rules/
@@ -13800,13 +13802,13 @@ function getStormConfig(options = {
13800
13802
  }
13801
13803
  },
13802
13804
  rules: {
13803
- // https://eslint.org/docs/latest/rules/
13804
- ...eslint.configs.recommended.rules,
13805
- // https://typescript-eslint.io/
13806
- ...tsEslint$1.configs.stylisticTypeChecked.reduce(
13807
- (ret, record) => ({ ...ret, ...record.rules }),
13808
- {}
13809
- ),
13805
+ // // https://eslint.org/docs/latest/rules/
13806
+ // ...eslint.configs.recommended.rules,
13807
+ // // https://typescript-eslint.io/
13808
+ // ...tsEslint.configs.stylisticTypeChecked.reduce(
13809
+ // (ret, record) => ({ ...ret, ...record.rules }),
13810
+ // {}
13811
+ // ),
13810
13812
  // Prettier
13811
13813
  ...prettierConfig.rules,
13812
13814
  // https://www.npmjs.com/package/eslint-plugin-unicorn
@@ -13857,6 +13859,16 @@ function getStormConfig(options = {
13857
13859
  }
13858
13860
  }
13859
13861
  };
13862
+ if (options.useReactCompiler) {
13863
+ typescriptConfig.plugins = {
13864
+ ...typescriptConfig.plugins,
13865
+ reactCompiler
13866
+ };
13867
+ typescriptConfig.rules = {
13868
+ ...typescriptConfig.rules,
13869
+ "react-compiler/react-compiler": "error"
13870
+ };
13871
+ }
13860
13872
  }
13861
13873
  configs.push(typescriptConfig);
13862
13874
  if (options.markdown) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.68.12",
3
+ "version": "0.68.13",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {
@@ -86,6 +86,7 @@
86
86
  "eslint-plugin-prettier": "^5.0.0",
87
87
  "eslint-plugin-promise": "6.2.0",
88
88
  "eslint-plugin-react": "^7.34.3",
89
+ "eslint-plugin-react-compiler": "0.0.0-experimental-b6997ec-20240909",
89
90
  "eslint-plugin-react-hooks": "^4.6.2",
90
91
  "eslint-plugin-relay": "1.8.3",
91
92
  "eslint-plugin-sonarjs": "1.0.3",