@nextcloud/eslint-config 8.1.1 → 8.1.3
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 +18 -2
- package/index.js +9 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [v8.1.
|
|
3
|
+
## [v8.1.3](https://github.com/nextcloud/eslint-config/tree/v8.1.3) (2022-11-04)
|
|
4
4
|
|
|
5
|
-
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v8.
|
|
5
|
+
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v8.1.2...v8.1.3)
|
|
6
|
+
|
|
7
|
+
**Fixed:**
|
|
8
|
+
- Allow TypeScript syntax in JSDoc comments by @Pytal in https://github.com/nextcloud/eslint-config/pull/413
|
|
9
|
+
|
|
10
|
+
**Dependency updates:**
|
|
11
|
+
- Bump @babel/core from 7.18.10 to 7.19.6 by @dependabot in https://github.com/nextcloud/eslint-config/pull/404
|
|
12
|
+
- Bump @babel/eslint-parser from 7.18.9 to 7.19.1 by @dependabot in https://github.com/nextcloud/eslint-config/pull/392
|
|
13
|
+
- Bump eslint from 8.21.0 to 8.26.0 by @dependabot in https://github.com/nextcloud/eslint-config/pull/406
|
|
14
|
+
- Bump eslint-plugin-jsdoc from 39.3.13 to 39.6.2 by @dependabot in https://github.com/nextcloud/eslint-config/pull/414
|
|
15
|
+
- Bump eslint-plugin-n from 15.2.4 to 15.4.0 by @dependabot in https://github.com/nextcloud/eslint-config/pull/409
|
|
16
|
+
- Bump eslint-plugin-promise from 6.0.0 to 6.1.1 by @dependabot in https://github.com/nextcloud/eslint-config/pull/405
|
|
17
|
+
- Bump eslint-plugin-vue from 9.3.0 to 9.7.0 by @dependabot in https://github.com/nextcloud/eslint-config/pull/410
|
|
18
|
+
|
|
19
|
+
## [v8.1.2](https://github.com/nextcloud/eslint-config/tree/v8.1.2) (2022-08-09)
|
|
20
|
+
|
|
21
|
+
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v8.0.0...v8.1.2)
|
|
6
22
|
|
|
7
23
|
**Dependency updates:**
|
|
8
24
|
|
package/index.js
CHANGED
|
@@ -31,11 +31,12 @@ module.exports = {
|
|
|
31
31
|
},
|
|
32
32
|
jsdoc: {
|
|
33
33
|
tagNamePreference: {
|
|
34
|
-
returns: 'return'
|
|
35
|
-
}
|
|
36
|
-
|
|
34
|
+
returns: 'return',
|
|
35
|
+
},
|
|
36
|
+
mode: 'typescript',
|
|
37
|
+
},
|
|
37
38
|
},
|
|
38
|
-
plugins: ['vue', '
|
|
39
|
+
plugins: ['vue', 'n', 'jsdoc'],
|
|
39
40
|
rules: {
|
|
40
41
|
// space before function ()
|
|
41
42
|
'space-before-function-paren': ['error', {
|
|
@@ -68,8 +69,8 @@ module.exports = {
|
|
|
68
69
|
// suggest using const
|
|
69
70
|
'prefer-const': 'error',
|
|
70
71
|
// es6 import/export and require
|
|
71
|
-
'
|
|
72
|
-
'
|
|
72
|
+
'n/no-unpublished-require': ['off'],
|
|
73
|
+
'n/no-unsupported-features/es-syntax': ['off'],
|
|
73
74
|
// PascalCase components names for vuejs
|
|
74
75
|
// https://vuejs.org/v2/style-guide/#Single-file-component-filename-casing-strongly-recommended
|
|
75
76
|
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
|
|
@@ -83,9 +84,7 @@ module.exports = {
|
|
|
83
84
|
// no ending html tag on a new line
|
|
84
85
|
'vue/html-closing-bracket-newline': ['error', { multiline: 'never' }],
|
|
85
86
|
// check vue files too
|
|
86
|
-
'
|
|
87
|
-
tryExtensions: ['.js', '.vue'],
|
|
88
|
-
}],
|
|
87
|
+
'n/no-missing-import': ['error', {}],
|
|
89
88
|
// code spacing with attributes
|
|
90
89
|
'vue/max-attributes-per-line': ['error', {
|
|
91
90
|
singleline: 3,
|
|
@@ -106,7 +105,7 @@ module.exports = {
|
|
|
106
105
|
'comma-dangle': ['warn', 'always-multiline'],
|
|
107
106
|
// Allow shallow import of @vue/test-utils and @testing-library/vue in order to be able to use it in
|
|
108
107
|
// the src folder
|
|
109
|
-
'
|
|
108
|
+
'n/no-unpublished-import': ['error', {
|
|
110
109
|
'allowModules': ['@vue/test-utils', '@testing-library/vue'],
|
|
111
110
|
}],
|
|
112
111
|
// require object literal shorthand syntax
|