@storm-software/eslint 0.79.0 → 0.80.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.78.7-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.79.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
@@ -12895,7 +12895,10 @@ function getStormConfig(options = {
12895
12895
  // We use TS config only for TS files
12896
12896
  })),
12897
12897
  // https://github.com/sindresorhus/eslint-plugin-unicorn
12898
- unicorn.configs["flat/recommended"],
12898
+ {
12899
+ ...unicorn.configs["flat/recommended"],
12900
+ files: ["**/*.ts"]
12901
+ },
12899
12902
  // Prettier
12900
12903
  prettierConfig,
12901
12904
  // Import
@@ -12979,7 +12982,7 @@ function getStormConfig(options = {
12979
12982
  ...userConfigs
12980
12983
  ].filter(Boolean);
12981
12984
  const typescriptConfig = {
12982
- files: [TS_FILE],
12985
+ files: ["**/*.ts"],
12983
12986
  languageOptions: {
12984
12987
  globals: {
12985
12988
  ...Object.fromEntries(
@@ -13054,6 +13057,53 @@ function getStormConfig(options = {
13054
13057
  configs.push(typescriptConfig);
13055
13058
  if (options.react) {
13056
13059
  const reactConfigs = [
13060
+ {
13061
+ files: ["**/*.tsx"],
13062
+ languageOptions: {
13063
+ globals: {
13064
+ ...Object.fromEntries(
13065
+ Object.keys(globals).flatMap(
13066
+ (group) => Object.keys(globals[group]).map((key) => [
13067
+ key,
13068
+ "readonly"
13069
+ ])
13070
+ )
13071
+ ),
13072
+ ...globals.browser,
13073
+ ...globals.node,
13074
+ "window": "readonly",
13075
+ "Storm": "readonly"
13076
+ },
13077
+ parserOptions: {
13078
+ emitDecoratorMetadata: true,
13079
+ experimentalDecorators: true,
13080
+ project: options.tsconfig ? options.tsconfig : "./tsconfig.base.json",
13081
+ projectService: true,
13082
+ sourceType: "module",
13083
+ projectFolderIgnoreList: [
13084
+ "**/node_modules/**",
13085
+ "**/dist/**",
13086
+ "**/coverage/**",
13087
+ "**/tmp/**",
13088
+ "**/.nx/**",
13089
+ "**/.tamagui/**",
13090
+ "**/.next/**",
13091
+ ...options.ignores || []
13092
+ ],
13093
+ ...options.parserOptions
13094
+ }
13095
+ },
13096
+ ignores: [
13097
+ "**/node_modules/**",
13098
+ "**/dist/**",
13099
+ "**/coverage/**",
13100
+ "**/tmp/**",
13101
+ "**/.nx/**",
13102
+ "**/.tamagui/**",
13103
+ "**/.next/**",
13104
+ ...options.ignores || []
13105
+ ]
13106
+ },
13057
13107
  {
13058
13108
  files: ["**/*.tsx"],
13059
13109
  ignores: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.79.0",
3
+ "version": "0.80.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": {