@bjoluc/eslint-config-xo-next
v2.0.1
Published
ESLint (using XO rules) and Prettier config for Next.js projects
Downloads
18
Readme
@bjoluc/eslint-config-xo-next
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"