eslint-config-fabulator 1.4.0 → 1.5.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/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## v1.5.0 (2022-04-02)
5
+ ### Fixed
6
+ - [2dc3038](https://github.com/fabulator/eslint-config-fabulator/commit/2dc303872584f88f5f960611f54903196682d35c) Airbnb react rules
7
+
8
+ ### Changed
9
+ - [f6f27cc](https://github.com/fabulator/eslint-config-fabulator/commit/f6f27ccfbd8c5272b4db02cd84528e416a500a3e) Update actions/checkout action to v3
10
+ - [31f5345](https://github.com/fabulator/eslint-config-fabulator/commit/31f534584e2d3d6372dfa91ea17701a1b81cffdb) Update actions/setup-node action to v3
11
+
4
12
  ## v1.4.0 (2022-04-02)
5
13
  ### Changed
6
14
  - [7c9f666](https://github.com/fabulator/eslint-config-fabulator/commit/7c9f6668f229b14ffe6ed8aa74a0243ff95937e1) Remove unicorn plugin
package/index.js CHANGED
@@ -60,6 +60,8 @@ module.exports = {
60
60
  'jsx-a11y/anchor-is-valid': 0, // rule does not exist
61
61
  'prettier/prettier': ['error', { printWidth: 140, tabWidth: 4, singleQuote: true, quoteProps: 'consistent', trailingComma: 'all' }],
62
62
  'sonarjs/no-nested-template-literals': 0,
63
+ // TODO: :( extending airbnb with react
64
+ 'react/function-component-definition': 0,
63
65
  },
64
66
  overrides: [
65
67
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-fabulator",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Shared ESLint config for fabulator projects",
5
5
  "keywords": [
6
6
  "eslint",
@@ -26,30 +26,31 @@
26
26
  "test-and-lint": "npm run test && npm run lint"
27
27
  },
28
28
  "dependencies": {
29
- "@typescript-eslint/eslint-plugin": "^5.10.2",
30
- "@typescript-eslint/parser": "^5.10.2",
31
- "eslint": "^8.8.0",
29
+ "@typescript-eslint/eslint-plugin": "^5.17.0",
30
+ "@typescript-eslint/parser": "^5.17.0",
31
+ "eslint": "^8.12.0",
32
32
  "eslint-config-airbnb": "^19.0.4",
33
- "eslint-config-prettier": "^8.3.0",
33
+ "eslint-config-prettier": "^8.5.0",
34
34
  "eslint-plugin-array-func": "^3.1.7",
35
35
  "eslint-plugin-compat": "^4.0.2",
36
36
  "eslint-plugin-filenames": "^1.3.2",
37
37
  "eslint-plugin-import": "^2.25.4",
38
- "eslint-plugin-jest": "^26.0.0",
38
+ "eslint-plugin-jest": "^26.1.3",
39
39
  "eslint-plugin-json-format": "^2.0.1",
40
40
  "eslint-plugin-jsx-a11y": "^6.5.1",
41
41
  "eslint-plugin-prettier": "^4.0.0",
42
42
  "eslint-plugin-promise": "^6.0.0",
43
- "eslint-plugin-react": "^7.28.0",
44
- "eslint-plugin-react-hooks": "^4.3.0",
45
- "eslint-plugin-sonarjs": "^0.11.0",
43
+ "eslint-plugin-react": "^7.29.4",
44
+ "eslint-plugin-react-hooks": "^4.4.0",
45
+ "eslint-plugin-sonarjs": "^0.13.0",
46
46
  "eslint-plugin-typescript-sort-keys": "^2.1.0",
47
- "prettier": "^2.5.1",
48
- "typescript": "^4.5.5"
47
+ "prettier": "^2.6.1",
48
+ "typescript": "^4.6.3"
49
49
  },
50
50
  "devDependencies": {
51
51
  "commitlint-config-fabulator": "^3.0.0",
52
- "jest": "^27.5.0",
52
+ "enhanced-resolve": "^5.9.2",
53
+ "jest": "^27.5.1",
53
54
  "semantic-release-config-fabulator": "^3.3.0"
54
55
  }
55
56
  }
package/react.js CHANGED
@@ -13,6 +13,7 @@ module.exports = {
13
13
  'jsx-a11y/label-has-for': 0, // still rules have some kind of bug. Label have set for, but lint throws an error.
14
14
  'jsx-a11y/click-events-have-key-events': 0, // we don't need to be perfect
15
15
  'jsx-a11y/href-no-hash': 0, // Definition for rule 'jsx-a11y/href-no-hash' was not found
16
+ 'react/function-component-definition': 2,
16
17
  },
17
18
  plugins: ['react'],
18
19
  settings: {