-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into fix
- Loading branch information
Showing
51 changed files
with
3,326 additions
and
3,092 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: 'google', | ||
ignorePatterns: [ | ||
'js/src/lib/*.js', | ||
'js/src/react/*.js', | ||
'js/src/spbc-admin.js', | ||
'js/src/spbc-common.js', | ||
'js/src/spbc-cookie.js', | ||
'js/src/spbc-dashboard-widget.js', | ||
'js/src/spbc-modal.js', | ||
'js/src/spbc-scanner-plugin.js', | ||
'js/src/spbc-settings.js', | ||
'js/src/spbc-settings_tab--backups.js', | ||
'js/src/spbc-settings_tab--scanner.js', | ||
'js/src/spbc-settings_tab--security_log.js', | ||
'js/src/spbc-settings_tab--settings_general.js', | ||
'js/src/spbc-settings_tab--summary.js', | ||
], | ||
overrides: [], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
}, | ||
rules: { | ||
'indent': ['error', 4], | ||
'max-len': ['error', {'code': 120}], | ||
'prefer-const': 'off', | ||
}, | ||
globals: { | ||
|
||
}, | ||
}; |
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,49 @@ | ||
# .github/workflows/eslint.yml | ||
|
||
name: ESLint # name of the action (displayed in the github interface) | ||
|
||
on: # event list | ||
push: # on push to each of these branches | ||
branches: | ||
- dev | ||
- fix | ||
- master | ||
pull_request: | ||
branches: | ||
- dev | ||
- master | ||
|
||
env: # environment variables (available in any part of the action) | ||
NODE_VERSION: 16 | ||
|
||
jobs: # list of things to do | ||
linting: | ||
name: ESLint # job name (unique id) | ||
runs-on: ubuntu-latest # on which machine to run | ||
steps: # list of steps | ||
- name: Install NodeJS | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Code Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Dependencies | ||
run: npm i | ||
|
||
- name: Code Linting | ||
run: npm run eslint | ||
|
||
- name: Telegram notify | ||
if: failure() | ||
uses: appleboy/telegram-action@master | ||
with: | ||
to: ${{ secrets.TELEGRAM_PLUGINS_TO }} | ||
token: ${{ secrets.TELEGRAM_REVIEWER_TOKEN }} | ||
message: | | ||
Hi, <strong>${{ github.actor }}</strong>! Your commit for <strong>${{ github.repository }}</strong> | ||
contains 💯 the best solution but it have to be fixed! | ||
<a href="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}">Auto-Tests <strong>ESLint</strong></a> build failed ⛔! | ||
format: html | ||
disable_web_page_preview: true |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.