2.0.0 • Published 3 years ago

@raidorev/eslint-config v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

My ESLint configuration for TypeScript/Vue projects

This is my personal ESLint configuration for TypeScript/Vue projects. It uses quite a few plugins and have pretty strict rules.

Installation

npm install --save-dev eslint prettier typescript @raidorev/eslint-config
yarn add --save-dev eslint prettier typescript @raidorev/eslint-config
pnpm add --save-dev eslint prettier typescript @raidorev/eslint-config

Usage

In this configuration, the parserOptions.project is set to ./tsconfig.eslint.json to allow typescript-eslint to work with TypeScript's type checking APIs. Here's an example of what this file might look like:

{
  "extends": "./tsconfig.json",
  "include": [
    "src/**/*.ts",
    "src/**/*.tsx",
    "src/**/*.vue",
    "vite.config.ts",
    ".eslintrc.cjs",
    "stylelint.config.cjs"
  ]
}

Once you have created this file, you can extend the configuration in your ESLint config file like this:

module.exports = {
  extends: ["@raidorev"],
};

Plugins

This configuration uses the following plugins: