clebert / onecfg-lib

A collection of onecfg files specifically designed to configure TypeScript, Rust, and Zig projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onecfg-lib

A collection of onecfg files specifically designed to configure TypeScript, Rust, and Zig projects.

Configuring ESLint

eslint.config.js:

import { createConfigs } from 'onecfg-lib-eslint';

export default [
  { ignores: [`dist/`, `lib/`] },

  ...createConfigs({
    browser: true,
    node: true,
  }),
];

package.json:

{
  "type": "module",
  "scripts": {
    "lint": "eslint ."
  },
  "devDependencies": {
    "onecfg-lib-eslint": "^1.0.0"
  }
}

onecfg.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"
  ]
}

About

A collection of onecfg files specifically designed to configure TypeScript, Rust, and Zig projects.

License:Apache License 2.0