Skip to content

Commit

Permalink
fix: lint fixes (js/scss)
Browse files Browse the repository at this point in the history
  • Loading branch information
jankapunkt committed Mar 14, 2024
1 parent 4bac412 commit 87985ba
Show file tree
Hide file tree
Showing 10 changed files with 343 additions and 136 deletions.
2 changes: 1 addition & 1 deletion .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jkuester:autoform-password2@2.1.0
jquery@3.0.0
launch-screen@1.3.0
leaonline:method-factory@1.1.1
leaonline:oauth2-server@5.0.0
leaonline:oauth2-server@5.1.0
leaonline:ratelimit-factory@1.0.0
leaonline:testing@1.0.0
leaonline:theme@1.1.0
Expand Down
2 changes: 1 addition & 1 deletion imports/api/accounts/schema/getResetPasswordSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const getResetPasswordSchema = (email) => {
label: () => i18n.get('user.password'),
autoform: {
type: 'password2',
rules: rules,
rules,
autocomplete: true,
autofocus: true,
userIcon: icon
Expand Down
4 changes: 2 additions & 2 deletions imports/infrastructure/mixins/environmentExtensionMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export const environmentExtensionMixin = function (options) {
const envOptions = env || {}
const { devOnly = true } = envOptions

const debug = createLog(options.name, { type: 'debug', devOnly: devOnly })
const error = createLog(options.name, { type: 'error', devOnly: devOnly })
const debug = createLog(options.name, { type: 'debug', devOnly })
const error = createLog(options.name, { type: 'error', devOnly })
const runFct = options.run

options.run = function run (...args) {
Expand Down
2 changes: 1 addition & 1 deletion imports/startup/server/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ const de = { ...i18nDE, ...emailTemplatesLanguage }

i18n.load({
settings: i18nConfig,
de: de
de
})
4 changes: 2 additions & 2 deletions imports/startup/server/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const oauth2server = new OAuth2Server({
clientsCollectionName: model.clientsCollectionName,
authCodesCollection: new Mongo.Collection(null)
},
routes: routes,
debug: debug
routes,
debug
})

oauth2server.validateUser(function (userData) {
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/admin/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Template.admin.onCreated(function () {

callMethod({
name: Admin.methods.getUsers,
args: args,
args,
failure: err => instance.state.set({ error: toSerializedError(err) }),
success: users => {
users.forEach(user => {
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/oauth/login/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Template.login.events({
const loginFormValues = AutoForm.getFormValues('loginForm')
const { email } = loginFormValues.insertDoc
templateInstance.state.set({
email: email,
email,
viewState: ViewStates.forgotPassword,
errors: null
})
Expand Down
4 changes: 2 additions & 2 deletions lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ then
meteor npm run lint:style
fi


meteor npm run lint:markdown
# TODO figure out why markdownlint did no major bump yet migrated to ESM
# meteor npm run lint:markdown
Loading

0 comments on commit 87985ba

Please sign in to comment.