https://github.com/team23/style-guide
TEAM23’s unified lint-rules monorepo — eslint + stylint
https://github.com/team23/style-guide
angular css eslint javascript scss stylelint typescript vue
Last synced: 12 months ago
JSON representation
TEAM23’s unified lint-rules monorepo — eslint + stylint
- Host: GitHub
- URL: https://github.com/team23/style-guide
- Owner: team23
- License: mit
- Created: 2024-05-27T12:59:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-04T09:44:17.000Z (about 1 year ago)
- Last Synced: 2025-06-04T13:15:43.976Z (about 1 year ago)
- Topics: angular, css, eslint, javascript, scss, stylelint, typescript, vue
- Language: TypeScript
- Homepage:
- Size: 822 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Style Guide
## Overview
This repository contains the TEAM23 configuration for linting and styling rules.
It includes configurations for ESLint:
- JavaScript
- TypeScript
- Vue.js
- Angular
and Stylelint:
- css
- scss
These configurations help maintain code quality and consistency across TEAM23's projects.
Checkout the independent README.md files for more information on how to install and use.
## Debug eslint configurations
### config-inspector
You may need to install bun and jiti:
```shell
npm install --global bun
bun install
```
Now you can build the config:
```shell
bun build ./src/index.ts --target=node --outfile config.js
```
In some cases you may need to include external dependencies
```shell
bun build ./src/index.ts --target=node --outfile test.js --external eslint-plugin-vue
```
Now create an eslint.config.file and import from the outfile as described in the libraries README.md.
For example:
```ts
import { createVueEslintConfig } from "./test.js";
export default [
...createVueEslintConfig(),
];
```
Use the official config-inspector to inspect and understand the flat config.
```shell
npx @eslint/config-inspector
```
### Use --print-config
You can additionally use the `--print-config` CLI option to view the final configuration that will be used for a file. Note that only
configuration options applied to this file will be outputted.
You may want to use a bundler like bun to compile and bundle all files:
```
bun --bun eslint -c index.ts --print-config test.js > out.json
```