Skip to content

Commit

Permalink
unit test - add eslint (#191)
Browse files Browse the repository at this point in the history
* unit test - add eslint

* WIP

* WIP
  • Loading branch information
guidoiaquinti authored Nov 18, 2021
1 parent e6f288d commit ef263b0
Show file tree
Hide file tree
Showing 5 changed files with 626 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"root": true,
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
}
}
10 changes: 10 additions & 0 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: helm lint --strict --set "cloud=${{ matrix.cloud }}" charts/posthog

eslint:
name: ESLint
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install modules
run: yarn
- name: Run ESLint
run: yarn run eslint . --ext .js,.jsx,.ts,.tsx
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
.idea
node_modules/
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "charts-clickhouse",
"repository": "[email protected]:PostHog/charts-clickhouse.git",
"dependencies": {
"eslint": "^8.2.0"
}
}
Loading

0 comments on commit ef263b0

Please sign in to comment.