@bjoluc/eslint-config-xo-next

2.0.1 • Public • Published

@bjoluc/eslint-config-xo-next

npm GitHub Workflow Status XO code style semantic-release

My ESLint (using XO rules, hence the package name) and Prettier config for Next.js projects. Note that it includes ESLint and Prettier as dependencies (so I don't have to update them in each project individually).

Usage

In (root) package.json:

"eslintConfig": {
	"extends": "@bjoluc/xo-next",
	"parser": "@typescript-eslint/parser",
	"root": true,
	"parserOptions": {
		"project": "tsconfig.json", // or ["package-a/tsconfig.json", "package-b/tsconfig.json"] in monorepos
		"tsconfigRootDir": "./"
	},
	"ignorePatterns": ["**/*.js"],
	"rules": {
		// ...
	}
},
"prettier": "@bjoluc/eslint-config-xo-next/prettier.config"

Readme

Keywords

none

Package Sidebar

Install

npm i @bjoluc/eslint-config-xo-next

Weekly Downloads

3

Version

2.0.1

License

MIT

Unpacked Size

4.7 kB

Total Files

5

Last publish

Collaborators

  • bjoluc