diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-03-17 08:25:31 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-03-17 13:03:38 +0100 |
commit | 5d9bb5e2471b5266496a1bfd0af11e766de917c2 (patch) | |
tree | 0b7d4017098209ac3b6e4df3938257d91b9d8194 /core | |
parent | fb183b457c2befbc3ab04b0cb070aa1e300443c6 (diff) | |
download | nextcloud-server-5d9bb5e2471b5266496a1bfd0af11e766de917c2.tar.gz nextcloud-server-5d9bb5e2471b5266496a1bfd0af11e766de917c2.zip |
Lint fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/src/tests/.eslintrc.js | 9 | ||||
-rw-r--r-- | core/src/tests/OC/requesttoken.spec.js | 10 | ||||
-rw-r--r-- | core/src/tests/setup.js | 4 | ||||
-rw-r--r-- | core/src/views/Login.vue | 4 | ||||
-rw-r--r-- | core/webpack.js | 2 | ||||
-rw-r--r-- | core/webpack.test.js | 6 |
6 files changed, 22 insertions, 13 deletions
diff --git a/core/src/tests/.eslintrc.js b/core/src/tests/.eslintrc.js new file mode 100644 index 00000000000..451ef6bdfa2 --- /dev/null +++ b/core/src/tests/.eslintrc.js @@ -0,0 +1,9 @@ +module.exports = { + globals: { + jsdom: true, + sinon: true, + }, + rules: { + "node/no-unpublished-import": 'off' + } +} diff --git a/core/src/tests/OC/requesttoken.spec.js b/core/src/tests/OC/requesttoken.spec.js index d19a4b8e9c8..5506a4f72cc 100644 --- a/core/src/tests/OC/requesttoken.spec.js +++ b/core/src/tests/OC/requesttoken.spec.js @@ -1,4 +1,4 @@ -/* +/** * @copyright 2020 Christoph Wurst <christoph@winzerhof-wurst.at> * * @author 2020 Christoph Wurst <christoph@winzerhof-wurst.at> @@ -19,10 +19,10 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -import {JSDOM} from 'jsdom' -import {subscribe, unsubscribe} from '@nextcloud/event-bus' +import { JSDOM } from 'jsdom' +import { subscribe, unsubscribe } from '@nextcloud/event-bus' -import {manageToken, setToken} from '../../OC/requesttoken' +import { manageToken, setToken } from '../../OC/requesttoken' describe('request token', () => { @@ -66,7 +66,7 @@ describe('request token', () => { it('fires off an event for @nextcloud/auth', () => { setToken('123') - expect(listener).to.have.been.calledWith({token: '123'}) + expect(listener).to.have.been.calledWith({ token: '123' }) }) }) diff --git a/core/src/tests/setup.js b/core/src/tests/setup.js index bec4e11eaea..2e8ab27775d 100644 --- a/core/src/tests/setup.js +++ b/core/src/tests/setup.js @@ -21,8 +21,8 @@ require('jsdom-global')() const chai = require('chai') -var sinon = require('sinon') -var sinonChai = require('sinon-chai'); +const sinon = require('sinon') +const sinonChai = require('sinon-chai') chai.use(sinonChai) global.expect = chai.expect diff --git a/core/src/views/Login.vue b/core/src/views/Login.vue index c75ae98030b..304bc883557 100644 --- a/core/src/views/Login.vue +++ b/core/src/views/Login.vue @@ -164,8 +164,8 @@ export default { }, hideLoginForm: { type: Boolean, - default: false - } + default: false, + }, }, data() { return { diff --git a/core/webpack.js b/core/webpack.js index cf9c332ead0..3fc3290d470 100644 --- a/core/webpack.js +++ b/core/webpack.js @@ -33,7 +33,7 @@ module.exports = [ }, plugins: [ new webpack.ProvidePlugin({ - '_': 'underscore', + _: 'underscore', $: 'jquery', jQuery: 'jquery', }), diff --git a/core/webpack.test.js b/core/webpack.test.js index f87d8bd9d92..1fe0c2509db 100644 --- a/core/webpack.test.js +++ b/core/webpack.test.js @@ -19,13 +19,13 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -const { merge } = require('webpack-merge'); -const common = require('./webpack.js'); +const { merge } = require('webpack-merge') +const common = require('./webpack.js') // webpack.config.js const nodeExternals = require('webpack-node-externals') module.exports = merge(common[0], { mode: 'development', devtool: 'inline-cheap-module-source-map', - externals: [nodeExternals()] + externals: [nodeExternals()], }) |