forked from verdaccio/monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request verdaccio#1 from ayusharma/es6-migration
ES6 migration
- Loading branch information
1 parent
cf977ae
commit fcef4de
Showing
24 changed files
with
1,110 additions
and
6,901 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 |
---|---|---|
|
@@ -9,9 +9,7 @@ | |
# Created to work with [email protected] | ||
# | ||
|
||
extends: ["eslint:recommended", "google", "plugin:flowtype/recommended", "plugin:jest/recommended"] | ||
|
||
plugins: ["flowtype", "jest"] | ||
extends: ["plugin:prettier/recommended"] | ||
|
||
settings: | ||
flowtype: | ||
|
@@ -24,7 +22,7 @@ env: | |
browser: true | ||
es6: true | ||
mocha: true | ||
jest/globals: true | ||
jest: true | ||
|
||
parserOptions: | ||
sourceType: "module" | ||
|
@@ -33,6 +31,7 @@ parserOptions: | |
modules: true | ||
|
||
rules: | ||
prettier/prettier: 2 | ||
strict: 0 | ||
# useful to have in node.js, | ||
# if you're sure you don't need to handle error, rename it to "_err" | ||
|
@@ -99,7 +98,7 @@ rules: | |
new-cap: 2 | ||
|
||
# readbility is important, no multiple inline declarations | ||
one-var: 2 | ||
one-var: 0 | ||
|
||
# console not allowed unless for testing | ||
no-console: [2, {"allow": ["log", "warn"]}] |
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,6 +1,6 @@ | ||
npm-debug.log | ||
.DS_Store | ||
|
||
package-lock.json | ||
_storage/ | ||
lib/ | ||
node_modules/ | ||
|
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,9 @@ | ||
{ | ||
"useTabs": false, | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"parser": "flow", | ||
"semi": true | ||
} |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
# htpasswd auth plugin | ||
|
||
[![CircleCI](https://circleci.com/gh/ayusharma/verdaccio-htpasswd.svg?style=svg)](https://circleci.com/gh/ayusharma/verdaccio-htpasswd) [![codecov](https://codecov.io/gh/ayusharma/verdaccio-htpasswd/branch/master/graph/badge.svg)](https://codecov.io/gh/ayusharma/verdaccio-htpasswd) | ||
|
||
An authentication plugin for the Verdaccio. |
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
32 changes: 32 additions & 0 deletions
32
plugins/verdaccio-htpasswd/flow-typed/npm/apache-md5_vx.x.x.js
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,32 @@ | ||
// flow-typed signature: 3e39d8c93a85c74b793f281d10e89784 | ||
// flow-typed version: <<STUB>>/apache-md5_v1.1.2/flow_v0.52.0 | ||
|
||
/** | ||
* This is an autogenerated libdef stub for: | ||
* | ||
* 'apache-md5' | ||
* | ||
* Fill this stub out by replacing all the `any` types. | ||
* | ||
* Once filled out, we encourage you to share your work with the | ||
* community by sending a pull request to: | ||
* https://github.com/flowtype/flow-typed | ||
*/ | ||
|
||
declare module 'apache-md5' { | ||
declare module.exports: any; | ||
} | ||
|
||
/** | ||
* We include stubs for each file inside this npm package in case you need to | ||
* require those files directly. Feel free to delete any files that aren't | ||
* needed. | ||
*/ | ||
declare module 'apache-md5/src/index' { | ||
declare module.exports: any; | ||
} | ||
|
||
// Filename aliases | ||
declare module 'apache-md5/src/index.js' { | ||
declare module.exports: $Exports<'apache-md5/src/index'>; | ||
} |
46 changes: 46 additions & 0 deletions
46
plugins/verdaccio-htpasswd/flow-typed/npm/unix-crypt-td-js_vx.x.x.js
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,46 @@ | ||
// flow-typed signature: 44a338cd9ebec553aabfb243383f3698 | ||
// flow-typed version: <<STUB>>/unix-crypt-td-js_v1.0.0/flow_v0.52.0 | ||
|
||
/** | ||
* This is an autogenerated libdef stub for: | ||
* | ||
* 'unix-crypt-td-js' | ||
* | ||
* Fill this stub out by replacing all the `any` types. | ||
* | ||
* Once filled out, we encourage you to share your work with the | ||
* community by sending a pull request to: | ||
* https://github.com/flowtype/flow-typed | ||
*/ | ||
|
||
declare module 'unix-crypt-td-js' { | ||
declare module.exports: any; | ||
} | ||
|
||
/** | ||
* We include stubs for each file inside this npm package in case you need to | ||
* require those files directly. Feel free to delete any files that aren't | ||
* needed. | ||
*/ | ||
declare module 'unix-crypt-td-js/dist/unix-crypt-td.min' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'unix-crypt-td-js/src/unix-crypt-td' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'unix-crypt-td-js/test/unix-crypt-td-test' { | ||
declare module.exports: any; | ||
} | ||
|
||
// Filename aliases | ||
declare module 'unix-crypt-td-js/dist/unix-crypt-td.min.js' { | ||
declare module.exports: $Exports<'unix-crypt-td-js/dist/unix-crypt-td.min'>; | ||
} | ||
declare module 'unix-crypt-td-js/src/unix-crypt-td.js' { | ||
declare module.exports: $Exports<'unix-crypt-td-js/src/unix-crypt-td'>; | ||
} | ||
declare module 'unix-crypt-td-js/test/unix-crypt-td-test.js' { | ||
declare module.exports: $Exports<'unix-crypt-td-js/test/unix-crypt-td-test'>; | ||
} |
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,14 +1,8 @@ | ||
/* eslint comma-dangle: 0 */ | ||
|
||
module.exports = { | ||
'name': 'htpasswd-auth-jest', | ||
'jest': { | ||
'verbose': true | ||
}, | ||
'collectCoverage': true, | ||
'coveragePathIgnorePatterns': [ | ||
'node_modules', | ||
'_storage', | ||
'fixtures' | ||
] | ||
name: 'htpasswd-auth-jest', | ||
verbose: true, | ||
collectCoverage: true, | ||
coveragePathIgnorePatterns: ['node_modules', '_storage', 'fixtures', 'lib'] | ||
}; |
Oops, something went wrong.