@younho9/eslint-plugin
v0.6.1
Published
Personal ESLint plugin with multiple configs
Downloads
5
Readme
@younho9/eslint-plugin
Personal ESLint plugin with multiple configs
Install
Install @younho9/eslint-plugin
with peerDependencies.
$ npx install-peerdeps --dev @younho9/eslint-plugin
Usage
.eslintrc.js
or .eslintrc.cjs
/** @type {import("@types/eslint").Linter.Config } */
module.exports = {
root: true,
extends: ['plugin:@younho9/recommended'],
/** @see https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#configuration */
parserOptions: {
project: [
'./tsconfig.json',
'./packages/*/tsconfig.json', // if you use monorepo
],
ecmaVersion: 'latest',
},
settings: {
/** @see https://github.com/import-js/eslint-plugin-import#importparsers */
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
},
};