-
Notifications
You must be signed in to change notification settings - Fork 18
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
0 parents
commit 24e534d
Showing
179 changed files
with
57,090 additions
and
0 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,45 @@ | ||
module.exports = { | ||
parser: "@typescript-eslint/parser", | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier/@typescript-eslint", | ||
"plugin:prettier/recommended", | ||
], | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
"import/resolver": { | ||
node: { | ||
moduleDirectory: ["node_modules", "src"], | ||
}, | ||
}, | ||
}, | ||
env: { | ||
browser: true, | ||
node: true, | ||
es6: true, | ||
}, | ||
plugins: ["@typescript-eslint", "react"], | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: 2018, | ||
sourceType: "module", | ||
}, | ||
rules: { | ||
"react/prop-types": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.js"], | ||
rules: { | ||
"@typescript-eslint/no-var-requires": "off", | ||
}, | ||
}, | ||
], | ||
} |
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 @@ | ||
public | ||
static | ||
.cache | ||
content |
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,79 @@ | ||
{ | ||
"extends": [ | ||
"plugin:prettier/recommended", | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"plugins": [ | ||
"react", | ||
"import", | ||
"@typescript-eslint", | ||
"jsx-a11y" | ||
], | ||
"rules": { | ||
"semi": [ | ||
2, | ||
"never" | ||
], | ||
"@typescript-eslint/semi": [ | ||
2, | ||
"never" | ||
], | ||
"quotes": [ | ||
2, | ||
"double", | ||
{ | ||
"avoidEscape": true, | ||
"allowTemplateLiterals": true | ||
} | ||
], | ||
"@typescript-eslint/quotes": [ | ||
2, | ||
"double", | ||
{ | ||
"avoidEscape": true, | ||
"allowTemplateLiterals": true | ||
} | ||
], | ||
"prettier/prettier": [ | ||
"warn", | ||
{ | ||
"singleQuote": false, | ||
"semi": false | ||
} | ||
], | ||
"jsx-a11y/anchor-is-valid": [ | ||
0, | ||
{ | ||
"components": [ | ||
"Link" | ||
], | ||
"specialLink": [ | ||
"hrefLeft", | ||
"hrefRight", | ||
"to" | ||
], | ||
"aspects": [ | ||
"noHref", | ||
"invalidHref", | ||
"preferButton" | ||
] | ||
} | ||
] | ||
}, | ||
"settings": { | ||
"import/core-modules": [] | ||
}, | ||
"env": { | ||
"browser": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- | ||
# Mega-Linter GitHub Action configuration file | ||
# More info at https://nvuillam.github.io/mega-linter | ||
name: Frontend Linters | ||
|
||
on: | ||
# Trigger mega-linter at every push. Action will also be visible from Pull Requests to master | ||
push: # Comment this line to trigger action only on pull-requests (not recommended if you don't pay for GH Actions) | ||
pull_request: | ||
branches: [master, main] | ||
|
||
env: # Comment env block if you do not want to apply fixes | ||
# Apply linter fixes configuration | ||
APPLY_FIXES: none # When active, APPLY_FIXES must also be defined as environment variable (in github/workflows/mega-linter.yml or other CI tool) | ||
APPLY_FIXES_EVENT: pull_request # Decide which event triggers application of fixes in a commit or a PR (pull_request, push, all) | ||
APPLY_FIXES_MODE: commit # If APPLY_FIXES is used, defines if the fixes are directly committed (commit) or posted in a PR (pull_request) | ||
|
||
jobs: | ||
# Cancel duplicate jobs: https://github.com/fkirc/skip-duplicate-actions#option-3-cancellation-only | ||
cancel_duplicates: | ||
name: Cancel duplicate jobs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: fkirc/skip-duplicate-actions@master | ||
with: | ||
github_token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} | ||
|
||
build: | ||
name: ESlint, Prettier (Mega-Linter) | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Git Checkout | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
# Mega-Linter | ||
- name: Mega-Linter | ||
id: ml | ||
# You can override Mega-Linter flavor used to have faster performances | ||
# More info at https://nvuillam.github.io/mega-linter/flavors/ | ||
uses: nvuillam/mega-linter/flavors/javascript@v4 | ||
env: | ||
# All available variables are described in documentation | ||
# https://nvuillam.github.io/mega-linter/configuration/ | ||
VALIDATE_ALL_CODEBASE: true # Set ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} to validate only diff with master branch | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# ADD YOUR CUSTOM ENV VARIABLES HERE TO OVERRIDE VALUES OF .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY | ||
|
||
# Upload Mega-Linter artifacts | ||
- name: Archive production artifacts | ||
if: ${{ success() }} || ${{ failure() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Mega-Linter reports | ||
path: | | ||
report | ||
mega-linter.log | ||
# Create pull request if applicable (for now works only on PR from same repository, not from forks) | ||
- name: Create Pull Request with applied fixes | ||
id: cpr | ||
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && !contains(github.event.head_commit.message, 'skip fix') | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} | ||
commit-message: "[Mega-Linter] Apply linters automatic fixes" | ||
title: "[Mega-Linter] Apply linters automatic fixes" | ||
labels: bot | ||
- name: Create PR output | ||
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && !contains(github.event.head_commit.message, 'skip fix') | ||
run: | | ||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" | ||
# Push new commit if applicable (for now works only on PR from same repository, not from forks) | ||
- name: Prepare commit | ||
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/master' && github.event.pull_request.head.repo.full_name == github.repository && !contains(github.event.head_commit.message, 'skip fix') | ||
run: sudo chown -Rc $UID .git/ | ||
- name: Commit and push applied linter fixes | ||
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/master' && github.event.pull_request.head.repo.full_name == github.repository && !contains(github.event.head_commit.message, 'skip fix') | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }} | ||
commit_message: "[Mega-Linter] Apply linters fixes" |
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,31 @@ | ||
name: Miscellaneous (docs) | ||
|
||
on: | ||
pull_request: | ||
|
||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
markdownlint: | ||
name: Markdown Lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Markdown Linting Action | ||
uses: avto-dev/[email protected] | ||
with: | ||
# Disabled in markdownlint.json: | ||
# MD001 - Heading Increment | ||
# MD013 - Line Length | ||
# MD024 - Duplicate Headings | ||
# MD026 - Trailing punctuation in header | ||
# MD033 - No inline HTML | ||
# MD036 - No Emphasis as Heading | ||
# MD041 - No Emphasis as Heading | ||
# MD041 - First line in file should be a H1 | ||
args: "./README.md ./content/*.md ./docs/*.md" |
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,15 @@ | ||
name: Publish Code Smell Catalog | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: enriikke/gatsby-gh-pages-action@v2 | ||
with: | ||
access-token: ${{ secrets.ACCESS_TOKEN }} | ||
deploy-branch: gh-pages | ||
gatsby-args: --prefix-paths |
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,75 @@ | ||
### Node ### | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
report/ | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
__pycache__ | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules | ||
jspm_packages | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
|
||
# Build Files | ||
public/ | ||
.cache/ | ||
example/* | ||
example | ||
data/smells/* | ||
|
||
# Gatsby context | ||
.gatsby-context.js | ||
|
||
# Bundle stats | ||
bundle-stats.json | ||
|
||
# VS Code | ||
.vscode | ||
|
||
# macOS | ||
.DS_Store | ||
|
||
# Personal | ||
/static/fonts | ||
codes.py | ||
logo.psd |
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,9 @@ | ||
{ | ||
"MD001": false, | ||
"MD013": false, | ||
"MD024": false, | ||
"MD033": false, | ||
"MD036": false, | ||
"MD041": false, | ||
"MD026": false | ||
} |
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,17 @@ | ||
# Mega-Linter (https://nvuillam.github.io/mega-linter/configuration/) | ||
APPLY_FIXES: none | ||
DEFAULT_BRANCH: main | ||
ENABLE_LINTERS: | ||
- TYPESCRIPT_PRETTIER | ||
- TYPESCRIPT_ES | ||
- TSX_ESLINT | ||
PYTHON_PYLINT_ARGUMENTS: | ||
- "--disable=E0611" # No name 'TypeAlias' in module 'typing' (no-name-in-module) | ||
- "--disable=E1101" # Instance of 'Test*' has no '*' member (no-member) | ||
- "--disable=E1131" # Unsupported operand type(s) for | (unsupported-binary-operation) | ||
EXCLUDED_DIRECTORIES: | ||
- "public" | ||
- "node_modules" | ||
- "report" | ||
SHOW_ELAPSED_TIME: true | ||
FILEIO_REPORTER: false |
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 @@ | ||
{ | ||
"tabWidth": 2, | ||
"semi": false, | ||
"useTabs": false, | ||
"lineLength": 150, | ||
"printWidth": 150, | ||
"singleQuote": false | ||
} |
Oops, something went wrong.