Skip to content

Commit

Permalink
feat: svelte extractor (#44)
Browse files Browse the repository at this point in the history
* feat: svelte extractor

* feat: use the appropriate extractor dynamically

closes #19

* fix: test comment-only file

* chore: massive speedup for e2e tests

* chore: build cli before e2e tests

* fix: update doc link

* chore: install eslint

* fix: consistent spacing

* chore: rename test properly
  • Loading branch information
cyyynthia authored Apr 25, 2023
1 parent 2a4536d commit 0657a36
Show file tree
Hide file tree
Showing 36 changed files with 6,940 additions and 2,637 deletions.
39 changes: 39 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"env": {
"node": true,
"es2020": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"args": "none",
"varsIgnorePattern": "^_"
}
]
},
"overrides": [
{
"env": { "jest": true },
"files": [ "test/**" ],
"plugins": [ "jest" ],
"extends": [ "plugin:jest/recommended" ]
}
]
}
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
lint:
name: Prettier
name: Eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run prettier
- name: Run eslint
run: npm run lint

test-unit:
Expand Down Expand Up @@ -58,6 +58,8 @@ jobs:
key: cache-node-modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Build CLI
run: npm run build

- name: Start Tolgee Container
run: npm run tolgee:start
Expand Down
3 changes: 1 addition & 2 deletions HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ steps:
- Add new cases in the `extnameToGrammar` function

----
Feel free to join the [Slack channel](https://join.slack.com/t/tolgeecommunity/shared_invite/zt-195isb5u8-_RcSRgVJfvgsPpOBIok~IQ)
if you have questions!
Feel free to join the [Slack channel](https://tolg.ee/slack) if you have questions!

Happy hacking 🐀
Loading

0 comments on commit 0657a36

Please sign in to comment.