@storm-software/eslint 0.31.0 → 0.31.1

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.
Files changed (2) hide show
  1. package/dist/preset.mjs +8 -3
  2. package/package.json +1 -1
package/dist/preset.mjs CHANGED
@@ -1248,6 +1248,7 @@ function stormPreset(options = {
1248
1248
  "unicorn/import-style": 0,
1249
1249
  "unicorn/prefer-module": 0,
1250
1250
  "unicorn/consistent-function-scoping": 0,
1251
+ "class-methods-use-this": 0,
1251
1252
  ...options.rules
1252
1253
  };
1253
1254
  const configs = [
@@ -1328,7 +1329,12 @@ function stormPreset(options = {
1328
1329
  languageOptions: {
1329
1330
  parser: tsEslint.parser,
1330
1331
  globals: {
1331
- ...globals.node
1332
+ ...globals.node,
1333
+ ...globals.browser,
1334
+ "stormGlobal": {
1335
+ "config": true,
1336
+ "logger": true
1337
+ }
1332
1338
  }
1333
1339
  },
1334
1340
  files: [CODE_FILE],
@@ -1363,8 +1369,7 @@ function stormPreset(options = {
1363
1369
  ]
1364
1370
  }
1365
1371
  ],
1366
- "unicorn/prefer-logical-operator-over-ternary": "warn",
1367
- "class-methods-use-this": "off"
1372
+ "unicorn/prefer-logical-operator-over-ternary": "warn"
1368
1373
  }
1369
1374
  },
1370
1375
  // Json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.31.0",
3
+ "version": "0.31.1",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {