зеркало из https://github.com/nextcloud/appstore.git
turn on eslint for new code
This commit is contained in:
Родитель
9c46b41cf8
Коммит
afd0d724a1
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"jasmine": true,
|
||||
"es6": true
|
||||
},
|
||||
"extends": "eslint:recommended",
|
||||
|
|
5
Makefile
5
Makefile
|
@ -13,14 +13,15 @@ eslint=node_modules/eslint/bin/eslint.js
|
|||
.PHONY: lint
|
||||
lint:
|
||||
$(jshint) $(CURDIR)/nextcloudappstore/core/static/assets/js
|
||||
#$(eslint) $(CURDIR)/nextcloudappstore/core/static/assets/js
|
||||
$(eslint) $(CURDIR)/nextcloudappstore/core/static/assets/js/app
|
||||
$(eslint) $(CURDIR)/nextcloudappstore/core/static/assets/js/test
|
||||
$(pycodestyle) $(CURDIR)/nextcloudappstore --exclude=migrations
|
||||
$(mypy) --silent-imports --disallow-untyped-defs $(CURDIR)/nextcloudappstore/core/api/v1/release
|
||||
$(mypy) --silent-imports --disallow-untyped-defs $(CURDIR)/nextcloudappstore/core/certificate
|
||||
$(npm) test
|
||||
|
||||
.PHONY: test
|
||||
test: lint
|
||||
$(npm) test
|
||||
$(manage) test --settings nextcloudappstore.settings.development
|
||||
|
||||
.PHONY: resetup
|
||||
|
|
|
@ -3,7 +3,7 @@ module.exports = function (config) {
|
|||
basePath: 'nextcloudappstore/core/static/assets/js/',
|
||||
frameworks: ['jasmine'],
|
||||
files: [
|
||||
'Http.js',
|
||||
'app/**/*.js',
|
||||
'test/**/*Spec.js',
|
||||
],
|
||||
exclude: [],
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
exports.parseJSONError = (errorJSON) => {
|
||||
const result = {
|
||||
"global": [],
|
||||
"fields": {}
|
||||
'global': [],
|
||||
'fields': {}
|
||||
};
|
||||
|
||||
if (Array.isArray(errorJSON)) {
|
Загрузка…
Ссылка в новой задаче