Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bjoluc/eslint-config-xo-next
XO and Prettier config for Next.js projects
https://github.com/bjoluc/eslint-config-xo-next
Last synced: 14 days ago
JSON representation
XO and Prettier config for Next.js projects
- Host: GitHub
- URL: https://github.com/bjoluc/eslint-config-xo-next
- Owner: bjoluc
- License: mit
- Created: 2022-07-01T20:42:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-30T17:42:23.000Z (over 1 year ago)
- Last Synced: 2025-01-06T05:30:52.667Z (25 days ago)
- Language: JavaScript
- Size: 724 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @bjoluc/eslint-config-xo-next
[![npm](https://img.shields.io/npm/v/@bjoluc/eslint-config-xo-next/latest)](https://www.npmjs.com/package/@bjoluc/eslint-config-xo-next)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/bjoluc/eslint-config-xo-next/build.yml)](https://github.com/bjoluc/eslint-config-xo-next/actions)
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/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`:
```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"
```