@nextcloud/eslint-config 5.1.0 → 6.1.1
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 +97 -3
- package/index.js +19 -11
- package/package.json +51 -47
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,106 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [
|
|
3
|
+
## [v6.1.1](https://github.com/nextcloud/eslint-config/tree/v6.1.1) (2021-12-02)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v6.1.0...v6.1.1)
|
|
6
|
+
|
|
7
|
+
**Fixes:**
|
|
8
|
+
|
|
9
|
+
- Disable tag rule [\#248](https://github.com/nextcloud/eslint-config/pull/248) ([skjnldsv](https://github.com/skjnldsv))
|
|
10
|
+
|
|
11
|
+
## [v6.1.0](https://github.com/nextcloud/eslint-config/tree/v6.1.0) (2021-08-11)
|
|
12
|
+
|
|
13
|
+
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v6.0.1...v6.1.0)
|
|
14
|
+
|
|
15
|
+
**Fix dependency:**
|
|
16
|
+
|
|
17
|
+
- Remove undesired eslint-webpack-plugin ([skjnldsv](https://github.com/skjnldsv))
|
|
18
|
+
|
|
19
|
+
## [v6.0.1](https://github.com/nextcloud/eslint-config/tree/v6.0.1) (2021-08-11)
|
|
20
|
+
|
|
21
|
+
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v6.0.0...v6.0.1)
|
|
22
|
+
|
|
23
|
+
**Merged pull requests:**
|
|
24
|
+
|
|
25
|
+
- Fix license header tags spacing [\#180](https://github.com/nextcloud/eslint-config/pull/180) ([skjnldsv](https://github.com/skjnldsv))
|
|
26
|
+
|
|
27
|
+
## [v6.0.0](https://github.com/nextcloud/eslint-config/tree/v6.0.0)
|
|
28
|
+
|
|
29
|
+
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v5.1.1...v6.0.0)
|
|
30
|
+
|
|
31
|
+
### Breaking
|
|
32
|
+
|
|
33
|
+
- Require a space before async arrow function parentheses [\#146](https://github.com/nextcloud/eslint-config/pull/146) ([Pytal](https://github.com/Pytal))
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
|
|
37
|
+
- Allow testing-library in src [\#138](https://github.com/nextcloud/eslint-config/pull/138) ([artonge](https://github.com/artonge))
|
|
38
|
+
|
|
39
|
+
### Fixes
|
|
40
|
+
|
|
41
|
+
- Use updated jsdoc rules [\#123](https://github.com/nextcloud/eslint-config/pull/123) ([artonge](https://github.com/artonge))
|
|
42
|
+
|
|
43
|
+
## [v5.1.1](https://github.com/nextcloud/eslint-config/tree/v5.1.1)
|
|
44
|
+
|
|
45
|
+
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v5.1.0...v5.1.1)
|
|
46
|
+
|
|
47
|
+
- fix version and changelog [\#111](https://github.com/nextcloud/eslint-config/pull/111) ([dartcafe](https://github.com/dartcafe))
|
|
48
|
+
|
|
49
|
+
## [v5.1.0](https://github.com/nextcloud/eslint-config/tree/v5.1.0) (2021-05-03)
|
|
50
|
+
|
|
51
|
+
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v5.1.0...v5.1.0)
|
|
52
|
+
|
|
53
|
+
**Merged pull requests:**
|
|
54
|
+
|
|
55
|
+
- remove eslint-plugin-standard [\#103](https://github.com/nextcloud/eslint-config/pull/103) ([dartcafe](https://github.com/dartcafe))
|
|
56
|
+
|
|
57
|
+
**Updated dependencies:**
|
|
58
|
+
|
|
59
|
+
- Bump webpack from 5.36.1 to 5.36.2 [\#112](https://github.com/nextcloud/eslint-config/pull/112) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
60
|
+
- Bump @babel/core from 7.13.16 to 7.14.0 [\#109](https://github.com/nextcloud/eslint-config/pull/109) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
61
|
+
- Bump webpack from 5.36.0 to 5.36.1 [\#108](https://github.com/nextcloud/eslint-config/pull/108) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
62
|
+
- Bump webpack from 5.35.0 to 5.36.0 [\#107](https://github.com/nextcloud/eslint-config/pull/107) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
63
|
+
- Bump eslint from 7.24.0 to 7.25.0 [\#104](https://github.com/nextcloud/eslint-config/pull/104) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
64
|
+
- Bump webpack from 5.34.0 to 5.35.0 [\#102](https://github.com/nextcloud/eslint-config/pull/102) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
65
|
+
- Bump @babel/core from 7.13.15 to 7.13.16 [\#100](https://github.com/nextcloud/eslint-config/pull/100) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
66
|
+
- Bump webpack from 5.33.2 to 5.34.0 [\#99](https://github.com/nextcloud/eslint-config/pull/99) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
67
|
+
- Bump eslint-webpack-plugin from 2.5.3 to 2.5.4 [\#98](https://github.com/nextcloud/eslint-config/pull/98) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
68
|
+
- Bump webpack from 5.32.0 to 5.33.2 [\#97](https://github.com/nextcloud/eslint-config/pull/97) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
69
|
+
- Bump webpack from 5.31.2 to 5.32.0 [\#96](https://github.com/nextcloud/eslint-config/pull/96) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
70
|
+
- Bump eslint-plugin-vue from 7.8.0 to 7.9.0 [\#95](https://github.com/nextcloud/eslint-config/pull/95) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
71
|
+
- Bump eslint from 7.23.0 to 7.24.0 [\#94](https://github.com/nextcloud/eslint-config/pull/94) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
72
|
+
- Bump webpack from 5.31.0 to 5.31.2 [\#93](https://github.com/nextcloud/eslint-config/pull/93) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
73
|
+
- Bump @babel/core from 7.13.14 to 7.13.15 [\#92](https://github.com/nextcloud/eslint-config/pull/92) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
74
|
+
- Bump webpack from 5.30.0 to 5.31.0 [\#91](https://github.com/nextcloud/eslint-config/pull/91) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
75
|
+
- Bump webpack from 5.28.0 to 5.30.0 [\#90](https://github.com/nextcloud/eslint-config/pull/90) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
76
|
+
- Bump @babel/eslint-parser from 7.13.10 to 7.13.14 [\#89](https://github.com/nextcloud/eslint-config/pull/89) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
77
|
+
- Bump eslint from 7.13.0 to 7.23.0 [\#88](https://github.com/nextcloud/eslint-config/pull/88) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
78
|
+
- Bump @babel/core from 7.13.13 to 7.13.14 [\#87](https://github.com/nextcloud/eslint-config/pull/87) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
79
|
+
|
|
80
|
+
## [v5.1.0](https://github.com/nextcloud/eslint-config/tree/v5.1.0) (2021-05-01)
|
|
4
81
|
|
|
5
82
|
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v5.0.0...v5.1.0)
|
|
6
83
|
|
|
7
|
-
|
|
84
|
+
**Closed issues:**
|
|
85
|
+
|
|
86
|
+
- Inconsistency between package.json and package-lock.json? [\#106](https://github.com/nextcloud/eslint-config/issues/106)
|
|
87
|
+
- Is eslint-plugin-standard still necessary as peerDependency? [\#101](https://github.com/nextcloud/eslint-config/issues/101)
|
|
88
|
+
|
|
89
|
+
## [v5.0.0](https://github.com/nextcloud/eslint-config/tree/v5.0.0) (2021-03-29)
|
|
90
|
+
|
|
91
|
+
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v5.0.0-beta.0...v5.0.0)
|
|
92
|
+
|
|
93
|
+
**Implemented enhancements:**
|
|
94
|
+
|
|
95
|
+
- Bump webpack to ^5.0.0 [\#79](https://github.com/nextcloud/eslint-config/pull/79) ([skjnldsv](https://github.com/skjnldsv))
|
|
96
|
+
|
|
97
|
+
**Merged pull requests:**
|
|
8
98
|
|
|
9
|
-
[
|
|
99
|
+
- Bump eslint from 7.22.0 to 7.23.0 [\#86](https://github.com/nextcloud/eslint-config/pull/86) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
100
|
+
- Bump @babel/core from 7.13.10 to 7.13.13 [\#85](https://github.com/nextcloud/eslint-config/pull/85) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
101
|
+
- Bump eslint-webpack-plugin from 2.5.2 to 2.5.3 [\#84](https://github.com/nextcloud/eslint-config/pull/84) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
102
|
+
- Bump eslint-plugin-vue from 7.7.0 to 7.8.0 [\#83](https://github.com/nextcloud/eslint-config/pull/83) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
103
|
+
- Bump eslint from 7.21.0 to 7.22.0 [\#82](https://github.com/nextcloud/eslint-config/pull/82) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
10
104
|
|
|
11
105
|
## [v4.0.0](https://github.com/nextcloud/eslint-config/tree/v4.0.0)
|
|
12
106
|
|
package/index.js
CHANGED
|
@@ -19,6 +19,7 @@ module.exports = {
|
|
|
19
19
|
'plugin:node/recommended',
|
|
20
20
|
'plugin:vue/recommended',
|
|
21
21
|
'plugin:@nextcloud/recommended',
|
|
22
|
+
'plugin:jsdoc/recommended',
|
|
22
23
|
'standard',
|
|
23
24
|
],
|
|
24
25
|
settings: {
|
|
@@ -28,11 +29,20 @@ module.exports = {
|
|
|
28
29
|
extensions: ['.js', '.vue'],
|
|
29
30
|
},
|
|
30
31
|
},
|
|
32
|
+
jsdoc: {
|
|
33
|
+
tagNamePreference: {
|
|
34
|
+
returns: 'return'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
31
37
|
},
|
|
32
|
-
plugins: ['vue', 'node'],
|
|
38
|
+
plugins: ['vue', 'node', 'jsdoc'],
|
|
33
39
|
rules: {
|
|
34
40
|
// space before function ()
|
|
35
|
-
'space-before-function-paren': ['error',
|
|
41
|
+
'space-before-function-paren': ['error', {
|
|
42
|
+
anonymous: 'never',
|
|
43
|
+
named: 'never',
|
|
44
|
+
asyncArrow: 'always',
|
|
45
|
+
}],
|
|
36
46
|
// stay consistent with array brackets
|
|
37
47
|
'array-bracket-newline': ['error', 'consistent'],
|
|
38
48
|
// tabs only for indentation
|
|
@@ -50,13 +60,9 @@ module.exports = {
|
|
|
50
60
|
// ternary on multiline
|
|
51
61
|
'multiline-ternary': ['error', 'always-multiline'],
|
|
52
62
|
// force proper JSDocs
|
|
53
|
-
'
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
requireReturn: false,
|
|
58
|
-
requireReturnDescription: false,
|
|
59
|
-
}],
|
|
63
|
+
'jsdoc/require-returns': 0,
|
|
64
|
+
'jsdoc/require-returns-description': 0,
|
|
65
|
+
'jsdoc/tag-lines': ['off'],
|
|
60
66
|
// disallow use of "var"
|
|
61
67
|
'no-var': 'error',
|
|
62
68
|
// suggest using const
|
|
@@ -88,12 +94,14 @@ module.exports = {
|
|
|
88
94
|
allowFirstLine: true,
|
|
89
95
|
},
|
|
90
96
|
}],
|
|
97
|
+
// custom event naming convention
|
|
98
|
+
'vue/custom-event-name-casing': ['error', 'kebab-case'],
|
|
91
99
|
// always add a trailing comma (for diff readability)
|
|
92
100
|
'comma-dangle': ['warn', 'always-multiline'],
|
|
93
|
-
// Allow shallow import of @vue/test-utils in order to be able to use it in
|
|
101
|
+
// Allow shallow import of @vue/test-utils and @testing-library/vue in order to be able to use it in
|
|
94
102
|
// the src folder
|
|
95
103
|
'node/no-unpublished-import': ['error', {
|
|
96
|
-
'allowModules': ['@vue/test-utils']
|
|
104
|
+
'allowModules': ['@vue/test-utils', '@testing-library/vue'],
|
|
97
105
|
}],
|
|
98
106
|
// require object literal shorthand syntax
|
|
99
107
|
'object-shorthand': ['error', 'always'],
|
package/package.json
CHANGED
|
@@ -1,49 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
2
|
+
"name": "@nextcloud/eslint-config",
|
|
3
|
+
"version": "6.1.1",
|
|
4
|
+
"description": "Eslint shared config for nextcloud vue.js apps",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/nextcloud/eslint-config.git"
|
|
9
|
+
},
|
|
10
|
+
"peerDependencies": {
|
|
11
|
+
"@babel/core": "^7.13.10",
|
|
12
|
+
"@babel/eslint-parser": "^7.13.10",
|
|
13
|
+
"@nextcloud/eslint-plugin": "^2.0.0",
|
|
14
|
+
"eslint": "^7.13.0",
|
|
15
|
+
"eslint-config-standard": "^16.0.1",
|
|
16
|
+
"eslint-plugin-import": "^2.22.1",
|
|
17
|
+
"eslint-plugin-jsdoc": "^37.0.3",
|
|
18
|
+
"eslint-plugin-node": "^11.1.0",
|
|
19
|
+
"eslint-plugin-promise": "^5.1.0",
|
|
20
|
+
"eslint-plugin-vue": "^7.15.0",
|
|
21
|
+
"webpack": "^5.4.0"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@babel/core": "^7.13.10",
|
|
25
|
+
"@babel/eslint-parser": "^7.13.10",
|
|
26
|
+
"@nextcloud/eslint-plugin": "^2.0.0",
|
|
27
|
+
"eslint": "^7.13.0",
|
|
28
|
+
"eslint-config-standard": "^16.0.1",
|
|
29
|
+
"eslint-plugin-import": "^2.22.1",
|
|
30
|
+
"eslint-plugin-jsdoc": "^37.0.3",
|
|
31
|
+
"eslint-plugin-node": "^11.1.0",
|
|
32
|
+
"eslint-plugin-promise": "^5.1.0",
|
|
33
|
+
"eslint-plugin-vue": "^7.1.0",
|
|
34
|
+
"webpack": "^5.4.0"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"eslint",
|
|
38
|
+
"vue",
|
|
39
|
+
"vuejs",
|
|
40
|
+
"config",
|
|
41
|
+
"nextcloud"
|
|
42
|
+
],
|
|
43
|
+
"author": "John Molakvoæ <skjnldsv@protonmail.com>",
|
|
44
|
+
"license": "AGPL-3.0-or-later",
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/nextcloud/eslint-config/issues"
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://github.com/nextcloud/eslint-config#readme",
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": "^14.0.0",
|
|
51
|
+
"npm": "^7.0.0"
|
|
52
|
+
}
|
|
49
53
|
}
|