@eliasjnior/eslint-config-settings
v1.0.2
Published
Install the module using one of the following commands (depending if you're using NPM or Yarn in your project):
Downloads
25
Readme
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