0.3.0 • Published 4 months ago

@phi.school/eslint-config v0.3.0

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

Changelog · Report Bug · Request Feature

NPM Package Badge

Table of Contents

Features

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.

Internally extended configurations

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

Installation

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

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

Roadmap

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