@lipemat/eslint-config 3.3.1 → 3.4.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/index.js +14 -21
  2. package/package.json +5 -4
package/index.js CHANGED
@@ -8,7 +8,6 @@ let mergedConfig = {
8
8
  },
9
9
  extends: [
10
10
  'plugin:@wordpress/eslint-plugin/recommended-with-formatting',
11
- 'plugin:import/typescript',
12
11
  'plugin:deprecation/recommended',
13
12
  ],
14
13
  globals: {
@@ -23,12 +22,12 @@ let mergedConfig = {
23
22
  //Rules to override the standard JS ones when we get undesired results for TypeScript may be found here
24
23
  //@link https://typescript-eslint.io/rules/
25
24
  rules: {
26
- 'jsdoc/no-undefined-types': [ 0 ],
27
- 'no-magic-numbers': [ 0 ],
28
- 'no-redeclare': [ 0 ],
29
- 'no-shadow': [ 0 ],
30
- 'no-undef': [ 0 ],
31
- semi: [ 0 ],
25
+ 'jsdoc/no-undefined-types': 'off',
26
+ 'no-magic-numbers': 'off',
27
+ 'no-redeclare': 'off',
28
+ 'no-shadow': 'off',
29
+ 'no-undef': 'off',
30
+ semi: 'off',
32
31
  '@typescript-eslint/ban-types': [
33
32
  'error',
34
33
  {
@@ -72,24 +71,18 @@ let mergedConfig = {
72
71
  'arrow-spacing': [ 1, {before: true, after: true} ],
73
72
  camelcase: [ 2, {properties: 'never'} ],
74
73
  indent: [ 1, 'tab', {SwitchCase: 1} ],
75
- 'lines-around-comment': [ 0 ],
76
- 'jsdoc/require-param': [ 0 ],
77
- 'jsdoc/require-param-type': [ 0 ],
78
- 'jsdoc/require-returns-description': [ 0 ],
74
+ 'lines-around-comment': 'off',
75
+ 'jsdoc/require-param': 'off',
76
+ 'jsdoc/require-param-type': 'off',
77
+ 'jsdoc/require-returns-description': 'off',
79
78
  'jsdoc/check-tag-names': [ 1, {definedTags: [ 'notice', 'link', 'task', 'ticket', 'note' ]} ],
80
-
81
- /**
82
- * Disable rule until the bug is resolved.
83
- *
84
- * @link https://github.com/import-js/eslint-plugin-import/issues/2267
85
- */
86
- 'import/no-unresolved': [ 0 ],
87
-
88
- 'no-console': [ 0 ],
79
+ 'import/no-unresolved': 'off',
80
+ 'no-console': [ 'warn', {allow: [ 'warn', 'error', 'debug' ]} ],
81
+ 'no-constant-binary-expression': [ 'warn' ],
89
82
  'no-multiple-empty-lines': [ 'error', {max: 2} ],
90
83
  'object-curly-spacing': [ 1, 'never' ],
91
84
  'react/no-unescaped-entities': [ 2, {forbid: [ '>', '}' ]} ],
92
- 'react/display-name': [ 0 ],
85
+ 'react/display-name': 'off',
93
86
  'react-hooks/rules-of-hooks': 'error',
94
87
  'react-hooks/exhaustive-deps': 'warn',
95
88
  'react/jsx-curly-spacing': [ 1, {when: 'never', allowMultiline: false, children: true} ],
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@lipemat/eslint-config",
3
- "version": "3.3.1",
3
+ "version": "3.4.2",
4
4
  "license": "MIT",
5
5
  "description": "Eslint configuration for all @lipemat packages",
6
6
  "engines": {
7
- "node": ">=16.14.2"
7
+ "node": ">=20.11.0"
8
8
  },
9
9
  "main": "index.js",
10
10
  "files": [
@@ -23,9 +23,10 @@
23
23
  "test": "lipemat-js-boilerplate test"
24
24
  },
25
25
  "dependencies": {
26
+ "@types/eslint": "^8",
26
27
  "@wordpress/eslint-plugin": "^12.2.0",
27
28
  "eslint": "^8",
28
- "eslint-plugin-deprecation": "^2.0.0",
29
+ "eslint-plugin-deprecation": "^3.0.0",
29
30
  "eslint-plugin-jsx-a11y": "6.7.1"
30
31
  },
31
32
  "devDependencies": {
@@ -39,5 +40,5 @@
39
40
  "peerDependencies": {
40
41
  "@lipemat/js-boilerplate": "^10.3.1"
41
42
  },
42
- "packageManager": "yarn@4.1.1"
43
+ "packageManager": "yarn@4.5.1"
43
44
  }