@shufflies/eslint-config 1.1.0 → 1.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.
@@ -27,6 +27,12 @@ function recommended(args = {}) {
27
27
  // eslint-plugin-import
28
28
  eslint_plugin_import_1.default.flatConfigs.recommended,
29
29
  eslint_plugin_import_1.default.flatConfigs.typescript,
30
+ {
31
+ name: "override eslint core rule defaults",
32
+ rules: {
33
+ eqeqeq: "error",
34
+ },
35
+ },
30
36
  {
31
37
  name: "override unicorn defaults",
32
38
  rules: {
@@ -34,6 +40,10 @@ function recommended(args = {}) {
34
40
  // Don't force changing 'Props' to 'Properties' and
35
41
  // 'el' to 'element' and so on.
36
42
  "unicorn/prevent-abbreviations": "off",
43
+ // Being prohibited from passing undefined to functions that
44
+ // are defined as "foo | undefined" is irritating, so we
45
+ // disable this rule.
46
+ "unicorn/no-useless-undefined": "off",
37
47
  },
38
48
  },
39
49
  {
@@ -21,6 +21,12 @@ export function recommended(args = {}) {
21
21
  // eslint-plugin-import
22
22
  importPlugin.flatConfigs.recommended,
23
23
  importPlugin.flatConfigs.typescript,
24
+ {
25
+ name: "override eslint core rule defaults",
26
+ rules: {
27
+ eqeqeq: "error",
28
+ },
29
+ },
24
30
  {
25
31
  name: "override unicorn defaults",
26
32
  rules: {
@@ -28,6 +34,10 @@ export function recommended(args = {}) {
28
34
  // Don't force changing 'Props' to 'Properties' and
29
35
  // 'el' to 'element' and so on.
30
36
  "unicorn/prevent-abbreviations": "off",
37
+ // Being prohibited from passing undefined to functions that
38
+ // are defined as "foo | undefined" is irritating, so we
39
+ // disable this rule.
40
+ "unicorn/no-useless-undefined": "off",
31
41
  },
32
42
  },
33
43
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shufflies/eslint-config",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {