npm.io
7.0.1 • Published 7 months ago

@thermarthae/eslint-config

Licence
MIT
Version
7.0.1
Deps
7
Size
10 kB
Vulns
0
Weekly
0

@thermarthae/eslint-config

Just an ESLint config.

Setup

1) Install

This step assumes that you have already installed ESLint and Typescript.

yarn add -D @thermarthae/eslint-config
2) Configure ESLint

An example eslint.config.js:

Note: You may have to set the tsconfigRootDir path!

// If you don't need React support:
// import config from '@thermarthae/eslint-config/base';
import config from '@thermarthae/eslint-config';

export default [
	...config,
	{
		languageOptions: {
			parserOptions: {
				tsconfigRootDir: import.meta.dirname,
			},
		},
	},
];