@wistia/eslint-config 0.2.2 → 0.2.6

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.
@@ -30,6 +30,17 @@ module.exports = {
30
30
  ignoreCase: true,
31
31
  },
32
32
  ],
33
+ // adjust to allow render props
34
+ 'react/no-unstable-nested-components': ['error', { allowAsProps: true }],
35
+ // airbnb config for this rule is not compatible with the vast majority of
36
+ // our existing code, so instead of refactoring everything we just adjust this rule
37
+ 'react/function-component-definition': [
38
+ 'error',
39
+ {
40
+ namedComponents: 'arrow-function',
41
+ unnamedComponents: 'arrow-function',
42
+ },
43
+ ],
33
44
  // these two rules are no longer required with React 17 & babel `automatic` runtime
34
45
  'react/jsx-uses-react': 'off',
35
46
  'react/react-in-jsx-scope': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "0.2.2",
3
+ "version": "0.2.6",
4
4
  "description": "Wistia's ESLint configurations",
5
5
  "main": "react.js",
6
6
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  "eslint-plugin-better-styled-components": "^1.1.2",
18
18
  "eslint-plugin-import": "^2.25.3",
19
19
  "eslint-plugin-jest": "^25.2.4",
20
- "eslint-plugin-jest-dom": "^3.9.2",
20
+ "eslint-plugin-jest-dom": "^4.0.1",
21
21
  "eslint-plugin-jest-formatting": "^3.0.0",
22
22
  "eslint-plugin-jsx-a11y": "^6.5.1",
23
23
  "eslint-plugin-prettier": "^4.0.0",
@@ -34,8 +34,8 @@
34
34
  "stylelint-processor-styled-components": "^1.10.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@commitlint/cli": "^14.1.0",
38
- "@commitlint/config-conventional": "^14.1.0",
37
+ "@commitlint/cli": "^16.0.1",
38
+ "@commitlint/config-conventional": "^16.0.0",
39
39
  "husky": "^7.0.1"
40
40
  },
41
41
  "engines": {