eslint-config-fabulator 2.0.0 → 2.2.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 +11 -0
- package/index.js +8 -23
- package/package.json +16 -16
- package/react.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## v2.2.0 (2022-10-29)
|
|
5
|
+
### Changed
|
|
6
|
+
- [b9d0cf7](https://github.com/fabulator/eslint-config-fabulator/commit/b9d0cf7c25f61ddcdddc946a1db9f5506729c785) Use typed linter
|
|
7
|
+
|
|
8
|
+
### Fix
|
|
9
|
+
- [6d5c904](https://github.com/fabulator/eslint-config-fabulator/commit/6d5c904222918728781939851ccc160cb60b840f) max length attribute
|
|
10
|
+
|
|
11
|
+
## v2.1.0 (2022-10-29)
|
|
12
|
+
### Changed
|
|
13
|
+
- [4a4a675](https://github.com/fabulator/eslint-config-fabulator/commit/4a4a6751ab8153e6cb63bcbc93f978338846b86c) Remove solarjs
|
|
14
|
+
|
|
4
15
|
## v2.0.0 (2022-10-02)
|
|
5
16
|
### Changed
|
|
6
17
|
- [fc1573e](https://github.com/fabulator/eslint-config-fabulator/commit/fc1573e65e78889c1e9cb316df80b78b7b841cf4) Update dependency eslint-plugin-jest to v27 BREAKING (#58)
|
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: {
|
|
@@ -20,7 +14,7 @@ module.exports = {
|
|
|
20
14
|
},
|
|
21
15
|
rules: {
|
|
22
16
|
'indent': 0, // checked by prettier
|
|
23
|
-
'max-len':
|
|
17
|
+
'max-len': 0, // checked by prettier
|
|
24
18
|
'no-console': 'warn',
|
|
25
19
|
'complexity': [1, 6],
|
|
26
20
|
'curly': [2, 'all'],
|
|
@@ -46,8 +40,7 @@ module.exports = {
|
|
|
46
40
|
'promise/no-callback-in-promise': 1,
|
|
47
41
|
'promise/prefer-await-to-callbacks': 2,
|
|
48
42
|
'promise/prefer-await-to-then': 2,
|
|
49
|
-
'filenames/match-exported': [2, null, '\\.config$'],
|
|
50
|
-
'array-func/from-map': 2,
|
|
43
|
+
'filenames/match-exported': [2, null, '\\.config.js$'],
|
|
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,15 +50,17 @@ 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,
|
|
57
|
+
'func-names': 0,
|
|
63
58
|
},
|
|
64
59
|
overrides: [
|
|
65
60
|
{
|
|
66
61
|
files: ['*.ts', '*.tsx'],
|
|
67
62
|
parser: '@typescript-eslint/parser',
|
|
68
|
-
extends: ['plugin:@typescript-eslint/recommended'],
|
|
63
|
+
extends: ['plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking'],
|
|
69
64
|
rules: {
|
|
70
65
|
'typescript-sort-keys/interface': 2,
|
|
71
66
|
'typescript-sort-keys/string-enum': 2,
|
|
@@ -111,15 +106,5 @@ module.exports = {
|
|
|
111
106
|
es6: true,
|
|
112
107
|
browser: true,
|
|
113
108
|
},
|
|
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
|
-
],
|
|
109
|
+
plugins: ['import', 'promise', 'filenames', 'array-func', '@typescript-eslint', 'typescript-sort-keys', 'prettier', 'json-format'],
|
|
125
110
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-fabulator",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.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": "^27.
|
|
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
50
|
"commitlint-config-fabulator": "^5.0.0",
|
|
51
|
-
"enhanced-resolve": "^5.
|
|
52
|
-
"jest": "^
|
|
51
|
+
"enhanced-resolve": "^5.10.0",
|
|
52
|
+
"jest": "^29.2.2",
|
|
53
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: {
|