@storm-software/eslint 0.30.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.
- package/dist/preset.mjs +8 -3
- 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