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 #276 from privacypass/v3-rc
v3-rc into master
- Loading branch information
Showing
99 changed files
with
15,197 additions
and
16,627 deletions.
There are no files selected for viewing
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,140 +1,45 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"jest": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 8, | ||
"sourceType": "script" | ||
}, | ||
"extends": ["eslint:recommended", "google"], | ||
"globals": { | ||
"activeConfig": true, | ||
"assert": true, | ||
"ASN1": true, | ||
"attemptRedeem": true, | ||
"beforeRequest": true, | ||
"beforeSendHeaders": true, | ||
"blindPoint": true, | ||
"browser": true, | ||
"Buffer": true, | ||
"BuildRedeemHeader": true, | ||
"cachedCommitmentsKey": true, | ||
"CF_CONFIG_ID": true, | ||
"checkCookies": true, | ||
"CHL_BYPASS_RESPONSE": true, | ||
"CHL_BYPASS_SUPPORT": true, | ||
"chlCaptchaDomain": true, | ||
"chlClearanceCookie": true, | ||
"chrome": true, | ||
"clearCachedCommitments": true, | ||
"clear": true, | ||
"commitmentsKey": true, | ||
"committedNavigation": true, | ||
"CONFIG_ID": true, | ||
"CONFIGURATION_URL": true, | ||
"countStoredTokens": true, | ||
"createShake256": true, | ||
"dev": true, | ||
"extVersion": true, | ||
"futureReload": true, | ||
"GenerateNewTokens": true, | ||
"getActiveECSettings": true, | ||
"getBigNumFromBytes": true, | ||
"getVerificationKey": true, | ||
"getConfigForId": true, | ||
"getConfigId": true, | ||
"getConfigName": true, | ||
"getCurvePoints": true, | ||
"getSpendFlag": true, | ||
"getTabId": true, | ||
"getTarget": true, | ||
"get": true, | ||
"h2cParams": true, | ||
"h2Curve": true, | ||
"handleCompletion": true, | ||
"handleMessage": true, | ||
"HC_CONFIG_ID": true, | ||
"initECSettings": true, | ||
"isErrorPage": true, | ||
"isFaviconUrl": true, | ||
"issueActionUrls": true, | ||
"LISTENER_URLS": true, | ||
"loadTokens": true, | ||
"maxTokens": true, | ||
"newRandomPoint": true, | ||
"parseKeys": true, | ||
"patternToRegExp": true, | ||
"PEM": true, | ||
"PPConfigs": true, | ||
"processConfigPatches": true, | ||
"processHeaders": true, | ||
"processRedirect": true, | ||
"redeemMethod": true, | ||
"reloadBrowserTab": true, | ||
"reloadOnSign": true, | ||
"reloadTabForCookie": true, | ||
"requestIdentifiers": true, | ||
"resetSpendVars": true, | ||
"retrieveConfiguration": true, | ||
"sec1DecodeFromBase64": true, | ||
"sec1DecodeFromBytes": true, | ||
"sec1EncodeToBase64": true, | ||
"sec1Encode": true, | ||
"sendH2CParams": true, | ||
"sendXhrSignReq": true, | ||
"sentTokens": true, | ||
"setFutureReload": true, | ||
"setSpendFlag": true, | ||
"set": true, | ||
"signReqCF": true, | ||
"signReqHC": true, | ||
"signResponseFMT": true, | ||
"spentTab": true, | ||
"storageKeyCount": true, | ||
"storageKeyTokens": true, | ||
"storedCommitments": true, | ||
"storeNewTokens": true, | ||
"storeTokens": true, | ||
"timeSinceLastResp": true, | ||
"tokensPerRequest": true, | ||
"unblindPoint": true, | ||
"updateBrowserTab": true, | ||
"UpdateCallback": true, | ||
"updateIcon": true, | ||
"validConfigIds": true, | ||
"validRedemptionMethods": true, | ||
"verifyConfiguration": true, | ||
"verifyProof": true, | ||
"xhrDone": true, | ||
"xhrGoodStatus": true | ||
"ecmaVersion": 2020, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"security", | ||
"prettier" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:security/recommended", | ||
"plugin:prettier/recommended", | ||
"prettier" | ||
], | ||
"rules": { | ||
"new-cap": 0, | ||
"no-trailing-spaces": "error", | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
"@typescript-eslint/member-delimiter-style": 0, | ||
"@typescript-eslint/no-namespace": [ | ||
"warn" | ||
], | ||
"quotes": [ | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
"double", | ||
{ "allowTemplateLiterals": true } | ||
], | ||
"no-unused-vars": [ | ||
"error", { | ||
"args": "none" | ||
{ | ||
"argsIgnorePattern": "^_" | ||
} | ||
], | ||
"no-case-declarations": 0, | ||
"no-console": [ | ||
"error", { | ||
"allow": ["error", "warn"] | ||
"error", | ||
{ | ||
"allow": [ | ||
"warn", | ||
"error" | ||
] | ||
} | ||
], | ||
"indent": ["error", 4, {"SwitchCase": 1}], | ||
"max-len": 0, | ||
"no-redeclare": 0, | ||
"prefer-const": 0 | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
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,12 +1,4 @@ | ||
.DS_Store | ||
.*.sw? | ||
.sw? | ||
node_modules/ | ||
yarn-error.log | ||
coverage-final.json | ||
lcov.info | ||
coverage/ | ||
dist/ | ||
*.zip | ||
build.js | ||
test.js | ||
*.swp | ||
/node_modules | ||
/dist | ||
/lib |
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,7 @@ | ||
{ | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 4, | ||
"trailingComma": "all", | ||
"printWidth": 100 | ||
} |
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,13 @@ | ||
## Contribution Guidelines | ||
|
||
### Code Style | ||
|
||
Code is written in TypeScript and is automatically formatted with prettier. | ||
|
||
``` | ||
$ npm run lint | ||
``` | ||
|
||
### Naming convention | ||
|
||
It is recommended to follow style guide for [TypeScript](https://google.github.io/styleguide/tsguide.html). |
Oops, something went wrong.