eslint-config-greenpie 7.2.0 → 7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-greenpie",
3
- "version": "7.2.0",
3
+ "version": "7.3.0",
4
4
  "description": "GreenPie's ESLint config file",
5
5
  "main": "index.js",
6
6
  "author": "Roman Nuritdinov (Ky6uk)",
@@ -33,11 +33,11 @@
33
33
  "vue"
34
34
  ],
35
35
  "peerDependencies": {
36
- "@stylistic/eslint-plugin-js": "^1.2.0",
37
- "@stylistic/eslint-plugin-ts": "^1.2.0",
38
- "@typescript-eslint/eslint-plugin": "^6.10.0",
39
- "@typescript-eslint/parser": "^6.10.0",
40
- "eslint": "^8.53.0",
36
+ "@stylistic/eslint-plugin-js": "^1.4.0",
37
+ "@stylistic/eslint-plugin-ts": "^1.4.0",
38
+ "@typescript-eslint/eslint-plugin": "^6.12.0",
39
+ "@typescript-eslint/parser": "^6.12.0",
40
+ "eslint": "^8.54.0",
41
41
  "eslint-plugin-jest": "^27.6.0",
42
42
  "eslint-plugin-vue": "^9.18.1"
43
43
  },
@@ -8,6 +8,30 @@ module.exports = {
8
8
  * {@link https://github.com/eslint-stylistic/eslint-stylistic/releases}
9
9
  */
10
10
  rules: {
11
+ // Disable original JavaScript rules
12
+
13
+ '@stylistic/js/block-spacing': 'off',
14
+ '@stylistic/js/brace-style': 'off',
15
+ '@stylistic/js/comma-dangle': 'off',
16
+ '@stylistic/js/comma-spacing': 'off',
17
+ '@stylistic/js/function-call-spacing': 'off',
18
+ '@stylistic/js/indent': 'off',
19
+ '@stylistic/js/key-spacing': 'off',
20
+ '@stylistic/js/keyword-spacing': 'off',
21
+ '@stylistic/js/lines-around-comment': 'off',
22
+ '@stylistic/js/lines-between-class-members': 'off',
23
+ '@stylistic/js/no-extra-parens': 'off',
24
+ '@stylistic/js/no-extra-semi': 'off',
25
+ '@stylistic/js/object-curly-spacing': 'off',
26
+ '@stylistic/js/padding-line-between-statements': 'off',
27
+ '@stylistic/js/quotes': 'off',
28
+ '@stylistic/js/semi': 'off',
29
+ '@stylistic/js/space-before-blocks': 'off',
30
+ '@stylistic/js/space-before-function-paren': 'off',
31
+ '@stylistic/js/space-infix-ops': 'off',
32
+
33
+ // TypeScript rules
34
+
11
35
  '@stylistic/ts/block-spacing': 'error',
12
36
  '@stylistic/ts/brace-style': 'error',
13
37
  '@stylistic/ts/comma-dangle': 'error',
@@ -25,7 +49,11 @@ module.exports = {
25
49
  // TODO: Lack of configuration. Can it be replaced by `padding-line-between-statements`?
26
50
  '@stylistic/ts/lines-between-class-members': 'off',
27
51
  '@stylistic/ts/member-delimiter-style': 'error',
28
- '@stylistic/ts/no-extra-parens': 'error',
52
+
53
+ '@stylistic/ts/no-extra-parens': ['error', 'all', {
54
+ nestedBinaryExpressions: false
55
+ }],
56
+
29
57
  '@stylistic/ts/no-extra-semi': 'error',
30
58
  '@stylistic/ts/object-curly-spacing': ['error', 'always'],
31
59
 
@@ -88,6 +88,7 @@ module.exports = {
88
88
  '@typescript-eslint/no-unsafe-enum-comparison': 'error',
89
89
  '@typescript-eslint/no-unsafe-member-access': 'error',
90
90
  '@typescript-eslint/no-unsafe-return': 'error',
91
+ '@typescript-eslint/no-unsafe-unary-minus': 'error',
91
92
 
92
93
  // Formatting Rules
93
94