eslint-config-fabulator 1.6.0 → 2.1.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 +4 -20
- package/package.json +18 -18
- package/react.js +2 -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
|
+
## v2.1.0 (2022-10-29)
|
|
5
|
+
### Changed
|
|
6
|
+
- [4a4a675](https://github.com/fabulator/eslint-config-fabulator/commit/4a4a6751ab8153e6cb63bcbc93f978338846b86c) Remove solarjs
|
|
7
|
+
|
|
8
|
+
## v2.0.0 (2022-10-02)
|
|
9
|
+
### Changed
|
|
10
|
+
- [fc1573e](https://github.com/fabulator/eslint-config-fabulator/commit/fc1573e65e78889c1e9cb316df80b78b7b841cf4) Update dependency eslint-plugin-jest to v27 BREAKING (#58)
|
|
11
|
+
|
|
12
|
+
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
13
|
+
- [65605a7](https://github.com/fabulator/eslint-config-fabulator/commit/65605a7c60797d793dd5ced79e5598fd0c54434f) Update dev dependency semantic-release-config-fabulator to v5 (#55)
|
|
14
|
+
|
|
15
|
+
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
16
|
+
- [5911976](https://github.com/fabulator/eslint-config-fabulator/commit/591197622dab518712b60f54d4475d8d138d5894) Update dev dependency semantic-release-config-fabulator to v4 (#53)
|
|
17
|
+
|
|
18
|
+
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
19
|
+
- [7446e14](https://github.com/fabulator/eslint-config-fabulator/commit/7446e147355ffa7c57cd4f4d9a74adda9daa33b7) Update dev dependency commitlint-config-fabulator to v5 (#52)
|
|
20
|
+
|
|
21
|
+
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
22
|
+
|
|
4
23
|
## v1.6.0 (2022-08-13)
|
|
5
24
|
### Changed
|
|
6
25
|
- [2bf16cb](https://github.com/fabulator/eslint-config-fabulator/commit/2bf16cb105000f58b410b393074f81ec1e1e7e66) Remove compat plugin
|
package/index.js
CHANGED
|
@@ -3,13 +3,7 @@ const reactConfig = require('./react');
|
|
|
3
3
|
|
|
4
4
|
/* eslint-disable max-len */
|
|
5
5
|
module.exports = {
|
|
6
|
-
extends: [
|
|
7
|
-
'airbnb',
|
|
8
|
-
'plugin:promise/recommended',
|
|
9
|
-
'plugin:jsx-a11y/recommended',
|
|
10
|
-
'plugin:sonarjs/recommended',
|
|
11
|
-
'plugin:prettier/recommended',
|
|
12
|
-
],
|
|
6
|
+
extends: ['airbnb', 'plugin:promise/recommended', 'plugin:jsx-a11y/recommended', 'plugin:prettier/recommended'],
|
|
13
7
|
settings: {
|
|
14
8
|
'import/resolver': {
|
|
15
9
|
node: {
|
|
@@ -47,7 +41,6 @@ module.exports = {
|
|
|
47
41
|
'promise/prefer-await-to-callbacks': 2,
|
|
48
42
|
'promise/prefer-await-to-then': 2,
|
|
49
43
|
'filenames/match-exported': [2, null, '\\.config$'],
|
|
50
|
-
'array-func/from-map': 2,
|
|
51
44
|
'array-func/no-unnecessary-this-arg': 2,
|
|
52
45
|
'array-func/prefer-array-from': 0, // I don't like it
|
|
53
46
|
'array-func/avoid-reverse': 2,
|
|
@@ -57,9 +50,10 @@ module.exports = {
|
|
|
57
50
|
'import/no-extraneous-dependencies': [2, { devDependencies: ['**/*.test.*', '**/*.config.js', '**/*.config.*'] }],
|
|
58
51
|
'jsx-a11y/anchor-is-valid': 0, // rule does not exist
|
|
59
52
|
'prettier/prettier': ['error', { printWidth: 140, tabWidth: 4, singleQuote: true, quoteProps: 'consistent', trailingComma: 'all' }],
|
|
60
|
-
'sonarjs/no-nested-template-literals': 0,
|
|
61
53
|
// TODO: :( extending airbnb with react
|
|
62
54
|
'react/function-component-definition': 0,
|
|
55
|
+
'array-func/from-map': 0,
|
|
56
|
+
'no-irregular-whitespace': 0,
|
|
63
57
|
},
|
|
64
58
|
overrides: [
|
|
65
59
|
{
|
|
@@ -111,15 +105,5 @@ module.exports = {
|
|
|
111
105
|
es6: true,
|
|
112
106
|
browser: true,
|
|
113
107
|
},
|
|
114
|
-
plugins: [
|
|
115
|
-
'import',
|
|
116
|
-
'promise',
|
|
117
|
-
'filenames',
|
|
118
|
-
'array-func',
|
|
119
|
-
'@typescript-eslint',
|
|
120
|
-
'sonarjs',
|
|
121
|
-
'typescript-sort-keys',
|
|
122
|
-
'prettier',
|
|
123
|
-
'json-format',
|
|
124
|
-
],
|
|
108
|
+
plugins: ['import', 'promise', 'filenames', 'array-func', '@typescript-eslint', 'typescript-sort-keys', 'prettier', 'json-format'],
|
|
125
109
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-fabulator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Shared ESLint config for fabulator projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -26,30 +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.41.0",
|
|
30
|
+
"@typescript-eslint/parser": "^5.41.0",
|
|
31
|
+
"eslint": "^8.26.0",
|
|
32
32
|
"eslint-config-airbnb": "^19.0.4",
|
|
33
33
|
"eslint-config-prettier": "^8.5.0",
|
|
34
34
|
"eslint-plugin-array-func": "^3.1.7",
|
|
35
35
|
"eslint-plugin-filenames": "^1.3.2",
|
|
36
|
-
"eslint-plugin-import": "^2.
|
|
37
|
-
"eslint-plugin-jest": "^
|
|
36
|
+
"eslint-plugin-import": "^2.26.0",
|
|
37
|
+
"eslint-plugin-jest": "^27.1.3",
|
|
38
38
|
"eslint-plugin-json-format": "^2.0.1",
|
|
39
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
40
|
-
"eslint-plugin-prettier": "^4.
|
|
41
|
-
"eslint-plugin-promise": "^6.
|
|
42
|
-
"eslint-plugin-react": "^7.
|
|
43
|
-
"eslint-plugin-react-hooks": "^4.
|
|
44
|
-
"eslint-plugin-sonarjs": "^0.
|
|
39
|
+
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
40
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
41
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
42
|
+
"eslint-plugin-react": "^7.31.10",
|
|
43
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
44
|
+
"eslint-plugin-sonarjs": "^0.16.0",
|
|
45
45
|
"eslint-plugin-typescript-sort-keys": "^2.1.0",
|
|
46
|
-
"prettier": "^2.
|
|
47
|
-
"typescript": "^4.
|
|
46
|
+
"prettier": "^2.7.1",
|
|
47
|
+
"typescript": "^4.8.4"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"commitlint-config-fabulator": "^
|
|
51
|
-
"enhanced-resolve": "^5.
|
|
52
|
-
"jest": "^
|
|
53
|
-
"semantic-release-config-fabulator": "^
|
|
50
|
+
"commitlint-config-fabulator": "^5.0.0",
|
|
51
|
+
"enhanced-resolve": "^5.10.0",
|
|
52
|
+
"jest": "^29.2.2",
|
|
53
|
+
"semantic-release-config-fabulator": "^5.0.0"
|
|
54
54
|
}
|
|
55
55
|
}
|
package/react.js
CHANGED
|
@@ -14,6 +14,8 @@ module.exports = {
|
|
|
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
16
|
'react/function-component-definition': 2,
|
|
17
|
+
'react/react-in-jsx-scope': 0,
|
|
18
|
+
'react/prop-types': 0,
|
|
17
19
|
},
|
|
18
20
|
plugins: ['react'],
|
|
19
21
|
settings: {
|