Skip to content

Commit

Permalink
Merge 6a72bc5 into e056ba7
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Jul 3, 2019
2 parents e056ba7 + 6a72bc5 commit cd8b6f3
Show file tree
Hide file tree
Showing 34 changed files with 3,886 additions and 699 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
coverage/
node_modules/
var/
docs/jsdoc
reports/
21 changes: 14 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@ module.exports = {
browser: false
},
extends: [
'@passport-next/eslint-config-passport-next/sauron-node.js',
// Override ash-nazg's current preference for ESM
'ash-nazg/sauron-node.js',
// Override eslint-config-passport-next's current preference for ESM
'plugin:node/recommended-script'
],
settings: {
polyfills: [
// Needing these for some reason to avoid an error
"Promise",
"Promise.reject",
"Promise.resolve"
]
},
overrides: [
{
files: ['test/**'],
files: ['test/**/*.test.js'],
env: {
// jest: true,
mocha: true
Expand All @@ -19,7 +27,7 @@ module.exports = {
expect: 'readonly'
},
rules: {
'jsdoc/require-jsdoc': 'off'
'jsdoc/require-jsdoc': 'off',
// 'jest/no-disabled-tests': [2],
// 'jest/no-focused-tests': [2],
// 'jest/no-identical-title': [2],
Expand Down Expand Up @@ -60,14 +68,13 @@ module.exports = {
'no-underscore-dangle': 0,
'no-param-reassign': 0,

// Disable until implementing promises and Node version supporting
// Disable as middleware approach requires some callbacks
'promise/prefer-await-to-callbacks': 0,
'promise/prefer-await-to-then': 0,

// Disable until ready to tackle
'require-jsdoc': 0,

// Disable current preferences of ash-nazg
// Disable current preferences of eslint-config-passport-next
'import/no-commonjs': 0,
'node/exports-style': 0,

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
reports/
docs/
docs/jsdoc
var/


Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ LCOVFILE = ./reports/coverage/lcov.info

MOCHAFLAGS = --require ./test/bootstrap/node

COVDIR = ./var/cov/*

view-docs:
open ./docs/index.html

view-cov:
open ./var/cov/index.html

clean-cov:
-rm -r $(COVDIR)

clean: clean-docs clean-cov
-rm -r $(REPORTSDIR)

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Passport-Next/Passport
# Passport-Next/Passport

Status:
[![NPM version](https://img.shields.io/npm/v/@passport-next/passport.svg)](https://www.npmjs.com/package/@passport-next/passport)
Expand Down Expand Up @@ -44,4 +44,3 @@ We support all [node versions](https://github.com/nodejs/Release) supported by t
## Contributing

Please see [CONTRIBUTING.md](https://github.com/passport-next/passport/blob/master/CONTRIBUTING.md)

32 changes: 32 additions & 0 deletions docs/jsdoc-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
'use strict';

module.exports = {
recurseDepth: 10,
source: {
exclude: [
'node_modules',
'dist',
'var',
'coverage',
'test'
]
// excludePattern: ''
},
sourceType: 'module',
tags: {
allowUnknownTags: false
},
templates: {
cleverLinks: true,
monospaceLinks: false /* ,
default: {
layoutFile: 'docs/layout.tmpl'
} */
},
opts: {
recurse: true,
verbose: true,
destination: 'docs/jsdoc'
// tutorials: 'docs/tutorials'
}
};

0 comments on commit cd8b6f3

Please sign in to comment.