eslint-config-fabulator 1.3.9 → 1.6.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 +19 -0
- package/index.js +2 -16
- package/package.json +13 -14
- package/react.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## v1.6.0 (2022-08-13)
|
|
5
|
+
### Changed
|
|
6
|
+
- [2bf16cb](https://github.com/fabulator/eslint-config-fabulator/commit/2bf16cb105000f58b410b393074f81ec1e1e7e66) Remove compat plugin
|
|
7
|
+
- [5dc067b](https://github.com/fabulator/eslint-config-fabulator/commit/5dc067b186b5b1e4a08bac08daa15b5e15e29066) Update dev dependency jest to v28 (#33)
|
|
8
|
+
|
|
9
|
+
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
10
|
+
|
|
11
|
+
## v1.5.0 (2022-04-02)
|
|
12
|
+
### Fixed
|
|
13
|
+
- [2dc3038](https://github.com/fabulator/eslint-config-fabulator/commit/2dc303872584f88f5f960611f54903196682d35c) Airbnb react rules
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- [f6f27cc](https://github.com/fabulator/eslint-config-fabulator/commit/f6f27ccfbd8c5272b4db02cd84528e416a500a3e) Update actions/checkout action to v3
|
|
17
|
+
- [31f5345](https://github.com/fabulator/eslint-config-fabulator/commit/31f534584e2d3d6372dfa91ea17701a1b81cffdb) Update actions/setup-node action to v3
|
|
18
|
+
|
|
19
|
+
## v1.4.0 (2022-04-02)
|
|
20
|
+
### Changed
|
|
21
|
+
- [7c9f666](https://github.com/fabulator/eslint-config-fabulator/commit/7c9f6668f229b14ffe6ed8aa74a0243ff95937e1) Remove unicorn plugin
|
|
22
|
+
|
|
4
23
|
## v1.3.9 (2022-03-28)
|
|
5
24
|
### Fixed
|
|
6
25
|
- [57ddffa](https://github.com/fabulator/eslint-config-fabulator/commit/57ddffa5bdc5f8f02da4ac81bb2754adacab7692) 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',
|
|
@@ -18,7 +17,6 @@ module.exports = {
|
|
|
18
17
|
extensions: ['.js', '.ts', '.tsx', '.d.ts'],
|
|
19
18
|
},
|
|
20
19
|
},
|
|
21
|
-
'polyfills': ['fetch', 'promises'],
|
|
22
20
|
},
|
|
23
21
|
rules: {
|
|
24
22
|
'indent': 0, // checked by prettier
|
|
@@ -48,23 +46,11 @@ module.exports = {
|
|
|
48
46
|
'promise/no-callback-in-promise': 1,
|
|
49
47
|
'promise/prefer-await-to-callbacks': 2,
|
|
50
48
|
'promise/prefer-await-to-then': 2,
|
|
51
|
-
'compat/compat': 2,
|
|
52
49
|
'filenames/match-exported': [2, null, '\\.config$'],
|
|
53
50
|
'array-func/from-map': 2,
|
|
54
51
|
'array-func/no-unnecessary-this-arg': 2,
|
|
55
52
|
'array-func/prefer-array-from': 0, // I don't like it
|
|
56
53
|
'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
54
|
'import/prefer-default-export': 0, // In some cases it is not need
|
|
69
55
|
'import/extensions': [2, { ts: 'never', tsx: 'never' }],
|
|
70
56
|
'import/no-dynamic-require': 0, // we need dynamic import of chunks...
|
|
@@ -72,6 +58,8 @@ module.exports = {
|
|
|
72
58
|
'jsx-a11y/anchor-is-valid': 0, // rule does not exist
|
|
73
59
|
'prettier/prettier': ['error', { printWidth: 140, tabWidth: 4, singleQuote: true, quoteProps: 'consistent', trailingComma: 'all' }],
|
|
74
60
|
'sonarjs/no-nested-template-literals': 0,
|
|
61
|
+
// TODO: :( extending airbnb with react
|
|
62
|
+
'react/function-component-definition': 0,
|
|
75
63
|
},
|
|
76
64
|
overrides: [
|
|
77
65
|
{
|
|
@@ -126,8 +114,6 @@ module.exports = {
|
|
|
126
114
|
plugins: [
|
|
127
115
|
'import',
|
|
128
116
|
'promise',
|
|
129
|
-
'compat',
|
|
130
|
-
'unicorn',
|
|
131
117
|
'filenames',
|
|
132
118
|
'array-func',
|
|
133
119
|
'@typescript-eslint',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-fabulator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Shared ESLint config for fabulator projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -26,31 +26,30 @@
|
|
|
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
|
-
"eslint-plugin-compat": "^4.0.2",
|
|
36
35
|
"eslint-plugin-filenames": "^1.3.2",
|
|
37
36
|
"eslint-plugin-import": "^2.25.4",
|
|
38
|
-
"eslint-plugin-jest": "^26.
|
|
37
|
+
"eslint-plugin-jest": "^26.1.3",
|
|
39
38
|
"eslint-plugin-json-format": "^2.0.1",
|
|
40
39
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
41
40
|
"eslint-plugin-prettier": "^4.0.0",
|
|
42
41
|
"eslint-plugin-promise": "^6.0.0",
|
|
43
|
-
"eslint-plugin-react": "^7.
|
|
44
|
-
"eslint-plugin-react-hooks": "^4.
|
|
45
|
-
"eslint-plugin-sonarjs": "^0.
|
|
42
|
+
"eslint-plugin-react": "^7.29.4",
|
|
43
|
+
"eslint-plugin-react-hooks": "^4.4.0",
|
|
44
|
+
"eslint-plugin-sonarjs": "^0.13.0",
|
|
46
45
|
"eslint-plugin-typescript-sort-keys": "^2.1.0",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"typescript": "^4.5.5"
|
|
46
|
+
"prettier": "^2.6.1",
|
|
47
|
+
"typescript": "^4.6.3"
|
|
50
48
|
},
|
|
51
49
|
"devDependencies": {
|
|
52
50
|
"commitlint-config-fabulator": "^3.0.0",
|
|
53
|
-
"
|
|
51
|
+
"enhanced-resolve": "^5.9.2",
|
|
52
|
+
"jest": "^28.1.3",
|
|
54
53
|
"semantic-release-config-fabulator": "^3.3.0"
|
|
55
54
|
}
|
|
56
55
|
}
|
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: {
|