@dg-scripts/eslint-config

5.21.1 • Public • Published

@dg-scripts/eslint-config

Author LICENSE

Node Version NPM Version CDN

CI Jest Coverage Jest Coverage

This package includes the shareable ESLint configuration used by Bod CLI.

Installation

npm install -D @dg-scripts/eslint-config

Usage

Create a file named eslint.config.js with following contents in the root folder of your project:

export { default } from '@dg-scripts/eslint-config'

You can override the settings from @dg-scripts/eslint-config by editing the eslint.config.js file:

import eslintConfig from '@dg-scripts/eslint-config'

export default eslintConfig.append(
  {
    ignores: ['cypress', 'cypress.config.ts'],
  },
).append({
  rules: {
    'react-refresh/only-export-components': 'off',
  },
})

Next.js

When package next and eslint-config-next installed in project, eslint configuration will enable automatically, no need for any additional configuration.

Disable Type Aware Rules

Type aware rules can opt-out by:

export { disableTypeAware as default } from '@dg-scripts/eslint-config'

Contact

Email Twitter GitHub

/@dg-scripts/eslint-config/

    Package Sidebar

    Install

    npm i @dg-scripts/eslint-config

    Weekly Downloads

    83

    Version

    5.21.1

    License

    MIT

    Unpacked Size

    23.7 kB

    Total Files

    5

    Last publish

    Collaborators

    • sabertazimi