Installation

Get started with eslint.

Quick Start

Add the correct .npmrc file to your project

.npmrc
shamefully-hoist=true
strict-peer-dependencies=false
auto-install-peers=true

@nobears-front-end:registry=https://git.nobears.nl/api/v4/packages/npm/
//git.nobears.nl/:_authToken=${GIT_NOBEARS_TOKEN}

Install the eslint package to your project

You can install the module with your favorite package manager:

pnpm add @nobears-front-end/eslint

Add the eslint package to your project

eslint.config.js
import { eslintFactory } from "@nobears-front-end/eslint";

export default eslintFactory({
  preset: "nuxt-app",
});

Nuxt Configuration (optional)

If you want to use the eslint package in your Nuxt project, you can add the following configuration to your nuxt.config.ts file.

nuxt.config.ts
export default defineNuxtConfig({
  eslint: {
    config: {
      stylistic: {
        indent: 4,
        quotes: "double",
        semi: true,
      },
      standalone: false,
      autoInit: false,
    },
  },
});