@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 +1 -1
- package/dist/preset.d.mts +1 -0
- package/dist/preset.d.ts +1 -0
- package/dist/preset.mjs +20 -8
- package/package.json +2 -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.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
|
|
13807
|
-
|
|
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.
|
|
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",
|