-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix formatting and linting issues (#1772)
* chore: fix formatting and linting issues * chore: remove unused declarations rule * fix: add missing dev dependency * fix: remove eslint rule consistent-return * fix: remove eslint rule consistent-destructuring * removed done from test block * chore(test): update the coverage directory paths in jest * refactor: remove unnecessary condition in if block * chore: ignore reports * chore: clean up gitignore * chore: add more tooling for commit guard rails * chore: add missing file * chore: add prepare script * chore: ignore unwanted files in eslint config * chore: empty commit to trigger automated actions Co-authored-by: Jayc <[email protected]>
- Loading branch information
1 parent
3676c45
commit fb8b818
Showing
898 changed files
with
31,196 additions
and
43,317 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,4 +1,17 @@ | ||
__tests__/* | ||
__mocks__/* | ||
logger.js | ||
build.js | ||
node_modules/ | ||
.husky/ | ||
reports/ | ||
*.md | ||
*.test.js | ||
test/**/*.js | ||
src/util/lodash-es-core.js | ||
**/ivm*.js | ||
**/custom*.js | ||
**/warehouse/ | ||
**/lambda/ | ||
**/openfaas/ | ||
src/util/url-search-params.min.js | ||
src/logger.js | ||
src/util/eventValidations.js | ||
**/trackingPlan* | ||
src/v0/destinations/personalize/scripts/ |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"env": { | ||
"node": true, | ||
"es2021": true, | ||
"jest": true, | ||
"commonjs": true | ||
}, | ||
"extends": ["airbnb-base", "prettier", "plugin:json/recommended"], | ||
"plugins": ["unicorn"], | ||
"globals": {}, | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"unicorn/filename-case": [ | ||
"off", | ||
{ "cases": { "camelCase": true, "pascalCase": true, "kebabCase": true } } | ||
], | ||
"unicorn/no-instanceof-array": "error", | ||
"unicorn/no-static-only-class": "error", | ||
"unicorn/consistent-destructuring": "error", | ||
"unicorn/better-regex": "error", | ||
"unicorn/no-for-loop": "error", | ||
"unicorn/prefer-array-some": "error", | ||
"unicorn/explicit-length-check": "error", | ||
"unicorn/prefer-array-find": "error", | ||
"unicorn/no-lonely-if": "error", | ||
"unicorn/prefer-includes": "error", | ||
"unicorn/prefer-array-flat-map": "error", | ||
"unicorn/no-useless-spread": "error", | ||
"unicorn/no-useless-length-check": "error", | ||
"unicorn/prefer-export-from": "error", | ||
"import/no-dynamic-require": "warn", | ||
"no-param-reassign": "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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Handle stale PRs | |
|
||
on: | ||
schedule: | ||
- cron: "42 1 * * *" | ||
- cron: '42 1 * * *' | ||
|
||
jobs: | ||
prs: | ||
|
@@ -17,10 +17,10 @@ jobs: | |
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
operations-per-run: 200 | ||
stale-pr-message: "This PR is considered to be stale. It has been open 20 days with no further activity thus it is going to be closed in 7 days. To avoid such a case please consider removing the stale label manually or add a comment to the PR." | ||
stale-pr-message: 'This PR is considered to be stale. It has been open 20 days with no further activity thus it is going to be closed in 7 days. To avoid such a case please consider removing the stale label manually or add a comment to the PR.' | ||
days-before-pr-stale: 20 | ||
days-before-pr-close: 7 | ||
stale-pr-label: "Stale" | ||
stale-pr-label: 'Stale' | ||
|
||
branches: | ||
name: Cleanup old branches | ||
|
@@ -32,7 +32,7 @@ jobs: | |
uses: beatlabs/[email protected] | ||
with: | ||
repo_token: ${{ github.token }} | ||
date: "6 months ago" | ||
date: '6 months ago' | ||
dry_run: false | ||
delete_tags: false | ||
extra_protected_branch_regex: ^(main|master|release.*|rudder-saas)$ | ||
|
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,4 +1,4 @@ | ||
name: "Pull Request Description" | ||
name: 'Pull Request Description' | ||
on: | ||
pull_request: | ||
types: | ||
|
@@ -13,4 +13,4 @@ jobs: | |
steps: | ||
- uses: rudderlabs/[email protected] | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
repo-token: '${{ secrets.GITHUB_TOKEN }}' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "Semantic pull requests" | ||
name: 'Semantic pull requests' | ||
|
||
on: | ||
pull_request: | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,4 @@ | |
.env | ||
node_modules | ||
npm-debug.log | ||
/coverage/* | ||
|
||
temp.json | ||
temp_out.json | ||
reports/* |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run commit-msg |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run pre-commit |
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 @@ | ||
16.15.1 |
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,8 @@ | ||
node_modules/ | ||
reports/ | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
LICENSE | ||
test/**/*.js | ||
src/util/lodash-es-core.js | ||
src/util/url-search-params.min.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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"arrowParens": "avoid", | ||
"trailingComma": "all", | ||
"tabWidth": 2, | ||
"files": ["*.js", "*.json"] | ||
"semi": true, | ||
"singleQuote": true, | ||
"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,12 @@ | ||
{ | ||
"bumpFiles": [ | ||
{ | ||
"filename": "package.json", | ||
"type": "json" | ||
}, | ||
{ | ||
"filename": "package-lock.json", | ||
"type": "json" | ||
} | ||
] | ||
} |
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.