forked from jaredhanson/passport
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
5,440 additions
and
1,641 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.git | ||
coverage/ | ||
node_modules/ | ||
node_modules/ | ||
var/ | ||
docs/jsdoc |
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,24 +1,116 @@ | ||
module.exports = { | ||
env: { | ||
// jest: true, | ||
mocha: true, | ||
node: true, | ||
browser: false | ||
}, | ||
extends: [ | ||
'airbnb-base', | ||
'ash-nazg/sauron-node', | ||
// Override ash-nazg'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/**'], | ||
env: { | ||
// jest: true, | ||
mocha: true | ||
}, | ||
globals: { | ||
expect: 'readonly' | ||
}, | ||
rules: { | ||
'jsdoc/require-jsdoc': 'off' | ||
// 'jest/no-disabled-tests': [2], | ||
// 'jest/no-focused-tests': [2], | ||
// 'jest/no-identical-title': [2], | ||
// 'jest/prefer-to-have-length': [2], | ||
// 'jest/valid-expect': [2], | ||
} | ||
}, | ||
{ | ||
files: ['**/*.md'], | ||
rules: { | ||
'eol-last': 'off', | ||
'no-console': 'off', | ||
'no-undef': 'off', | ||
'no-unused-vars': 'warn', | ||
'padded-blocks': 'off', | ||
'import/unambiguous': 'off', | ||
'import/no-unresolved': 'off', | ||
'node/no-missing-import': 'off', | ||
'node/no-missing-require': 'off', | ||
'func-names': 'off', | ||
'import/newline-after-import': 'off', | ||
strict: 'off', | ||
// Disable until eslint-plugin-jsdoc may fix: https://github.com/gajus/eslint-plugin-jsdoc/issues/211 | ||
indent: 'off' | ||
} | ||
} | ||
], | ||
globals: { | ||
// By some ESLint bug, config overrides not working with globals | ||
require: 'readonly', | ||
module: 'readonly', | ||
exports: 'writable' | ||
}, | ||
plugins: [ | ||
// 'jest' | ||
], | ||
rules: { | ||
"comma-dangle": 0, | ||
"no-underscore-dangle": 0, | ||
"no-param-reassign": 0, | ||
"prefer-destructuring": 0, | ||
// 'jest/no-disabled-tests': [2], | ||
// 'jest/no-focused-tests': [2], | ||
// 'jest/no-identical-title': [2], | ||
// 'jest/prefer-to-have-length': [2], | ||
// 'jest/valid-expect': [2], | ||
'comma-dangle': 0, | ||
'no-underscore-dangle': 0, | ||
'no-param-reassign': 0, | ||
|
||
// Disable as middleware approach requires some callbacks | ||
'promise/prefer-await-to-callbacks': 0, | ||
|
||
// Disable until ready to tackle | ||
'require-jsdoc': 0, | ||
|
||
// Disable current preferences of ash-nazg | ||
'import/no-commonjs': 0, | ||
'node/exports-style': 0, | ||
|
||
// add back different or stricter rules from airbnb | ||
'object-curly-spacing': ['error', 'always'], | ||
'func-names': 'warn', | ||
'max-len': ['error', 100, 2, { | ||
ignoreUrls: true, | ||
ignoreComments: false, | ||
ignoreRegExpLiterals: true, | ||
ignoreStrings: true, | ||
ignoreTemplateLiterals: true, | ||
}], | ||
'space-before-function-paren': ['error', { | ||
anonymous: 'always', | ||
named: 'never', | ||
asyncArrow: 'always' | ||
}], | ||
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0 }], | ||
'arrow-parens': ['error', 'as-needed', { | ||
requireForBlockBody: true, | ||
}], | ||
'no-empty-function': ['error', { | ||
allow: [ | ||
'arrowFunctions', | ||
'functions', | ||
'methods', | ||
] | ||
}], | ||
'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: true }], | ||
'no-multi-assign': ['error'], | ||
'no-unused-expressions': ['error', { | ||
allowShortCircuit: false, | ||
allowTernary: false, | ||
allowTaggedTemplates: false, | ||
}] | ||
} | ||
}; | ||
}; |
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,5 +1,6 @@ | ||
docs/ | ||
reports/ | ||
var/ | ||
|
||
# Mac OS X | ||
.DS_Store | ||
|
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 |
---|---|---|
|
@@ -5,8 +5,8 @@ docs/ | |
examples/ | ||
reports/ | ||
test/ | ||
var/ | ||
|
||
.github/ | ||
.jshintrc | ||
.travis.yml | ||
.gitlab-ci.yml |
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
Oops, something went wrong.