Skip to content
Merged
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
5 changes: 4 additions & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@ jobs:
run: yarn run fmt:check

- name: Run eslint
run: yarn run lint
run: yarn run lint:ts

- name: Run stylelint
run: yarn run lint:css
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ yarn-error.log
# eslint
.eslintcache

# stylelint
.stylelintcache

# coverage
coverage/
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
"test": "yarn jest",
"build": "webpack && node ./.scripts/set-executable.js ./dist/server.js",
"package": "npx vsce package --no-yarn --readme-path editors/code/README.md",
"lint": "eslint --cache .",
"lint:css": "npx stylelint \"editors/**/*.css\"",
"lint": "yarn run lint:ts && yarn run lint:css",
"lint:ts": "eslint --cache .",
"lint:css": "stylelint 'editors/**/*.css' --cache",
"fmt": "prettier --write -l --cache .",
"fmt:check": "prettier --check --cache .",
"grammar:wasm": "yarn grammar:tolk:wasm && yarn grammar:func:wasm && yarn grammar:fift:wasm && yarn grammar:tlb:wasm",
Expand All @@ -48,7 +49,7 @@
"grammar:fift:wasm": "cd server/src/languages/fift/tree-sitter-fift && tree-sitter generate && tree-sitter build --wasm",
"grammar:tlb:wasm": "cd server/src/languages/tlb/tree-sitter-tlb && tree-sitter generate && tree-sitter build --wasm",
"watch": "webpack --watch",
"precommit": "yarn build && yarn fmt && yarn lint --fix && yarn run lint:css --fix",
"precommit": "yarn build && yarn fmt && yarn lint:ts --fix && yarn run lint:css --fix",
"test:grammars": "yarn test:grammars:tolk && yarn test:grammars:func && yarn test:grammars:fift && yarn test:grammars:tlb",
"test:grammars:tolk": "cd ./server/src/languages/tolk/tree-sitter-tolk/ && tree-sitter test",
"test:grammars:func": "cd ./server/src/languages/func/tree-sitter-func/ && tree-sitter test",
Expand Down