@void-aurora/eslint-config

0.12.0 • Public • Published

@void-aurora/eslint-config

eslint-config-version

Category: Style Guide

This package provides TypeScript ESLint configuration for Void Aurora, referred to eslint-config-airbnb-base.

Usage

Install

# use npm
npm i --save-dev @void-aurora/eslint-config
# use yarn
yarn add -D @void-aurora/eslint-config
# use pnpm
pnpm add -D @void-aurora/eslint-config

Config file

Add "extends": "@void-aurora" to your .eslintrc or .eslintrc.js.

// .eslintrc.js
module.exports = {
  extends: ['@void-aurora'],
};

Parsing error related to project config

Sometimes, your would get this error:


Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: xxx/xxx/xxx.js.
The file must be included in at least one of the projects provided.

You some includes your source code files in tsconfig.json for each package and includes these tsconfig.json files in .eslintrc.js. Like:

// tsconfig.json
{
  ...
  "include": ["lib", "src", "index.js"]
}
// .eslintrc.js
module.exports = {
  extends: ['@void-aurora'],
  parserOptions: {
    project: ['./tsconfig.json', './packages/*/tsconfig.json'],
  },
};

/@void-aurora/eslint-config/

    Package Sidebar

    Install

    npm i @void-aurora/eslint-config

    Weekly Downloads

    0

    Version

    0.12.0

    License

    MIT

    Unpacked Size

    145 kB

    Total Files

    18

    Last publish

    Collaborators

    • duduluu
    • void-aurora-bot