Skip to content

Commit 08bc3b7

Browse files
dependabot-preview[bot]skjnldsv
authored andcommitted
Bump eslint-plugin-node from 9.2.0 to 10.0.0
Bumps [eslint-plugin-node](https://github.com/mysticatea/eslint-plugin-node) from 9.2.0 to 10.0.0. - [Release notes](https://github.com/mysticatea/eslint-plugin-node/releases) - [Commits](mysticatea/eslint-plugin-node@v9.2.0...v10.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
1 parent 8200272 commit 08bc3b7

File tree

14 files changed

+97
-141
lines changed

14 files changed

+97
-141
lines changed

.eslintrc.js

Lines changed: 4 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,8 @@
11
module.exports = {
2-
root: true,
3-
env: {
4-
browser: true,
5-
es6: true,
6-
node: true,
7-
jest: true
8-
},
92
globals: {
10-
$: true,
11-
appVersion: true,
12-
t: true,
13-
n: true,
14-
OC: true,
15-
OCA: true,
16-
Vue: true,
17-
Cypress: true,
18-
cy: true
19-
},
20-
parserOptions: {
21-
parser: 'babel-eslint',
22-
ecmaVersion: 6
3+
appVersion: true
234
},
245
extends: [
25-
'eslint:recommended',
26-
'plugin:import/errors',
27-
'plugin:import/warnings',
28-
'plugin:node/recommended',
29-
'plugin:vue/essential',
30-
'plugin:vue/recommended',
31-
'standard'
32-
],
33-
settings: {
34-
'import/resolver': {
35-
webpack: {
36-
config: 'webpack.common.js'
37-
},
38-
node: {
39-
paths: ['src'],
40-
extensions: ['.js', '.vue']
41-
}
42-
}
43-
},
44-
plugins: ['vue', 'node'],
45-
rules: {
46-
// space before function ()
47-
'space-before-function-paren': ['error', 'never'],
48-
// curly braces always space
49-
'object-curly-spacing': ['error', 'always'],
50-
// stay consistent with array brackets
51-
'array-bracket-newline': ['error', 'consistent'],
52-
// 1tbs brace style
53-
'brace-style': 'error',
54-
// tabs only
55-
indent: ['error', 'tab'],
56-
'no-tabs': 0,
57-
'vue/html-indent': ['error', 'tab'],
58-
// only debug console
59-
'no-console': ['error', { allow: ['error', 'warn', 'info', 'debug'] }],
60-
// classes blocks
61-
'padded-blocks': ['error', { classes: 'always' }],
62-
// always have the operator in front
63-
'operator-linebreak': ['error', 'before'],
64-
// ternary on multiline
65-
'multiline-ternary': ['error', 'always-multiline'],
66-
// force proper JSDocs
67-
'valid-jsdoc': [2, {
68-
'prefer': {
69-
'return': 'returns'
70-
},
71-
'requireReturn': false,
72-
'requireReturnDescription': false
73-
}],
74-
// es6 import/export and require
75-
'node/no-unpublished-require': ['off'],
76-
'node/no-unsupported-features/es-syntax': ['off'],
77-
// kebab case components for vuejs
78-
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
79-
// space before self-closing elements
80-
'vue/html-closing-bracket-spacing': 'error',
81-
// no ending html tag on a new line
82-
'vue/html-closing-bracket-newline': ['error', { multiline: 'never' }],
83-
// code spacing with attributes
84-
'vue/max-attributes-per-line': [
85-
'error',
86-
{
87-
singleline: 3,
88-
multiline: {
89-
max: 3,
90-
allowFirstLine: true
91-
}
92-
}
93-
]
94-
}
95-
}
6+
'nextcloud'
7+
]
8+
};

cypress/support/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Cypress.Commands.add('login', (user, password, route = '/apps/files') => {
3636
cy.visit(route)
3737
cy.get('input[name=user]').type(user)
3838
cy.get('input[name=password]').type(password)
39-
cy.get('input#submit').click()
39+
cy.get('#submit-wrapper input[type=submit]').click()
4040
cy.url().should('include', route)
4141
})
4242

js/viewer.js

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/viewer.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 43 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,18 @@
5757
"@babel/preset-env": "^7.6.2",
5858
"babel-eslint": "^10.0.3",
5959
"babel-loader": "^8.0.6",
60+
"browserslist-config-nextcloud": "0.0.1",
6061
"css-loader": "^3.2.0",
6162
"cypress": "^3.4.1",
6263
"cypress-image-snapshot": "^3.1.1",
6364
"eslint": "^5.16.0",
65+
"eslint-config-nextcloud": "0.0.5",
6466
"eslint-config-standard": "^12.0.0",
6567
"eslint-import-resolver-webpack": "^0.11.1",
6668
"eslint-loader": "^3.0.0",
6769
"eslint-plugin-import": "^2.18.2",
68-
"eslint-plugin-node": "^9.2.0",
70+
"eslint-plugin-nextcloud": "^0.3.0",
71+
"eslint-plugin-node": "^10.0.0",
6972
"eslint-plugin-promise": "^4.2.1",
7073
"eslint-plugin-standard": "^4.0.1",
7174
"eslint-plugin-vue": "^5.2.3",

src/components/Images.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import axios from 'axios'
4545
import Vue from 'vue'
4646
import AsyncComputed from 'vue-async-computed'
4747
48-
import Mime from 'Mixins/Mime'
48+
import Mime from '../mixins/Mime'
4949
5050
Vue.use(AsyncComputed)
5151

src/components/Videos.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
</template>
5454

5555
<script>
56-
import Mime from 'Mixins/Mime'
57-
import PreviewUrl from 'Mixins/PreviewUrl'
56+
import Mime from '../mixins/Mime'
57+
import PreviewUrl from '../mixins/PreviewUrl'
5858
5959
const liveExt = ['jpg', 'jpeg', 'png']
6060

src/main.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@
2020
*
2121
*/
2222
import Vue from 'vue'
23-
import ViewerComponent from 'Views/Viewer'
24-
import ViewerService from 'Services/Viewer'
23+
import ViewerComponent from './views/Viewer'
24+
import ViewerService from './services/Viewer'
2525

2626
import { generateFilePath } from 'nextcloud-server/dist/router'
2727

28-
Vue.prototype.$ = $
29-
3028
Vue.prototype.t = t
3129
Vue.prototype.n = n
3230

@@ -58,6 +56,10 @@ document.body.appendChild(ViewerRoot)
5856
// Init vue
5957
export default new Vue({
6058
el: '#viewer',
59+
// When debugging the page, it's easier to find which app
60+
// is which. Especially when there is multiple apps
61+
// roots mounted o the same page!
62+
// eslint-disable-next-line vue/match-component-file-name
6163
name: 'ViewerRoot',
6264
render: h => h(ViewerComponent)
6365
})

src/models/images.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
*/
2222

23-
import Images from 'Components/Images'
23+
import Images from '../components/Images'
2424

2525
export default {
2626
id: 'images',

0 commit comments

Comments
 (0)