@smartive/eslint-config

6.5.0 • Public • Published

@smartive/eslint-config

This package provides smartive's default eslint configuration.

Installation

$ npm install eslint @smartive/eslint-config -D

Usage

This package offers two different rule sets, one for plain TypeScript applications and a separate one for React applications.

Flat Config (eslint.config.mjs)

import { config } from '@smartive/eslint-config'

// For plain TS applications ..
export default config('typescript');

// .. or React applications
export default config('react');

// .. or Next.js applications
// make sure to add `eslint-config-next` 
// to your devDependencies
export default config('nextjs');

Legacy Config (.eslintrc)

{
  "extends": [
    "@smartive/eslint-config/typescript-legacy" // Plain TS applications
    // or
    "@smartive/eslint-config/react-legacy"      // React applications
  ]
}

NPM scripts

To use eslint add the following to your package.json:

"scripts": {
  "lint": "eslint .",
  "lint:fix": "eslint . --fix"
}

/@smartive/eslint-config/

    Package Sidebar

    Install

    npm i @smartive/eslint-config

    Weekly Downloads

    1,981

    Version

    6.5.0

    License

    MIT

    Unpacked Size

    16.9 kB

    Total Files

    10

    Last publish

    Collaborators

    • smartive-ci
    • mfeltscher
    • petermanser
    • cbuehler
    • dwirz
    • deniaz
    • nmaro