Skip to content

Commit

Permalink
fix: add linter to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
groot007 committed Feb 24, 2024
1 parent ee6e5ba commit 6defd4b
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 35 deletions.
63 changes: 30 additions & 33 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
},
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"react"
],
"rules": {
}
}
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'react'],
rules: {
'@typescript-eslint/no-var-requires': 0,
},
};
19 changes: 17 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,25 @@ name: Jest on CI

on:
push:
branches: main
branches: ['main']
pull_request:
branches: ['main']

jobs:
build:
linting:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependecies
run: npm ci

- name: Run test
run: npm run lint

ci_tests:
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 6defd4b

Please sign in to comment.