@unite-us/app-create-referral 0.1.63-code-quality-actions-5dd07fb → 0.1.63-code-quality-actions-5a0a364
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
- name: Install node
|
|
19
19
|
uses: actions/setup-node@v2
|
|
20
20
|
with:
|
|
21
|
-
node-version: '
|
|
21
|
+
node-version: '14.20.1'
|
|
22
22
|
- name: Install dependencies
|
|
23
23
|
run: |
|
|
24
24
|
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./.npmrc
|
|
@@ -40,4 +40,4 @@ jobs:
|
|
|
40
40
|
python3 -m pip install semgrep
|
|
41
41
|
- name: semgrep results
|
|
42
42
|
run: |
|
|
43
|
-
semgrep --config=p/secrets --config=p/security-audit --config=p/owasp-top-ten --config=p/nodejsscan --severity ERROR
|
|
43
|
+
semgrep --config=p/secrets --config=p/security-audit --config=p/owasp-top-ten --config=p/nodejsscan --severity ERROR
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unite-us/app-create-referral",
|
|
3
|
-
"version": "0.1.63-code-quality-actions-
|
|
3
|
+
"version": "0.1.63-code-quality-actions-5a0a364",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"author": "Alex Morales",
|
|
6
6
|
"dependencies": {
|
|
@@ -28,9 +28,6 @@
|
|
|
28
28
|
"test": "react-scripts test",
|
|
29
29
|
"coverage": "react-scripts test --coverage",
|
|
30
30
|
"eject": "react-scripts eject",
|
|
31
|
-
"lint": "eslint \"src/**/*.{js,jsx}\"",
|
|
32
|
-
"lint-fix": "eslint --fix \"src/**/*.{js,jsx}\"",
|
|
33
|
-
"lint-diff": "./scripts/eslint_changed_files.sh",
|
|
34
31
|
"build:dist": "npx babel src --out-dir dist --copy-files --source-maps --delete-dir-on-start",
|
|
35
32
|
"build:dist:watch": "npx babel src --watch --out-dir dist --copy-files --source-maps --delete-dir-on-start"
|
|
36
33
|
},
|
|
@@ -63,12 +60,6 @@
|
|
|
63
60
|
"babel-core": "^7.0.0-bridge.0",
|
|
64
61
|
"babel-plugin-module-resolver": "^5.0.0",
|
|
65
62
|
"customize-cra": "^1.0.0",
|
|
66
|
-
"eslint": "^7.32.0",
|
|
67
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
68
|
-
"eslint-plugin-import": "^2.27.5",
|
|
69
|
-
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
70
|
-
"eslint-plugin-react": "^7.32.2",
|
|
71
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
72
63
|
"msw": "^1.3.2",
|
|
73
64
|
"postcss": "^8.4.19",
|
|
74
65
|
"react": "^16.8.0",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
base_branch=main
|
|
3
|
-
if [ $1 ]; then
|
|
4
|
-
base_branch=$1
|
|
5
|
-
fi
|
|
6
|
-
git fetch --quiet origin ${base_branch}:base-branch
|
|
7
|
-
merge_base=$(git merge-base base-branch HEAD)
|
|
8
|
-
changed_files=$(git diff --diff-filter=ACM --name-only ${merge_base} | grep -E "(.js$|.jsx$)")
|
|
9
|
-
if [ "${changed_files}" ]; then
|
|
10
|
-
return_code=0
|
|
11
|
-
for file in ${changed_files}; do
|
|
12
|
-
echo "Linting ${file}"
|
|
13
|
-
eslint ${file}
|
|
14
|
-
if [ $? != 0 ]; then
|
|
15
|
-
return_code=1
|
|
16
|
-
fi
|
|
17
|
-
done
|
|
18
|
-
exit $return_code
|
|
19
|
-
else
|
|
20
|
-
echo "Nothing to see here, move along."
|
|
21
|
-
exit 0
|
|
22
|
-
fi
|