Skip to content

Latest commit

 

History

History
163 lines (104 loc) · 4.54 KB

README.md

File metadata and controls

163 lines (104 loc) · 4.54 KB


@phi.school/eslint-config

A dynamic ESLint configuration for multiple frameworks, available as a single dependency.

Changelog · Report Bug · Request Feature

NPM Package Badge


Table of Contents

Features

Back to Top Badge

Supported Frameworks

Lint rules for a file are determined by its extension and the project's dependencies.

Examples

  1. A file with a .tsx extension inside of a project with dependencies on typescript, react, and prettier will be linted with rules for TypeScript, React, and Prettier; Svelte or Vue rules will not be applied.
  2. A file whose name matches the glob **/*.{spec,test}.{js?(x),ts?(x)} inside of a project with a dependency on jest will be linted with Jest rules.

Back to Top Badge

Internally extended configurations

Beyond framework-specific rules, common lint rules are also sourced from the following configs/plugins:

Back to Top Badge

Installation

pnpm i -D @phi.school/eslint-config

Back to Top Badge

Usage

Extend this package in your local eslint config or package.json:

ESLint Config:

// .eslintrc.json
{
  "extends": ["@phi.school/eslint-config"]
}

package.json:

"eslintConfig": {
  "extends": [
    "@phi.school/eslint-config"
  ]
}

Back to Top Badge

Roadmap

Back to Top Badge

Contributing

We welcome contributions! For a detailed guide on how to contribute, please refer to the Contributing section in the main README of the repository.

License

Released under the MIT License. © 2023-Present phi school

Back to Top Badge