@shlinkio/eslint-config-js-coding-standard 1.2.2 → 2.0.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 +17 -0
- package/docker-compose.yml +1 -1
- package/index.js +31 -60
- package/package.json +8 -15
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org).
|
|
6
6
|
|
|
7
|
+
## [2.0.0] - 2022.03-26
|
|
8
|
+
#### Added
|
|
9
|
+
* Updated to airbnb coding standard
|
|
10
|
+
|
|
11
|
+
#### Changed
|
|
12
|
+
* *Nothing*
|
|
13
|
+
|
|
14
|
+
#### Deprecated
|
|
15
|
+
* *Nothing*
|
|
16
|
+
|
|
17
|
+
#### Removed
|
|
18
|
+
* *Nothing*
|
|
19
|
+
|
|
20
|
+
#### Fixed
|
|
21
|
+
* *Nothing*
|
|
22
|
+
|
|
23
|
+
|
|
7
24
|
## [1.2.2] - 2021-03-05
|
|
8
25
|
#### Added
|
|
9
26
|
* *Nothing*
|
package/docker-compose.yml
CHANGED
package/index.js
CHANGED
|
@@ -1,72 +1,43 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
extends: [
|
|
3
|
-
'
|
|
4
|
-
'
|
|
5
|
-
'
|
|
6
|
-
'adidas-babel',
|
|
7
|
-
'adidas-react',
|
|
8
|
-
'adidas-typescript'
|
|
3
|
+
'airbnb',
|
|
4
|
+
'airbnb-typescript',
|
|
5
|
+
'plugin:@typescript-eslint/recommended'
|
|
9
6
|
],
|
|
10
|
-
parserOptions: {
|
|
11
|
-
ecmaVersion: 2019,
|
|
12
|
-
ecmaFeatures: {
|
|
13
|
-
jsx: true
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
7
|
rules: {
|
|
17
|
-
'
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
'no-
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'no-warning-comments': 'off',
|
|
29
|
-
'no-undefined': 'off',
|
|
30
|
-
'object-shorthand': 'off',
|
|
31
|
-
'no-mixed-operators': 'off',
|
|
32
|
-
'indent': ['error', 2, {'SwitchCase': 1}],
|
|
33
|
-
'no-empty-function': 'off',
|
|
34
|
-
'lines-around-comment': 'off',
|
|
35
|
-
'no-magic-numbers': 'off',
|
|
36
|
-
'react/no-array-index-key': 'off',
|
|
37
|
-
'react/no-did-update-set-state': 'off',
|
|
38
|
-
'react/jsx-curly-spacing': ['error', 'never'],
|
|
39
|
-
'react/jsx-indent-props': ['error', 2],
|
|
40
|
-
'react/jsx-first-prop-new-line': ['error', 'multiline-multiprop'],
|
|
41
|
-
'react/jsx-closing-bracket-location': ['error', 'tag-aligned'],
|
|
42
|
-
'react/jsx-filename-extension': ['error', {'extensions': ['.js', '.jsx', '.ts', '.tsx']}],
|
|
43
|
-
'react/display-name': 'off',
|
|
8
|
+
'object-curly-newline': 'off',
|
|
9
|
+
'implicit-arrow-linebreak': 'off',
|
|
10
|
+
'no-restricted-globals': 'off',
|
|
11
|
+
'default-case': 'off',
|
|
12
|
+
'max-len': [
|
|
13
|
+
'error',
|
|
14
|
+
{ 'code': 120, 'ignoreComments': true, 'ignoreStrings': true, 'ignoreTemplateLiterals': true },
|
|
15
|
+
],
|
|
16
|
+
'import/no-cycle': 'off',
|
|
17
|
+
'import/prefer-default-export': 'off',
|
|
18
|
+
'import/no-extraneous-dependencies': 'off',
|
|
44
19
|
'react/react-in-jsx-scope': 'off',
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'@typescript-eslint/
|
|
54
|
-
'no-nonoctal-decimal-escape': 'off',
|
|
55
|
-
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
56
|
-
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
20
|
+
'react/prop-types': 'off',
|
|
21
|
+
'react/require-default-props': 'off',
|
|
22
|
+
'react/function-component-definition': 'off',
|
|
23
|
+
'react/no-array-index-key': 'off',
|
|
24
|
+
'react/no-unstable-nested-components': 'off',
|
|
25
|
+
'react/jsx-one-expression-per-line': 'off',
|
|
26
|
+
'react/jsx-props-no-spreading': 'off',
|
|
27
|
+
'react/jsx-no-useless-fragment': 'off',
|
|
28
|
+
'@typescript-eslint/no-unused-expressions': 'off',
|
|
57
29
|
'@typescript-eslint/ban-types': 'off',
|
|
58
|
-
'@typescript-eslint/
|
|
59
|
-
|
|
60
|
-
settings: {
|
|
61
|
-
react: {
|
|
62
|
-
version: 'detect'
|
|
63
|
-
}
|
|
30
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
31
|
+
'@typescript-eslint/lines-between-class-members': 'off'
|
|
64
32
|
},
|
|
65
33
|
overrides: [
|
|
66
34
|
{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
'
|
|
35
|
+
files: ['*.test.*'],
|
|
36
|
+
rules: {
|
|
37
|
+
'prefer-promise-reject-errors': 'off',
|
|
38
|
+
'no-param-reassign': 'off',
|
|
39
|
+
'react/no-children-prop': 'off',
|
|
40
|
+
'@typescript-eslint/no-shadow': 'off'
|
|
70
41
|
}
|
|
71
42
|
}
|
|
72
43
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shlinkio/eslint-config-js-coding-standard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Coding standard used by shlink JavaScript projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -20,23 +20,16 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/shlinkio/js-coding-standard",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"
|
|
24
|
-
"eslint
|
|
25
|
-
"eslint-config-
|
|
26
|
-
"eslint-config-
|
|
27
|
-
"eslint-config-adidas-typescript": "^1.4.2",
|
|
28
|
-
"eslint-plugin-import": "^2.22.1",
|
|
29
|
-
"eslint-plugin-jest": "^24.1.5",
|
|
30
|
-
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
31
|
-
"eslint-plugin-node": "^11.1.0",
|
|
32
|
-
"eslint-plugin-promise": "^4.3.1",
|
|
33
|
-
"eslint-plugin-react": "^7.22.0"
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^5.16.0",
|
|
24
|
+
"@typescript-eslint/parser": "^5.16.0",
|
|
25
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
26
|
+
"eslint-config-airbnb-typescript": "^16.1.4"
|
|
34
27
|
},
|
|
35
28
|
"peerDependencies": {
|
|
36
|
-
"eslint": "^
|
|
29
|
+
"eslint": "^8.12.0"
|
|
37
30
|
},
|
|
38
31
|
"devDependencies": {
|
|
39
|
-
"eslint": "^
|
|
40
|
-
"typescript": "^4.
|
|
32
|
+
"eslint": "^8.12.0",
|
|
33
|
+
"typescript": "^4.6.3"
|
|
41
34
|
}
|
|
42
35
|
}
|