@storm-software/eslint 0.31.0 → 0.31.2

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 +5 -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,9 @@ 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": true
1332
1335
  }
1333
1336
  },
1334
1337
  files: [CODE_FILE],
@@ -1363,8 +1366,7 @@ function stormPreset(options = {
1363
1366
  ]
1364
1367
  }
1365
1368
  ],
1366
- "unicorn/prefer-logical-operator-over-ternary": "warn",
1367
- "class-methods-use-this": "off"
1369
+ "unicorn/prefer-logical-operator-over-ternary": "warn"
1368
1370
  }
1369
1371
  },
1370
1372
  // 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.2",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {