@assemble-inc/eslint-config-ts

0.1.9 • Public • Published

ASMBL ESLint Configuration

This package contains ASMBL's ESLint configurations for Typescript projects.

ESLint is used for enforcement of code quality across ASMBL projects.

All ESLint rules enforcing code style have been disabled in favor of using prettier for code formatting deprecated.

Installation

From the root of your package, install the ASMBL configuration:

yarn add --dev @assemble-inc/eslint-config-ts pnpm add --dev @assemble-inc/eslint-config-ts bun add --dev @assemble-inc/eslint-config-ts

Configuration

Add Linting Scripts

Add the following scripts to your package.json.

"scripts": {
  "lint": "eslint \"src/**/*.{ts,tsx}\"",
  "lint:fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
},

You can update the file extensions list to suit the particular files you would like to lint.

Import the linting configurations

The ASMBL configuration needs to be imported into ESLint. Add the following to your package.json.

  "eslintConfig": {
    "extends": [
      "@assemble-inc/eslint-config-ts"
    ],
    "env": {
      "browser": true,
      "node": true
    }
  },

That's it! No eslint config file required.

Usage

The lint:fix script will automatically attempt to fix reported errors and warnings. Running lint will report errors/warnings without attempting to fix them.

Readme

Keywords

none

Package Sidebar

Install

npm i @assemble-inc/eslint-config-ts

Weekly Downloads

6

Version

0.1.9

License

ISC

Unpacked Size

13.2 kB

Total Files

10

Last publish

Collaborators

  • butler.borst
  • mayhemphone
  • butlerborst
  • denvermullets
  • joelassembleinc
  • canfie1d