2.0.1 • Published 6 months ago

@bjoluc/eslint-config-xo-next v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@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"