@storm-software/eslint 0.78.5 → 0.78.6

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/dist/preset.mjs CHANGED
@@ -17,7 +17,6 @@ import unicorn from 'eslint-plugin-unicorn';
17
17
  import yml from 'eslint-plugin-yml';
18
18
  import globals from 'globals';
19
19
  import jsoncParser from 'jsonc-eslint-parser';
20
- import tsEslint$1 from 'typescript-eslint';
21
20
  import require$$0 from 'eslint/use-at-your-own-risk';
22
21
  import require$$0$1 from 'eslint';
23
22
  import os from 'node:os';
@@ -1280,48 +1279,52 @@ const config$1 = {
1280
1279
  * TypeScript Rules - The following rules are specific to the TypeScript plugin
1281
1280
  *
1282
1281
  **************************************************************/
1283
- "@typescript-eslint/no-explicit-any": "off",
1284
- "@typescript-eslint/no-empty-function": "off",
1285
- "@typescript-eslint/no-var-requires": "off",
1286
- "@typescript-eslint/ban-ts-comment": "off",
1287
- "@typescript-eslint/no-empty-interface": "off",
1288
- "@typescript-eslint/explicit-module-boundary-types": "off",
1289
- "@typescript-eslint/explicit-function-return-type": "off",
1290
- "@typescript-eslint/no-unused-vars": [
1291
- "warn",
1292
- { varsIgnorePattern: "^_", argsIgnorePattern: "^_" }
1293
- ],
1294
- "@typescript-eslint/prefer-nullish-coalescing": [
1295
- "error",
1296
- {
1297
- ignorePrimitives: {
1298
- string: true
1299
- }
1300
- }
1301
- ],
1302
- "@typescript-eslint/no-restricted-imports": [
1303
- "error",
1304
- {
1305
- "patterns": [
1306
- {
1307
- "group": ["nx/src/plugins/js*"],
1308
- "message": "Imports from 'nx/src/plugins/js' are not allowed. Use '@nx/js' instead"
1309
- },
1310
- {
1311
- "group": ["**/native-bindings", "**/native-bindings.js"],
1312
- "message": "Direct imports from native-bindings.js are not allowed. Import from index.js instead."
1313
- },
1314
- {
1315
- "group": ["create-storm-workspace"],
1316
- "message": "Direct imports from `create-storm-workspace` are not allowed. Instead install this package globally (example: 'npm i create-storm-workspace -g')."
1317
- },
1318
- {
1319
- "group": ["create-nx-workspace"],
1320
- "message": "Direct imports from `create-nx-workspace` are not allowed. Instead install this package globally (example: 'npm i create-nx-workspace -g')."
1321
- }
1322
- ]
1323
- }
1324
- ],
1282
+ // "@typescript-eslint/no-explicit-any": "off",
1283
+ // "@typescript-eslint/no-empty-function": "off",
1284
+ // "@typescript-eslint/no-var-requires": "off",
1285
+ // "@typescript-eslint/ban-ts-comment": "off",
1286
+ // "@typescript-eslint/no-empty-interface": "off",
1287
+ // "@typescript-eslint/explicit-module-boundary-types": "off",
1288
+ // "@typescript-eslint/explicit-function-return-type": "off",
1289
+ // "@typescript-eslint/no-unused-vars": [
1290
+ // "warn",
1291
+ // { varsIgnorePattern: "^_", argsIgnorePattern: "^_" }
1292
+ // ],
1293
+ // "@typescript-eslint/prefer-nullish-coalescing": [
1294
+ // "error",
1295
+ // {
1296
+ // ignorePrimitives: {
1297
+ // string: true
1298
+ // }
1299
+ // }
1300
+ // ],
1301
+ // "@typescript-eslint/no-restricted-imports": [
1302
+ // "error",
1303
+ // {
1304
+ // "patterns": [
1305
+ // {
1306
+ // "group": ["nx/src/plugins/js*"],
1307
+ // "message":
1308
+ // "Imports from 'nx/src/plugins/js' are not allowed. Use '@nx/js' instead"
1309
+ // },
1310
+ // {
1311
+ // "group": ["**/native-bindings", "**/native-bindings.js"],
1312
+ // "message":
1313
+ // "Direct imports from native-bindings.js are not allowed. Import from index.js instead."
1314
+ // },
1315
+ // {
1316
+ // "group": ["create-storm-workspace"],
1317
+ // "message":
1318
+ // "Direct imports from `create-storm-workspace` are not allowed. Instead install this package globally (example: 'npm i create-storm-workspace -g')."
1319
+ // },
1320
+ // {
1321
+ // "group": ["create-nx-workspace"],
1322
+ // "message":
1323
+ // "Direct imports from `create-nx-workspace` are not allowed. Instead install this package globally (example: 'npm i create-nx-workspace -g')."
1324
+ // }
1325
+ // ]
1326
+ // }
1327
+ // ],
1325
1328
  /*************************************************************
1326
1329
  *
1327
1330
  * Unicorn Rules - The following rules are specific to the Unicorn plugin
@@ -12885,11 +12888,10 @@ function getStormConfig(options = {
12885
12888
  // https://eslint.org/docs/latest/rules/
12886
12889
  eslint.configs.recommended,
12887
12890
  // https://typescript-eslint.io/
12888
- ...tsEslint$1.configs.recommended.map((config) => ({
12889
- ...config,
12890
- files: [TS_FILE]
12891
- // We use TS config only for TS files
12892
- })),
12891
+ // ...tsEslint.configs.recommended.map(config => ({
12892
+ // ...config,
12893
+ // files: [TS_FILE] // We use TS config only for TS files
12894
+ // })),
12893
12895
  // https://github.com/sindresorhus/eslint-plugin-unicorn
12894
12896
  unicorn.configs["flat/recommended"],
12895
12897
  // Prettier
@@ -13012,7 +13014,7 @@ function getStormConfig(options = {
13012
13014
  },
13013
13015
  rules: {
13014
13016
  // // https://eslint.org/docs/latest/rules/
13015
- // ...eslint.configs.recommended.rules,
13017
+ ...eslint.configs.recommended.rules,
13016
13018
  // // https://typescript-eslint.io/
13017
13019
  // ...tsEslint.configs.recommended.reduce(
13018
13020
  // (ret, record) => ({ ...ret, ...record.rules }),