mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
migrate user model to new code style and es6
This commit is contained in:
@@ -22,8 +22,6 @@
|
|||||||
"no-loop-func": 2,
|
"no-loop-func": 2,
|
||||||
"no-implicit-coercion": 2,
|
"no-implicit-coercion": 2,
|
||||||
"no-implied-eval": 2,
|
"no-implied-eval": 2,
|
||||||
"no-invalid-this": 2,
|
|
||||||
"no-magic-numbers": 2,
|
|
||||||
"no-native-reassign": 2,
|
"no-native-reassign": 2,
|
||||||
"no-new-func": 2,
|
"no-new-func": 2,
|
||||||
"no-new-wrappers": 2,
|
"no-new-wrappers": 2,
|
||||||
@@ -97,7 +95,7 @@
|
|||||||
"no-nested-ternary": 2,
|
"no-nested-ternary": 2,
|
||||||
"one-var": [2, "never"],
|
"one-var": [2, "never"],
|
||||||
"operator-linebreak": [2, "after"],
|
"operator-linebreak": [2, "after"],
|
||||||
"quote-props": [2, "as-needed", { "keywords": true }],
|
"quote-props": [2, "as-needed"],
|
||||||
"semi-spacing": [2, {"before": false, "after": true}],
|
"semi-spacing": [2, {"before": false, "after": true}],
|
||||||
"space-after-keywords": 2,
|
"space-after-keywords": 2,
|
||||||
"space-before-blocks": 2,
|
"space-before-blocks": 2,
|
||||||
|
|||||||
@@ -9,7 +9,10 @@ import eslint from 'gulp-eslint';
|
|||||||
gulp.task('lint:server', () => {
|
gulp.task('lint:server', () => {
|
||||||
// Ignore .coffee files
|
// Ignore .coffee files
|
||||||
return gulp
|
return gulp
|
||||||
.src(['./website/src/**/api-v3/**/*.js'])
|
.src([
|
||||||
|
'./website/src/**/api-v3/**/*.js',
|
||||||
|
'./website/src/models/user.js'
|
||||||
|
])
|
||||||
.pipe(eslint())
|
.pipe(eslint())
|
||||||
.pipe(eslint.format())
|
.pipe(eslint.format())
|
||||||
.pipe(eslint.failAfterError());
|
.pipe(eslint.failAfterError());
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user