@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 +1 -1
- package/dist/preset.mjs +52 -2
- package/package.json +1 -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.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
|
-
|
|
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: [
|
|
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