@newsteam/eslint-config 0.0.183 → 0.0.185

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.
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  "@typescript-eslint/block-spacing": string;
10
10
  "@typescript-eslint/brace-style": string;
11
11
  "@typescript-eslint/class-literal-property-style": string;
12
+ "@typescript-eslint/class-methods-use-this": string;
12
13
  "@typescript-eslint/comma-dangle": (string | {
13
14
  generics: string;
14
15
  })[];
@@ -82,6 +82,12 @@ var rules = {
82
82
  * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/class-literal-property-style.md
83
83
  */
84
84
  "@typescript-eslint/class-literal-property-style": "error",
85
+ /*
86
+ * Enforce that literals on classes are exposed in a consistent style.
87
+ *
88
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/class-methods-use-this.md
89
+ */
90
+ "@typescript-eslint/class-methods-use-this": "error",
85
91
  /*
86
92
  * Require or disallow trailing comma
87
93
  *
@@ -48,7 +48,6 @@ declare const _default: {
48
48
  "unicorn/no-unnecessary-await": string;
49
49
  "unicorn/no-unreadable-array-destructuring": string;
50
50
  "unicorn/no-unreadable-iife": string;
51
- "unicorn/no-unsafe-regex": string;
52
51
  "unicorn/no-unused-properties": string;
53
52
  "unicorn/no-useless-fallback-in-spread": string;
54
53
  "unicorn/no-useless-length-check": string;
@@ -286,14 +286,6 @@ module.exports = {
286
286
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-unreadable-iife.md
287
287
  */
288
288
  "unicorn/no-unreadable-iife": "error",
289
- /*
290
- * Disallow unsafe regular expressions.
291
- *
292
- * Turned off here because 'security/detect-unsafe-regex' takes care of this
293
- *
294
- * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-unsafe-regex.md
295
- */
296
- "unicorn/no-unsafe-regex": "off",
297
289
  /*
298
290
  * Disallow unused object properties.
299
291
  *
@@ -275,7 +275,6 @@ declare const _default: {
275
275
  })[];
276
276
  "no-restricted-syntax": string;
277
277
  "no-return-assign": string;
278
- "no-return-await": string;
279
278
  "no-script-url": string;
280
279
  "no-self-assign": string;
281
280
  "no-self-compare": string;
package/lib/cjs/rules.js CHANGED
@@ -1293,12 +1293,6 @@ module.exports = {
1293
1293
  * https://eslint.org/docs/rules/no-return-assign
1294
1294
  */
1295
1295
  "no-return-assign": "error",
1296
- /*
1297
- * Disallow unnecessary return await
1298
- *
1299
- * https://eslint.org/docs/rules/no-return-await
1300
- */
1301
- "no-return-await": "error",
1302
1296
  /*
1303
1297
  * Disallow javascript: urls
1304
1298
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "0.0.183",
3
+ "version": "0.0.185",
4
4
  "description": "Shared config for eslint",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "types": "./lib/cjs/index.d.ts",
@@ -49,13 +49,13 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "@newsteam/jasmine": "0.0.45",
52
- "@types/eslint": "8.44.0",
52
+ "@types/eslint": "8.44.1",
53
53
  "@types/modernizr": "3.5.3",
54
- "@types/node": "20.4.2",
55
- "@types/react": "18.2.14",
56
- "@typescript-eslint/eslint-plugin": "6.0.0",
57
- "@typescript-eslint/parser": "6.0.0",
58
- "eslint": "8.44.0",
54
+ "@types/node": "20.4.6",
55
+ "@types/react": "18.2.18",
56
+ "@typescript-eslint/eslint-plugin": "6.2.1",
57
+ "@typescript-eslint/parser": "6.2.1",
58
+ "eslint": "8.46.0",
59
59
  "eslint-find-rules": "4.1.0",
60
60
  "eslint-import-resolver-typescript": "3.5.5",
61
61
  "eslint-plugin-array-func": "3.1.8",
@@ -64,7 +64,7 @@
64
64
  "eslint-plugin-eslint-comments": "3.2.0",
65
65
  "eslint-plugin-filenames": "1.3.2",
66
66
  "eslint-plugin-format-message": "6.2.4",
67
- "eslint-plugin-import": "2.27.5",
67
+ "eslint-plugin-import": "2.28.0",
68
68
  "eslint-plugin-import-newlines": "1.3.4",
69
69
  "eslint-plugin-more": "1.0.5",
70
70
  "eslint-plugin-no-unsanitized": "4.0.2",
@@ -74,30 +74,30 @@
74
74
  "eslint-plugin-postcss-modules": "2.0.0",
75
75
  "eslint-plugin-prefer-object-spread": "1.2.1",
76
76
  "eslint-plugin-promise": "6.1.1",
77
- "eslint-plugin-react": "7.32.2",
77
+ "eslint-plugin-react": "7.33.1",
78
78
  "eslint-plugin-react-hooks": "4.6.0",
79
79
  "eslint-plugin-react-native": "4.0.0",
80
80
  "eslint-plugin-react-perf": "3.3.1",
81
81
  "eslint-plugin-react-refresh": "^0.4.3",
82
82
  "eslint-plugin-security": "1.7.1",
83
83
  "eslint-plugin-sort-keys-fix": "1.1.2",
84
- "eslint-plugin-unicorn": "47.0.0",
84
+ "eslint-plugin-unicorn": "48.0.1",
85
85
  "json-schema": "0.4.0",
86
86
  "postcss-nesting": "12.0.0",
87
87
  "react": "18.2.0",
88
88
  "typescript": "5.1.6"
89
89
  },
90
90
  "peerDependencies": {
91
- "@typescript-eslint/eslint-plugin": "6.0.0",
92
- "@typescript-eslint/parser": "6.0.0",
93
- "eslint": "8.44.0",
91
+ "@typescript-eslint/eslint-plugin": "6.2.1",
92
+ "@typescript-eslint/parser": "6.2.1",
93
+ "eslint": "8.46.0",
94
94
  "eslint-plugin-array-func": "3.1.8",
95
95
  "eslint-plugin-css-modules": "2.11.0",
96
96
  "eslint-plugin-es": "4.1.0",
97
97
  "eslint-plugin-eslint-comments": "3.2.0",
98
98
  "eslint-plugin-filenames": "1.3.2",
99
99
  "eslint-plugin-format-message": "6.2.4",
100
- "eslint-plugin-import": "2.27.5",
100
+ "eslint-plugin-import": "2.28.0",
101
101
  "eslint-plugin-more": "1.0.5",
102
102
  "eslint-plugin-no-unsanitized": "4.0.2",
103
103
  "eslint-plugin-no-useless-assign": "1.0.3",
@@ -106,14 +106,14 @@
106
106
  "eslint-plugin-postcss-modules": "2.0.0",
107
107
  "eslint-plugin-prefer-object-spread": "1.2.1",
108
108
  "eslint-plugin-promise": "6.1.1",
109
- "eslint-plugin-react": "7.32.2",
109
+ "eslint-plugin-react": "7.33.1",
110
110
  "eslint-plugin-react-hooks": "4.6.0",
111
111
  "eslint-plugin-react-native": "4.0.0",
112
112
  "eslint-plugin-react-perf": "3.3.1",
113
113
  "eslint-plugin-react-refresh": "^0.4.3",
114
114
  "eslint-plugin-security": "1.7.1",
115
115
  "eslint-plugin-sort-keys-fix": "1.1.2",
116
- "eslint-plugin-unicorn": "47.0.0",
116
+ "eslint-plugin-unicorn": "48.0.1",
117
117
  "eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
118
118
  "json-schema": "0.4.0",
119
119
  "typescript": "5.1.6"