@nextcloud/eslint-config 8.1.1 → 8.1.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/index.js +5 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -35,7 +35,7 @@ module.exports = {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
plugins: ['vue', '
|
|
38
|
+
plugins: ['vue', 'n', 'jsdoc'],
|
|
39
39
|
rules: {
|
|
40
40
|
// space before function ()
|
|
41
41
|
'space-before-function-paren': ['error', {
|
|
@@ -68,8 +68,8 @@ module.exports = {
|
|
|
68
68
|
// suggest using const
|
|
69
69
|
'prefer-const': 'error',
|
|
70
70
|
// es6 import/export and require
|
|
71
|
-
'
|
|
72
|
-
'
|
|
71
|
+
'n/no-unpublished-require': ['off'],
|
|
72
|
+
'n/no-unsupported-features/es-syntax': ['off'],
|
|
73
73
|
// PascalCase components names for vuejs
|
|
74
74
|
// https://vuejs.org/v2/style-guide/#Single-file-component-filename-casing-strongly-recommended
|
|
75
75
|
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
|
|
@@ -83,9 +83,7 @@ module.exports = {
|
|
|
83
83
|
// no ending html tag on a new line
|
|
84
84
|
'vue/html-closing-bracket-newline': ['error', { multiline: 'never' }],
|
|
85
85
|
// check vue files too
|
|
86
|
-
'
|
|
87
|
-
tryExtensions: ['.js', '.vue'],
|
|
88
|
-
}],
|
|
86
|
+
'n/no-missing-import': ['error', {}],
|
|
89
87
|
// code spacing with attributes
|
|
90
88
|
'vue/max-attributes-per-line': ['error', {
|
|
91
89
|
singleline: 3,
|
|
@@ -106,7 +104,7 @@ module.exports = {
|
|
|
106
104
|
'comma-dangle': ['warn', 'always-multiline'],
|
|
107
105
|
// Allow shallow import of @vue/test-utils and @testing-library/vue in order to be able to use it in
|
|
108
106
|
// the src folder
|
|
109
|
-
'
|
|
107
|
+
'n/no-unpublished-import': ['error', {
|
|
110
108
|
'allowModules': ['@vue/test-utils', '@testing-library/vue'],
|
|
111
109
|
}],
|
|
112
110
|
// require object literal shorthand syntax
|