Skip to content

Standard ESLint for use in projects with React and Node with Typescript

Notifications You must be signed in to change notification settings

eliasjnior/eslint-config-settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Install the module using one of the following commands (depending if you're using NPM or Yarn in your project):

npm install --save-dev @eliasjnior/eslint-config-settings
yarn add -D @eliasjnior/eslint-config-settings

After that you need to install the peer dependencies:

npx install-peerdeps --dev @eliasjnior/eslint-config-settings

Now you're good to go creating your .eslintrc.js file:

React Project

module.exports = {
  extends: [
    '@eliasjnior/eslint-config-settings/react',
  ],
  parserOptions: {
    project: './tsconfig.json',
  }
}

Node project

module.exports = {
  extends: [
    '@eliasjnior/eslint-config-settings/node',
  ],
  parserOptions: {
    project: './tsconfig.json',
  }
}

Source code

Testing out

Run the NPM link inside this project to link the project:

npm link

Run the other command inside the project:

npm link @eliasjnior/eslint-config-settings

About

Standard ESLint for use in projects with React and Node with Typescript

Topics

Resources

Stars

Watchers

Forks