eslint-config-vighnesh153

0.4.7 • Public • Published

eslint-config-vighnesh153

npm (scoped) GitHub GitHub issues

ESLint's configuration based on my preferences. No need to install any additional deps like eslint as this package comes bundled with it.

This only works within a Typescript project

Prerequisites

  • Install and configure typescript
npm install -D typescript
  • Create tsconfig.json file

You can also look at my @vighnesh153/tsconfig package

Installation

npm install -D eslint-config-vighnesh153

Usage

  • Add the following to your .eslintrc.js file
module.exports = {
  extends: ['vighnesh153/ts-base.eslintrc'],
  parserOptions: {
    project: './tsconfig.json',
  },
};
  • Create a .eslintignore file and add the following to it
*.js

Variants

You can use different variants of the configurations in different types of projects

  • Pure typescript project
module.exports = {
  extends: ['vighnesh153/ts-base.eslintrc'],
  parserOptions: {
    project: './tsconfig.json',
  },
};
  • ReactJS typescript library
module.exports = {
  extends: ['vighnesh153/react-ts-library.eslintrc'],
  parserOptions: {
    project: './tsconfig.json',
  },
};
  • NextJS typescript app
module.exports = {
  extends: ['vighnesh153/next-ts.eslintrc'],
  parserOptions: {
    project: './tsconfig.json',
  },
};

Package Sidebar

Install

npm i eslint-config-vighnesh153

Weekly Downloads

7

Version

0.4.7

License

none

Unpacked Size

7.39 kB

Total Files

6

Last publish

Collaborators

  • vighnesh153