@wistia/eslint-config 0.6.0 → 0.6.3

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.
@@ -13,7 +13,15 @@ module.exports = {
13
13
  // force consistency of jsx attribute declaration
14
14
  'react/jsx-boolean-value': ['error', 'always'],
15
15
  // encourages consistent event handler naming
16
- 'react/jsx-handler-names': 'error',
16
+ 'react/jsx-handler-names': [
17
+ 'error',
18
+ {
19
+ eventHandlerPrefix: 'handle',
20
+ eventHandlerPropPrefix: 'on',
21
+ checkLocalVariables: true,
22
+ checkInlineFunction: true,
23
+ },
24
+ ],
17
25
  // checks if an element likely requires a key prop
18
26
  'react/jsx-key': 'error',
19
27
  // this rule is overreaching in it's prescriptiveness
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "0.6.0",
3
+ "version": "0.6.3",
4
4
  "description": "Wistia's ESLint configurations",
5
5
  "main": "react.js",
6
6
  "scripts": {
@@ -9,41 +9,44 @@
9
9
  "test": "echo \"Error: no test specified\" && exit 1"
10
10
  },
11
11
  "dependencies": {
12
- "@babel/core": "^7.17.10",
13
- "@babel/eslint-parser": "^7.17.0",
14
- "@babel/preset-react": "^7.17.12",
12
+ "@babel/core": "^7.18.9",
13
+ "@babel/eslint-parser": "^7.18.9",
14
+ "@babel/preset-react": "^7.18.6",
15
+ "@typescript-eslint/eslint-plugin": "^5.30.7",
16
+ "@typescript-eslint/parser": "^5.30.7",
15
17
  "confusing-browser-globals": "^1.0.11",
16
- "eslint": "^8.14.0",
18
+ "eslint": "^8.20.0",
17
19
  "eslint-config-airbnb": "^19.0.4",
18
20
  "eslint-config-prettier": "^8.5.0",
19
21
  "eslint-plugin-better-styled-components": "^1.1.2",
20
22
  "eslint-plugin-cypress": "^2.12.1",
21
23
  "eslint-plugin-import": "^2.26.0",
22
- "eslint-plugin-jest": "^26.1.5",
23
- "eslint-plugin-jest-dom": "^4.0.1",
24
+ "eslint-plugin-jest": "^26.6.0",
25
+ "eslint-plugin-jest-dom": "^4.0.2",
24
26
  "eslint-plugin-jest-formatting": "^3.1.0",
25
- "eslint-plugin-jsx-a11y": "^6.5.1",
26
- "eslint-plugin-prettier": "^4.0.0",
27
- "eslint-plugin-react": "^7.29.4",
28
- "eslint-plugin-react-hooks": "^4.5.0",
27
+ "eslint-plugin-jsx-a11y": "^6.6.0",
28
+ "eslint-plugin-prettier": "^4.2.1",
29
+ "eslint-plugin-react": "^7.30.1",
30
+ "eslint-plugin-react-hooks": "^4.6.0",
29
31
  "eslint-plugin-sonarjs": "^0.13.0",
30
- "eslint-plugin-styled-components-a11y": "0.0.34",
31
- "eslint-plugin-testing-library": "^5.3.1",
32
- "postcss": "^8.4.13",
32
+ "eslint-plugin-styled-components-a11y": "^0.0.40",
33
+ "eslint-plugin-testing-library": "^5.5.1",
34
+ "postcss": "^8.4.14",
33
35
  "postcss-scss": "^4.0.4",
34
- "prettier": "^2.6.2",
35
- "stylelint": "^14.8.1",
36
+ "prettier": "^2.7.1",
37
+ "stylelint": "^14.9.1",
36
38
  "stylelint-config-prettier": "^9.0.3",
37
39
  "stylelint-config-standard": "^26.0.0",
38
- "stylelint-config-standard-scss": "^4.0.0",
40
+ "stylelint-config-standard-scss": "^5.0.0",
39
41
  "stylelint-declaration-block-no-ignored-properties": "^2.5.0",
40
42
  "stylelint-prettier": "^2.0.0",
41
43
  "stylelint-processor-styled-components": "^1.10.0",
42
- "stylelint-scss": "^4.2.0"
44
+ "stylelint-scss": "^4.3.0",
45
+ "typescript": "^4.7.4"
43
46
  },
44
47
  "devDependencies": {
45
- "@commitlint/cli": "^17.0.2",
46
- "@commitlint/config-conventional": "^17.0.2",
48
+ "@commitlint/cli": "^17.0.3",
49
+ "@commitlint/config-conventional": "^17.0.3",
47
50
  "husky": "^8.0.1"
48
51
  },
49
52
  "engines": {