npm.io
0.6.20 • Published 3 years ago

@rakkasjs/eslint-config

Licence
MIT
Version
0.6.20
Deps
11
Size
4 kB
Vulns
0
Weekly
0
Stars
1.1K

@rakkasjs/eslint-config

This is a reusable ESLint configuration for TypeScript Rakkas applications. Although it is mainly intended for Rakkas applications, currently there is nothing Rakkas specific in it, it can be used for any React SSR project.

Usage

Install with npm install -D @rakkasjs/eslint-config and create a .eslintrc.cjs file with the following content:

require("@rakkasjs/eslint-config/patch");

module.exports = {
	root: true,
	extends: ["@rakkasjs"],
	parserOptions: { tsconfigRootDir: __dirname },
	settings: {
		"import/resolver": {
			typescript: {
				project: [__dirname + "/tsconfig.json"],
			},
		},
	},
};

It uses the rushstack ESLint patch so you don't have to install the ESLint plugins used by it.

Keywords