-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create linter.yml #440
Closed
Closed
Create linter.yml #440
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6642de8
Create linter.yml
bbannon e786920
Merge branch 'craigk5n:master' into lintall
bbannon 6bae4d6
Update .editorconfig
bbannon da706b3
Create test.txt
bbannon eba9900
Create .eslintrc.yml
bbannon ed2d946
Delete .github/workflows/super-linter.report/test.txt
bbannon 8680f7a
Update linter.yml
bbannon 0b4c949
Merge branch 'craigk5n:master' into lintall
bbannon 1b1ccb9
Merge branch 'craigk5n:master' into lintall
bbannon 2ae96d8
Merge branch 'craigk5n:master' into lintall
bbannon dbe917e
Update .eslintrc.yml
bbannon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,78 @@ | ||
--- | ||
############################# | ||
############################# | ||
## JavaScript Linter rules ## | ||
############################# | ||
############################# | ||
|
||
############ | ||
# Env Vars # | ||
############ | ||
env: | ||
browser: true | ||
es6: true | ||
jest: true | ||
|
||
############### | ||
# Global Vars # | ||
############### | ||
globals: | ||
Atomics: readonly | ||
SharedArrayBuffer: readonly | ||
|
||
ignorePatterns: | ||
- "!.*" | ||
- "**/node_modules/.*" | ||
|
||
############### | ||
# Parser vars # | ||
############### | ||
parser: '@typescript-eslint/parser' | ||
parserOptions: | ||
ecmaVersion: 2018 | ||
sourceType: module | ||
|
||
########### | ||
# Plugins # | ||
########### | ||
plugins: | ||
- '@typescript-eslint' | ||
|
||
######### | ||
# Rules # | ||
######### | ||
rules: { | ||
eqeqeq: ["error", "smart"] | ||
} | ||
|
||
############################## | ||
# Overrides for JSON parsing # | ||
############################## | ||
overrides: | ||
|
||
# JSON files | ||
- files: | ||
- "*.json" | ||
extends: | ||
- plugin:jsonc/recommended-with-json | ||
parser: jsonc-eslint-parser | ||
parserOptions: | ||
jsonSyntax: JSON | ||
|
||
# JSONC files | ||
- files: | ||
- "*.jsonc" | ||
extends: | ||
- plugin:jsonc/recommended-with-jsonc | ||
parser: jsonc-eslint-parser | ||
parserOptions: | ||
jsonSyntax: JSONC | ||
|
||
# JSON5 files | ||
- files: | ||
- "*.json5" | ||
extends: | ||
- plugin:jsonc/recommended-with-json5 | ||
parser: jsonc-eslint-parser | ||
parserOptions: | ||
jsonSyntax: JSON5 |
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,66 @@ | ||
--- | ||
################################# | ||
################################# | ||
## 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: [master, main] | ||
# Remove the line above to run when pushing to master | ||
pull_request: | ||
branches: [master, main] | ||
|
||
############### | ||
# Set the Job # | ||
############### | ||
jobs: | ||
build: | ||
# Name the Job | ||
name: Lint Code Base | ||
# Set the agent to run on | ||
runs-on: ubuntu-latest | ||
|
||
############################################ | ||
# Grant status permission for MULTI_STATUS # | ||
############################################ | ||
permissions: | ||
contents: read | ||
packages: read | ||
statuses: write | ||
|
||
################## | ||
# 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: super-linter/super-linter@v5 | ||
env: | ||
VALIDATE_ALL_CODEBASE: false | ||
# Change to 'master' if your main branch differs | ||
DEFAULT_BRANCH: master | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to include "release" branch as well, but I can add that later