https://github.com/clebert/onecfg-lib
A collection of onecfg files specifically designed to configure TypeScript, Rust, and Zig projects.
https://github.com/clebert/onecfg-lib
Last synced: over 1 year ago
JSON representation
A collection of onecfg files specifically designed to configure TypeScript, Rust, and Zig projects.
- Host: GitHub
- URL: https://github.com/clebert/onecfg-lib
- Owner: clebert
- License: apache-2.0
- Created: 2023-01-30T21:00:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T11:46:55.000Z (almost 2 years ago)
- Last Synced: 2025-02-24T16:05:09.014Z (over 1 year ago)
- Homepage:
- Size: 59.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# onecfg-lib
> A collection of [onecfg](https://crates.io/crates/onecfg) files specifically designed to configure
> TypeScript, Rust, and Zig projects.
## Configuring ESLint
`eslint.config.js`:
```js
import { createConfigs } from 'onecfg-lib-eslint';
export default [
{ ignores: [`dist/`, `lib/`] },
...createConfigs({
browser: true,
node: true,
}),
];
```
`package.json`:
```json
{
"type": "module",
"scripts": {
"lint": "eslint ."
},
"devDependencies": {
"onecfg-lib-eslint": "^1.0.0"
}
}
```
`onecfg.json`:
```json
{
"extends": [
"https://raw.githubusercontent.com/clebert/onecfg-lib/main/lib/onecfg-eslint.json",
"https://raw.githubusercontent.com/clebert/onecfg-lib/main/lib/onecfg-vscode.json"
]
}
```