https://github.com/aserto-dev/ts-linting-configs
Aserto shared Type-check/Lint/Format configs
https://github.com/aserto-dev/ts-linting-configs
Last synced: about 1 year ago
JSON representation
Aserto shared Type-check/Lint/Format configs
- Host: GitHub
- URL: https://github.com/aserto-dev/ts-linting-configs
- Owner: aserto-dev
- Created: 2021-03-02T12:25:40.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-06T06:57:45.000Z (over 1 year ago)
- Last Synced: 2025-03-29T02:42:00.725Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 2.84 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Aserto shared Type-check/Lint/Format configs
## Testing changes locally
To quickly check that configs are valid, don't have syntax errors, etc. run the checks on this repo.
### Type-checking
```yarn tsc```
### Linting and Formatting
```yarn lint```
## Testing changes in another repo
Since most of the checks don't apply to anything in this repo, you should test that your changes had the intended effect in one that can exercise your changes.
In your local checkout of this repo, run:
```yarn link```
In the repo that you want to test the changes in, run:
```yarn link @aserto/ts-linting-configs```
This has the effect of making your `node_modules/@aserto/ts-linting-configs` symlink to your local `ts-linting-configs` checkout directory.
Now run whatever commands you use to invoke the TypeScript compiler and ESLint in your designated repo and check for the desired behavior.
To unlink your other repo from `ts-linting-configs`, run:
```yarn unlink @aserto/ts-linting-configs```
(Optionally) You can unregister this repo from being linked to by running:
```yarn unlink```