Skip to content

Commit

Permalink
Merge pull request #276 from privacypass/v3-rc
Browse files Browse the repository at this point in the history
v3-rc into master
  • Loading branch information
ppopth committed Nov 18, 2021
2 parents 850d5bc + 46d08af commit 266a560
Show file tree
Hide file tree
Showing 99 changed files with 15,197 additions and 16,627 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

161 changes: 33 additions & 128 deletions .eslintrc.json
@@ -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
]
}
}
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/new-bug.md

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/action.yml
Expand Up @@ -3,9 +3,9 @@ name: PrivacyPass Challenge Extension

on:
push:
branches: [ master ]
branches: [ v3-rc ]
pull_request:
branches: [ master ]
branches: [ v3-rc ]

jobs:
testing:
Expand All @@ -21,10 +21,10 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Installing
run: make install
run: npm ci
- name: Linting
run: make lint
run: npm run lint
- name: Building
run: make build
run: npm run build
- name: Testing
run: make test-all
run: npm test
16 changes: 4 additions & 12 deletions .gitignore
@@ -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
7 changes: 7 additions & 0 deletions .prettierrc.json
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "all",
"printWidth": 100
}
13 changes: 13 additions & 0 deletions CONTRIBUTING.md
@@ -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).
26 changes: 0 additions & 26 deletions LICENSE

This file was deleted.

0 comments on commit 266a560

Please sign in to comment.