@mimica/eslint-config 3.1.0 → 3.3.0

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/index.mjs +6 -0
  2. package/package.json +2 -2
package/index.mjs CHANGED
@@ -75,6 +75,11 @@ export default [
75
75
  2,
76
76
  "ForInStatement",
77
77
  "LabeledStatement",
78
+ {
79
+ selector: "TSEnumDeclaration",
80
+ message:
81
+ "Prefer const objects or union types for better type safety, tree-shaking & interoperability.",
82
+ },
78
83
  "WithStatement",
79
84
  {
80
85
  selector:
@@ -238,6 +243,7 @@ export default [
238
243
  },
239
244
  ],
240
245
  "inker/no-true-as-default": 2,
246
+ "inker/node-req-header-casing": 2,
241
247
 
242
248
  "import/order": [
243
249
  2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimica/eslint-config",
3
- "version": "3.1.0",
3
+ "version": "3.3.0",
4
4
  "description": "Mimica eslint config",
5
5
  "main": "index.mjs",
6
6
  "module": "index.mjs",
@@ -32,7 +32,7 @@
32
32
  "eslint-plugin-inker": "^2.2.2",
33
33
  "eslint-plugin-promise": "^7.1.0",
34
34
  "eslint-plugin-sonarjs": "^3.0.1",
35
- "eslint-plugin-unicorn": "^56.0.0",
35
+ "eslint-plugin-unicorn": "^57.0.0",
36
36
  "eslint-plugin-you-dont-need-lodash-underscore": "^6.12.0"
37
37
  },
38
38
  "devDependencies": {