Skip to content

Commit

Permalink
fix: use eslint, and update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Radchenko committed Aug 14, 2018
1 parent 3c75080 commit d2cd853
Show file tree
Hide file tree
Showing 14 changed files with 3,960 additions and 346 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Strider Editor/IDE Settings
# This file is used to promote consistent source code standards
# amongst all Strider-CD contributors.
# More information can be found here: http://editorconfig.org/

# General Settings
root = true

# Settings for all files
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.hbs]
insert_final_newline = false

[*.{diff,md}]
trim_trailing_whitespace = false
20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
parserOptions: {
ecmaVersion: 6,
sourceType: 'script'
},
env: {
node: true,
es6: true
},
extends: 'eslint:recommended',
rules: {
indent: [2, 2],
quotes: [2, 'single'],
semi: [2, 'always'],
strict: [2, 'global'],
noConsole: 0,
noUnderscoreDangle: 0,
noConstantCondition: 0
}
};
7 changes: 0 additions & 7 deletions .jshintrc

This file was deleted.

7 changes: 4 additions & 3 deletions lib/basic.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
'use strict';

module.exports = {
webapp: webapp
}
};

function webapp(id, plugin, striderjson, context, done) {
if ('function' !== typeof plugin) {
throw new Error('Invalid basic plugin: ' + id + ' ' + plugin)
throw new Error('Invalid basic plugin: ' + id + ' ' + plugin);
}
plugin(context, done)
plugin(context, done);
}
Loading

0 comments on commit d2cd853

Please sign in to comment.