@wistia/eslint-config 0.21.0 → 0.21.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "0.21.0",
3
+ "version": "0.21.2",
4
4
  "description": "Wistia's ESLint configurations",
5
5
  "main": "react.js",
6
6
  "exports": {
@@ -39,7 +39,7 @@
39
39
  "@typescript-eslint/parser": "^6.0.0",
40
40
  "confusing-browser-globals": "^1.0.11",
41
41
  "eslint": "^8.45.0",
42
- "eslint-config-prettier": "^8.8.0",
42
+ "eslint-config-prettier": "^9.0.0",
43
43
  "eslint-import-resolver-typescript": "^3.5.5",
44
44
  "eslint-plugin-better-styled-components": "^1.1.2",
45
45
  "eslint-plugin-cypress": "^2.13.3",
@@ -57,7 +57,7 @@
57
57
  "eslint-plugin-promise": "^6.1.1",
58
58
  "eslint-plugin-react": "^7.32.2",
59
59
  "eslint-plugin-react-hooks": "^4.6.0",
60
- "eslint-plugin-sonarjs": "^0.19.0",
60
+ "eslint-plugin-sonarjs": "^0.20.0",
61
61
  "eslint-plugin-storybook": "^0.6.12",
62
62
  "eslint-plugin-styled-components-a11y": "^2.1.3",
63
63
  "eslint-plugin-testing-library": "^5.11.0",
@@ -175,13 +175,12 @@ module.exports = {
175
175
  'react/jsx-uses-vars': 'error',
176
176
 
177
177
  // Prevent usage of dangerous JSX properties
178
- // decision: it's good to avoid but there are occasions where you need it and will just end up disabling this rule inline anyways
179
178
  // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-danger.md
180
- 'react/no-danger': 'off',
179
+ 'react/no-danger': 'error',
181
180
 
182
181
  // Prevent usage of deprecated methods
183
182
  // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-deprecated.md
184
- 'react/no-deprecated': ['error'],
183
+ 'react/no-deprecated': 'error',
185
184
 
186
185
  // Prevent usage of setState in componentDidMount
187
186
  // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-did-mount-set-state.md
@@ -71,7 +71,7 @@ module.exports = {
71
71
 
72
72
  // String literals should not be duplicated
73
73
  // https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-duplicate-string.md
74
- 'sonarjs/no-duplicate-string': ['error', 10],
74
+ 'sonarjs/no-duplicate-string': ['error', { threshold: 10 }],
75
75
 
76
76
  // Two branches in a conditional structure should not have exactly the same implementation
77
77
  // https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/no-duplicated-branches.md