@forsakringskassan/eslint-config 13.0.3 → 13.0.4
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/index.mjs +16 -0
- package/package.json +2 -2
package/index.mjs
CHANGED
|
@@ -118,6 +118,7 @@ export default [
|
|
|
118
118
|
"no-unused-vars": "error",
|
|
119
119
|
"no-var": "error",
|
|
120
120
|
"no-warning-comments": "error",
|
|
121
|
+
"object-shorthand": "error",
|
|
121
122
|
"prefer-const": "error",
|
|
122
123
|
"prefer-rest-params": "error",
|
|
123
124
|
"prefer-spread": "error",
|
|
@@ -317,6 +318,13 @@ export default [
|
|
|
317
318
|
},
|
|
318
319
|
];
|
|
319
320
|
|
|
321
|
+
const defaultAppConfig = defineConfig({
|
|
322
|
+
name: "@forsakringskassan/eslint-config/app",
|
|
323
|
+
rules: {
|
|
324
|
+
"sonarjs/no-commented-code": "warn",
|
|
325
|
+
},
|
|
326
|
+
});
|
|
327
|
+
|
|
320
328
|
const defaultDocsConfig = defineConfig({
|
|
321
329
|
name: "@forsakringskassan/eslint-config/docs-app",
|
|
322
330
|
files: ["docs/src/*.{js,ts}"],
|
|
@@ -351,6 +359,14 @@ const defaultSandboxConfig = {
|
|
|
351
359
|
},
|
|
352
360
|
};
|
|
353
361
|
|
|
362
|
+
/**
|
|
363
|
+
* @param {Config} [override]
|
|
364
|
+
* @returns {Config}
|
|
365
|
+
*/
|
|
366
|
+
export function appConfig(override) {
|
|
367
|
+
return merge(defaultAppConfig, override ?? {});
|
|
368
|
+
}
|
|
369
|
+
|
|
354
370
|
/**
|
|
355
371
|
* @param {Config} [override]
|
|
356
372
|
* @returns {Config}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forsakringskassan/eslint-config",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.4",
|
|
4
4
|
"description": "Försäkringskassans eslint shareable config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">= 22.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "82cae99b10877e69524cfa2d74c977cab719cf09"
|
|
45
45
|
}
|