diff --git a/.eslintrc.json b/.eslintrc.json index f63e8c5..d0400d5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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" } } \ No newline at end of file diff --git a/.eslintrc.yml b/.eslintrc.yml new file mode 100644 index 0000000..88f23f5 --- /dev/null +++ b/.eslintrc.yml @@ -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: {} diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml new file mode 100644 index 0000000..199f2f2 --- /dev/null +++ b/.github/workflows/CI.yaml @@ -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 \ No newline at end of file