This repository has been archived by the owner on Aug 5, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace jshint with eslint + update code style
- Loading branch information
1 parent
ec98fe9
commit 5e7c692
Showing
272 changed files
with
20,561 additions
and
14,898 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// http://eslint.org/docs/user-guide/configuring | ||
|
||
module.exports = { | ||
root: true, | ||
extends: 'standard', | ||
|
||
"env": { | ||
"node": true, | ||
"mocha": true | ||
}, | ||
|
||
rules: { | ||
// allow paren-less arrow functions | ||
'arrow-parens': 0, | ||
// allow async-await | ||
'generator-star-spacing': 0, | ||
// allow debugger during development | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, | ||
|
||
'space-before-blocks': 0, | ||
'keyword-spacing': 0, | ||
'no-multiple-empty-lines': 0, | ||
'space-before-function-paren': [2, {anonymous: 'never', named: 'never' }], | ||
'semi': [2, 'never'] | ||
}, | ||
|
||
globals: { | ||
testMYSQL: true, | ||
afterMYSQL: true, | ||
beforeMYSQL: true, | ||
beforePG: true, | ||
afterPG: true, | ||
testPG: true, | ||
beforeSQLite: true, | ||
afterSQLite: true, | ||
testSQLite: true, | ||
beforeActiveDirectory: true, | ||
afterActiveDirectory: true, | ||
testActiveDirectory: true, | ||
LDAP_BASE: true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
var OpenRecord = require('openrecord'); | ||
var OpenRecord = require('openrecord') | ||
|
||
var store = new OpenRecord({ | ||
type: 'activedirectory', | ||
url: 'ldaps://domain.lan', | ||
user: 'Domain\\Administrator', | ||
password: 'password', | ||
base: 'dc=domain,dc=lan' | ||
}); | ||
}) | ||
|
||
|
||
store.ready(function(){ | ||
var User = store.Model('User'); | ||
var User = store.Model('User') | ||
|
||
User.find('cn=Administrator,cn=Users,dc=domain,dc=lan').include('groups').exec(function(admin){ | ||
console.log(admin); | ||
process.exit(0); | ||
}); | ||
|
||
}); | ||
console.log(admin) | ||
process.exit(0) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
* @example Model.exec | ||
*/ | ||
User.limit(1).exec(function(){ | ||
}); | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.