migrate user model to new code style and es6

This commit is contained in:
Matteo Pagliazzi
2015-11-08 16:11:55 +01:00
parent f26737ab79
commit 4b60698527
3 changed files with 414 additions and 392 deletions

View File

@@ -22,8 +22,6 @@
"no-loop-func": 2,
"no-implicit-coercion": 2,
"no-implied-eval": 2,
"no-invalid-this": 2,
"no-magic-numbers": 2,
"no-native-reassign": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
@@ -97,7 +95,7 @@
"no-nested-ternary": 2,
"one-var": [2, "never"],
"operator-linebreak": [2, "after"],
"quote-props": [2, "as-needed", { "keywords": true }],
"quote-props": [2, "as-needed"],
"semi-spacing": [2, {"before": false, "after": true}],
"space-after-keywords": 2,
"space-before-blocks": 2,

View File

@@ -9,7 +9,10 @@ import eslint from 'gulp-eslint';
gulp.task('lint:server', () => {
// Ignore .coffee files
return gulp
.src(['./website/src/**/api-v3/**/*.js'])
.src([
'./website/src/**/api-v3/**/*.js',
'./website/src/models/user.js'
])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());

File diff suppressed because it is too large Load Diff