@sjkey/eslint-config-vue
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

@sjkey/eslint-config-vue

My ESlint configuration, based on antfu/eslint-config

This package is designed for Nuxt and Vue projects using the new ESLint Flat config

It provides a custom ESLint configuration, @sjkey/eslint-config-vue, to help you maintain consistent code style and enforce best practices in your projects including:

  • TypeScript
  • Vue
  • Tailwind
  • Prettier
  • Sorted imports
  • Unicorn
  • Yaml
  • and more ...

Installation

# Using pnpm
pnpm i -D @sjkey/eslint-config-vue

# Using npm
npm i -D @sjkey/eslint-config-vue

# Using yarn
yarn add -D @sjkey/eslint-config-vue

Configuration

  1. Create a eslint.config.ts file in the root directory.

  2. Open the eslint.config.ts file and add the following code:

    import sjkeyConfig from '@sjkey/eslint-config-vue'
    
    export default sjkeyConfig()
  3. Sometimes a reload is required in VS Code

VS Code Support

// .vscode/settings.json
{
  // Enable ESLint flat config support
  "eslint.experimental.useFlatConfig": true
}

License

This project is licensed under the MIT License.

Package Sidebar

Install

npm i @sjkey/eslint-config-vue

Weekly Downloads

18

Version

0.2.2

License

MIT

Unpacked Size

102 kB

Total Files

6

Last publish

Collaborators

  • sjkey