Skip to content

ESLint config revamp #240

@pi0

Description

@pi0

We initially made @nuxtjs/eslint-config configuration (back in 2018 by @manniL) mainly for the purpose of internal usage for nuxt/nuxt.js usage and also consistency with ecosystem modules with the same styles. Later, a superset of @nuxtjs/eslint-config-typescript was made to cover typescript usage

Since then this nice configuration has also been adopted by many Nuxt users, but I also personally even used the typescript variant for non-nuxt js projects!

After an initial internal discussion with @danielroe and @atinux, I think it is time we revamp configurations in mono-repo by adding two new packages:

@nuxt/eslint-config

A shared public configuration that we recommend to Nuxt users to use for their Nuxt projects. It should not include any style-related rules and extend vue recommended preset + nuxt plugin (needs update? /cc @clarkdo) with typescript support out of the box.

@nuxt/eslint-config-internal

Extending public configuration and including rules such as unicorn rules and no-console are important for internal and module authors. It shall also set basic code styles (I'm happy with the current standard-js style). At the same time, I would like to consider supporting prettier compatibility and recommend it (#224) (with custom config no-semi, single-qoute)

Current monorepo packages

We shall keep maintaining them until adoption happens

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions