-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
150 additions
and
66 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
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,48 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true | ||
}, | ||
extends: [ | ||
'plugin:vue/recommended', // for Vue 2.x | ||
'standard' | ||
], | ||
globals: { | ||
"A": true, // Aladin script | ||
"JS9": true, | ||
"$": true, | ||
"d3": true, | ||
"google": true, | ||
"OverlappingMarkerSpiderfier": true, | ||
"_chatlio": true, | ||
}, | ||
overrides: [ | ||
], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module' | ||
}, | ||
plugins: [ | ||
'vue', | ||
'no-autofix', | ||
], | ||
rules: { | ||
"camelcase": "off", | ||
'eqeqeq': 'off', | ||
'brace-style': 'off', | ||
"vue/require-prop-type-constructor": "off", | ||
"vue/prop-name-casing": "off", | ||
"vue/require-default-prop": "off", | ||
"vue/require-prop-types": "off", | ||
"vue/order-in-components": "off", | ||
"vue/multi-word-component-names": "off", | ||
|
||
/* Don't automatically fix these when running `eslint --fix`, but keep the warning/error */ | ||
|
||
// This autofix induced breaking changes when props are named with a mix of camelCase and snake_case, | ||
// such as in SiteCalendar by changing the prop for TheCalendar (fc_timeZone) | ||
// from 'fc_timeZone' to 'fc-time-zone' | ||
"vue/attribute-hyphenation": "off", | ||
"no-autofix/vue/attribute-hyphenation": "error", | ||
} | ||
} |
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,6 @@ | ||
VALIDATE_DOCKERFILE_HADOLINT=false | ||
VALIDATE_EDITORCONFIG=false | ||
VALIDATE_GITLEAKS=false | ||
VALIDATE_ALL_CODEBASE=false | ||
LINTER_RULES_PATH=/ | ||
JAVASCRIPT_ES_CONFIG_FILE=.eslintrc.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,55 +1,19 @@ | ||
--- | ||
################################# | ||
################################# | ||
## Super Linter GitHub Actions ## | ||
################################# | ||
################################# | ||
name: Lint Code Base | ||
|
||
# | ||
# Documentation: | ||
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions | ||
# | ||
|
||
############################# | ||
# Start the job on all push # | ||
############################# | ||
on: | ||
on: | ||
push: | ||
branches-ignore: [dev] | ||
# Remove the line above to run when pushing to dev | ||
pull_request: | ||
branches: [dev] | ||
|
||
############### | ||
# Set the Job # | ||
############### | ||
|
||
jobs: | ||
build: | ||
# Name the Job | ||
name: Lint Code Base | ||
# Set the agent to run on | ||
runs-on: ubuntu-latest | ||
|
||
################## | ||
# Load all steps # | ||
################## | ||
steps: | ||
########################## | ||
# Checkout the code base # | ||
########################## | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
# Full git history is needed to get a proper list of changed files within `super-linter` | ||
fetch-depth: 0 | ||
|
||
################################ | ||
# Run Linter against code base # | ||
################################ | ||
- name: Lint Code Base | ||
uses: github/super-linter/slim@v4 | ||
env: | ||
VALIDATE_ALL_CODEBASE: false | ||
DEFAULT_BRANCH: dev | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v3 | ||
- name: Install modules | ||
run: npm ci | ||
- name: Lint all files | ||
run: npm run lint:check | ||
- name: Strict lint for changes | ||
run: npm run lint-changes:check |
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,60 @@ | ||
--- | ||
################################# | ||
################################# | ||
## Super Linter GitHub Actions ## | ||
################################# | ||
################################# | ||
name: Lint Code Base | ||
|
||
# | ||
# Documentation: | ||
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions | ||
# | ||
|
||
############################# | ||
# Start the job on all push # | ||
############################# | ||
on: | ||
push: | ||
branches-ignore: [dev] | ||
# Remove the line above to run when pushing to dev | ||
pull_request: | ||
branches: [dev] | ||
|
||
############### | ||
# Set the Job # | ||
############### | ||
jobs: | ||
build: | ||
# Name the Job | ||
name: Lint Code Base | ||
# Set the agent to run on | ||
runs-on: ubuntu-latest | ||
|
||
################## | ||
# Load all steps # | ||
################## | ||
steps: | ||
########################## | ||
# Checkout the code base # | ||
########################## | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
# Full git history is needed to get a proper list of changed files within `super-linter` | ||
fetch-depth: 0 | ||
|
||
############################# | ||
# Set environment variables # | ||
############################# | ||
- run: cat .github/super-linter.env >> "$GITHUB_ENV" | ||
|
||
|
||
################################ | ||
# Run Linter against code base # | ||
################################ | ||
- name: Lint Code Base | ||
uses: github/super-linter/slim@v4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DEFAULT_BRANCH: dev |
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