Skip to content

cyntler/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm-version npm-download

@cyntler/eslint-config

My personal configuration for ESLint.

Installing

To install this configuration, run the command below.

npm i -D eslint @rushstack/eslint-patch @cyntler/eslint-config # npm
yarn add -D eslint @rushstack/eslint-patch @cyntler/eslint-config # Yarn

How to use?

For this configuration, the name of the ESLint configuration file should be: .eslintrc.js and saved as a .js file to be able to use require keyword.

.eslintrc.js

require("@rushstack/eslint-patch/modern-module-resolution");

module.exports = {
  extends: "@cyntler/eslint-config",
  parserOptions: { tsconfigRootDir: __dirname },
};

You should also add a .eslintignore file to list all paths and files that should be avoided by ESLint.
It's a good idea to list the eslintrc.js file here, if ESLint reports any warnings or errors in this file.

.eslintignore

.eslintrc.js