Miss any of our Open RFC calls?Watch the recordings here! »

@html-validate/eslint-config

1.5.7 • Public • Published

@html-validate/eslint-config

HTML-Validate ESLint shareable config.

Install

npm install --save-dev @html-validate/eslint-config

Usage

In your .eslintrc.json file:

{
  "extends": ["@html-validate"],
 
  "overrides": [
    {
      "files": "*.ts",
      "extends": ["@html-validate/eslint-config/typescript"]
    },
    {
      "files": "*.spec.[jt]s",
      "extends": ["@html-validate/eslint-config/jest"]
    }
  ]
}

CLI

To automatically write configuration use:

npx @html-validate/eslint-config --write

To check if configuration is up-to-date use:

npx @html-validate/eslint-config --check

The tool will autodetect support for:

  • Typescript
  • Jest

Use --enable-FEATURE or --disable-FEATURE to manually enable or disable.

Keywords

Install

npm i @html-validate/eslint-config

DownloadsWeekly Downloads

352

Version

1.5.7

License

MIT

Unpacked Size

21.7 kB

Total Files

11

Last publish

Collaborators

  • avatar