@shlinkio/eslint-config-js-coding-standard 1.2.2 → 2.0.2
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/dist/index.js +44 -0
- package/package.json +16 -17
- package/CHANGELOG.md +0 -90
- package/docker-compose.override.yml.dist +0 -9
- package/docker-compose.yml +0 -8
- package/index.js +0 -73
- package/indocker +0 -3
package/dist/index.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
extends: [
|
|
3
|
+
'airbnb',
|
|
4
|
+
'airbnb-typescript',
|
|
5
|
+
'plugin:@typescript-eslint/recommended'
|
|
6
|
+
],
|
|
7
|
+
rules: {
|
|
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',
|
|
19
|
+
'react/react-in-jsx-scope': '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',
|
|
29
|
+
'@typescript-eslint/ban-types': 'off',
|
|
30
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
31
|
+
'@typescript-eslint/lines-between-class-members': 'off'
|
|
32
|
+
},
|
|
33
|
+
overrides: [
|
|
34
|
+
{
|
|
35
|
+
files: ['*.test.*', '*.spec.*'],
|
|
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'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shlinkio/eslint-config-js-coding-standard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Coding standard used by shlink JavaScript projects",
|
|
5
|
-
"main": "index.js",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/shlinkio/js-coding-standard.git"
|
|
@@ -19,24 +19,23 @@
|
|
|
19
19
|
"url": "https://github.com/shlinkio/js-coding-standard/issues"
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/shlinkio/js-coding-standard",
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "mkdir -p dist && rm -rf dist/* && cp index.js dist"
|
|
24
|
+
},
|
|
22
25
|
"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"
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "^5.16.0",
|
|
27
|
+
"@typescript-eslint/parser": "^5.16.0",
|
|
28
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
29
|
+
"eslint-config-airbnb-typescript": "^16.1.4"
|
|
34
30
|
},
|
|
35
31
|
"peerDependencies": {
|
|
36
|
-
"eslint": "^
|
|
32
|
+
"eslint": "^8.12.0"
|
|
37
33
|
},
|
|
38
34
|
"devDependencies": {
|
|
39
|
-
"eslint": "^
|
|
40
|
-
"typescript": "^4.
|
|
41
|
-
}
|
|
35
|
+
"eslint": "^8.12.0",
|
|
36
|
+
"typescript": "^4.6.3"
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"dist"
|
|
40
|
+
]
|
|
42
41
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
# CHANGELOG
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
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
|
-
|
|
7
|
-
## [1.2.2] - 2021-03-05
|
|
8
|
-
#### Added
|
|
9
|
-
* *Nothing*
|
|
10
|
-
|
|
11
|
-
#### Changed
|
|
12
|
-
* *Nothing*
|
|
13
|
-
|
|
14
|
-
#### Deprecated
|
|
15
|
-
* *Nothing*
|
|
16
|
-
|
|
17
|
-
#### Removed
|
|
18
|
-
* *Nothing*
|
|
19
|
-
|
|
20
|
-
#### Fixed
|
|
21
|
-
* Disabled some rules.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## [1.2.1] - 2021-02-28
|
|
25
|
-
#### Added
|
|
26
|
-
* *Nothing*
|
|
27
|
-
|
|
28
|
-
#### Changed
|
|
29
|
-
* *Nothing*
|
|
30
|
-
|
|
31
|
-
#### Deprecated
|
|
32
|
-
* *Nothing*
|
|
33
|
-
|
|
34
|
-
#### Removed
|
|
35
|
-
* *Nothing*
|
|
36
|
-
|
|
37
|
-
#### Fixed
|
|
38
|
-
* Added missing dependency on `eslint-plugin-node`.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## [1.2.0] - 2021-02-28
|
|
42
|
-
#### Added
|
|
43
|
-
* Updated dependencies
|
|
44
|
-
* Added new rules
|
|
45
|
-
|
|
46
|
-
#### Changed
|
|
47
|
-
* *Nothing*
|
|
48
|
-
|
|
49
|
-
#### Deprecated
|
|
50
|
-
* *Nothing*
|
|
51
|
-
|
|
52
|
-
#### Removed
|
|
53
|
-
* *Nothing*
|
|
54
|
-
|
|
55
|
-
#### Fixed
|
|
56
|
-
* *Nothing*
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
## [1.0.1] - 2019-09-02
|
|
60
|
-
#### Added
|
|
61
|
-
* *Nothing*
|
|
62
|
-
|
|
63
|
-
#### Changed
|
|
64
|
-
* *Nothing*
|
|
65
|
-
|
|
66
|
-
#### Deprecated
|
|
67
|
-
* *Nothing*
|
|
68
|
-
|
|
69
|
-
#### Removed
|
|
70
|
-
* *Nothing*
|
|
71
|
-
|
|
72
|
-
#### Fixed
|
|
73
|
-
* Added missing rule
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
## [1.0.0] - 2019-09-02
|
|
77
|
-
#### Added
|
|
78
|
-
* First release
|
|
79
|
-
|
|
80
|
-
#### Changed
|
|
81
|
-
* *Nothing*
|
|
82
|
-
|
|
83
|
-
#### Deprecated
|
|
84
|
-
* *Nothing*
|
|
85
|
-
|
|
86
|
-
#### Removed
|
|
87
|
-
* *Nothing*
|
|
88
|
-
|
|
89
|
-
#### Fixed
|
|
90
|
-
* *Nothing*
|
package/docker-compose.yml
DELETED
package/index.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: [
|
|
3
|
-
'adidas-env/browser',
|
|
4
|
-
'adidas-env/module',
|
|
5
|
-
'adidas-env/node',
|
|
6
|
-
'adidas-babel',
|
|
7
|
-
'adidas-react',
|
|
8
|
-
'adidas-typescript'
|
|
9
|
-
],
|
|
10
|
-
parserOptions: {
|
|
11
|
-
ecmaVersion: 2019,
|
|
12
|
-
ecmaFeatures: {
|
|
13
|
-
jsx: true
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
rules: {
|
|
17
|
-
'max-len': ['error', {
|
|
18
|
-
code: 120,
|
|
19
|
-
ignoreStrings: true,
|
|
20
|
-
ignoreTemplateLiterals: true,
|
|
21
|
-
ignoreComments: true
|
|
22
|
-
}],
|
|
23
|
-
'comma-dangle': 'off',
|
|
24
|
-
'no-invalid-this': 'off',
|
|
25
|
-
'no-inline-comments': 'off',
|
|
26
|
-
'no-console': 'warn',
|
|
27
|
-
'template-curly-spacing': ['error', 'never'],
|
|
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',
|
|
44
|
-
'react/react-in-jsx-scope': 'off',
|
|
45
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
46
|
-
'@typescript-eslint/no-magic-numbers': 'off',
|
|
47
|
-
'@typescript-eslint/no-extraneous-class': 'off',
|
|
48
|
-
'@typescript-eslint/require-array-sort-compare': 'off',
|
|
49
|
-
'@typescript-eslint/method-signature-style': 'off',
|
|
50
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
51
|
-
'@typescript-eslint/array-type': ['error', { default: 'array' }],
|
|
52
|
-
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
|
|
53
|
-
'@typescript-eslint/indent': ['error', 2, { SwitchCase: 1 }],
|
|
54
|
-
'no-nonoctal-decimal-escape': 'off',
|
|
55
|
-
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
56
|
-
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
57
|
-
'@typescript-eslint/ban-types': 'off',
|
|
58
|
-
'@typescript-eslint/naming-convention': 'off'
|
|
59
|
-
},
|
|
60
|
-
settings: {
|
|
61
|
-
react: {
|
|
62
|
-
version: 'detect'
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
overrides: [
|
|
66
|
-
{
|
|
67
|
-
'files': ['**/*.tsx'],
|
|
68
|
-
'rules': {
|
|
69
|
-
'react/prop-types': 'off'
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
};
|
package/indocker
DELETED