0.0.4 • Published 8 months ago
@cyntler/eslint-config v0.0.4
@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