eslint-config-fabulator 1.3.8 → 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 +16 -0
- package/index.js +2 -13
- package/package.json +13 -13
- package/react.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
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
|
+
|
|
12
|
+
## v1.4.0 (2022-04-02)
|
|
13
|
+
### Changed
|
|
14
|
+
- [7c9f666](https://github.com/fabulator/eslint-config-fabulator/commit/7c9f6668f229b14ffe6ed8aa74a0243ff95937e1) Remove unicorn plugin
|
|
15
|
+
|
|
16
|
+
## v1.3.9 (2022-03-28)
|
|
17
|
+
### Fixed
|
|
18
|
+
- [57ddffa](https://github.com/fabulator/eslint-config-fabulator/commit/57ddffa5bdc5f8f02da4ac81bb2754adacab7692) Update lock to make security bots happy.
|
|
19
|
+
|
|
4
20
|
## v1.3.8 (2022-03-27)
|
|
5
21
|
### Fixed
|
|
6
22
|
- [359e576](https://github.com/fabulator/eslint-config-fabulator/commit/359e5767bcb86e0d12b73a81d9ee69d2b1066894) Update lock to make security bots happy.
|
package/index.js
CHANGED
|
@@ -6,7 +6,6 @@ module.exports = {
|
|
|
6
6
|
extends: [
|
|
7
7
|
'airbnb',
|
|
8
8
|
'plugin:promise/recommended',
|
|
9
|
-
'plugin:unicorn/recommended',
|
|
10
9
|
'plugin:jsx-a11y/recommended',
|
|
11
10
|
'plugin:sonarjs/recommended',
|
|
12
11
|
'plugin:prettier/recommended',
|
|
@@ -54,17 +53,6 @@ module.exports = {
|
|
|
54
53
|
'array-func/no-unnecessary-this-arg': 2,
|
|
55
54
|
'array-func/prefer-array-from': 0, // I don't like it
|
|
56
55
|
'array-func/avoid-reverse': 2,
|
|
57
|
-
'unicorn/catch-error-name': [2, { name: 'exception' }],
|
|
58
|
-
'unicorn/no-reduce': 0, // no reason for the rule
|
|
59
|
-
'unicorn/prevent-abbreviations': 0,
|
|
60
|
-
'unicorn/consistent-function-scoping': 0,
|
|
61
|
-
'unicorn/no-abusive-eslint-disable': 0, // sometimes it's just need
|
|
62
|
-
'unicorn/filename-case': 0,
|
|
63
|
-
'unicorn/no-fn-reference-in-iterator': 0,
|
|
64
|
-
'unicorn/no-null': 0,
|
|
65
|
-
'unicorn/prefer-module': 0,
|
|
66
|
-
'unicorn/no-array-for-each': 0,
|
|
67
|
-
'unicorn/prefer-node-protocol': 0,
|
|
68
56
|
'import/prefer-default-export': 0, // In some cases it is not need
|
|
69
57
|
'import/extensions': [2, { ts: 'never', tsx: 'never' }],
|
|
70
58
|
'import/no-dynamic-require': 0, // we need dynamic import of chunks...
|
|
@@ -72,6 +60,8 @@ module.exports = {
|
|
|
72
60
|
'jsx-a11y/anchor-is-valid': 0, // rule does not exist
|
|
73
61
|
'prettier/prettier': ['error', { printWidth: 140, tabWidth: 4, singleQuote: true, quoteProps: 'consistent', trailingComma: 'all' }],
|
|
74
62
|
'sonarjs/no-nested-template-literals': 0,
|
|
63
|
+
// TODO: :( extending airbnb with react
|
|
64
|
+
'react/function-component-definition': 0,
|
|
75
65
|
},
|
|
76
66
|
overrides: [
|
|
77
67
|
{
|
|
@@ -127,7 +117,6 @@ module.exports = {
|
|
|
127
117
|
'import',
|
|
128
118
|
'promise',
|
|
129
119
|
'compat',
|
|
130
|
-
'unicorn',
|
|
131
120
|
'filenames',
|
|
132
121
|
'array-func',
|
|
133
122
|
'@typescript-eslint',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-fabulator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Shared ESLint config for fabulator projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -26,31 +26,31 @@
|
|
|
26
26
|
"test-and-lint": "npm run test && npm run lint"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
30
|
-
"@typescript-eslint/parser": "^5.
|
|
31
|
-
"eslint": "^8.
|
|
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.
|
|
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.
|
|
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.
|
|
44
|
-
"eslint-plugin-react-hooks": "^4.
|
|
45
|
-
"eslint-plugin-sonarjs": "^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
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"typescript": "^4.5.5"
|
|
47
|
+
"prettier": "^2.6.1",
|
|
48
|
+
"typescript": "^4.6.3"
|
|
50
49
|
},
|
|
51
50
|
"devDependencies": {
|
|
52
51
|
"commitlint-config-fabulator": "^3.0.0",
|
|
53
|
-
"
|
|
52
|
+
"enhanced-resolve": "^5.9.2",
|
|
53
|
+
"jest": "^27.5.1",
|
|
54
54
|
"semantic-release-config-fabulator": "^3.3.0"
|
|
55
55
|
}
|
|
56
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: {
|