Personal and opinionated ESLint + Prettier shareable configuration with batteries included. This configuration uses XO as the base config.
Install this package with your favorite package manager
# using npm
npm install eslint-config-namchee -D
# using yarn
yarn add eslint-config-namchee -D
# using pnpm
pnpm add eslint-config-namchee -D
# using bun
bun add eslint-config-namchee -D
To use the ESLint configuration, extend this configuration in your ESLint configuration file.
module.exports = {
extends: ['eslint-config-namchee'], // or 'namchee' for short
// ...
}
Do note that this configuration is meant to be used with TypeScript in mind. Some features might not be compatible or available for vanilla JavaScript.
To use the Prettier configuration, extend this configuration in your Prettier configuration file. Refer to the official documentation for how to extend Prettier configuration file.
Below is the example of how to extend the configuration from your package.json
:
{
"name": "<your_cool_package>",
"version": "0.0.1",
"prettier": "eslint-config-namchee/prettier.config.js"
}
This project is licensed under the MIT License