Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
],
"rules": {
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-explicit-any": 0
"@typescript-eslint/no-explicit-any": 0,
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off"
}
}
15 changes: 15 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
env:
browser: true
es2021: true
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- plugin:react/recommended
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: latest
sourceType: module
plugins:
- '@typescript-eslint'
- react
rules: {}
29 changes: 29 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name:

on:
pull_request:
branches:
- dev
- release
- main
push:
branches:
- dev
- release
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: yarn add eslint @typescript-eslint/eslint-plugin@latest eslint-plugin-react @typescript-eslint/parser
- name: Run ESLint
# echo 0 ensures the CI passess even after
run: yarn run eslint . --format json --ext .js,.jsx,.ts,.tsx --output-file eslint-report.json || echo 0
- name: ESLint Reporter
uses: rahmanrafi/eslint-reporter-action@v3
with:
json: ./eslint-report.json
title: ESLint Report