0.2.0 • Published 2 years ago

@autossey/eslint-config v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

If I should maintain this repo, please ⭐️

DM me on Twitter if you have questions or suggestions.


This package provides a base ESLint config for TypeScript, and a second for TypeScript with React.

Installation

npm install --save-dev @autossey/eslint-config
yarn add --dev @autossey/eslint-config
pnpm add --save-dev @autossey/eslint-config
bun add --dev @autossey/eslint-config

Usage

In your package.json file:

TypeScript

{
  "eslintConfig": {
    "extends": "@autossey/eslint-config"
  }
}

React

{
  "eslintConfig": {
    "extends": "@autossey/eslint-config/react"
  }
}

Running ESLint

Now to run ESLint, run yarn eslint source or npm run eslint source.

Updates

As this package updates, bug fixes are considered patch updates as usual.

Rule changes are considered minor updates. Rule changes can cause linting errors in your code, If you want to avoid rule changes, you can set your package to use a specific minor version of this package with the ~ operator:

{
  "devDependencies": {
    "@autossey/eslint-config": "~0.1.0"
  }
}
  • @autossey/tsconfig: A collection of base TSConfigs for various types of projects.
  • eslint: An AST-based pattern checker for JavaScript.

MIT - MIT License