Skip to content

aabeborn/tirion

Repository files navigation

@aabeborn/tirion

linting and setup code with style 💅🏻🕺🏻🔎

GitHub version

Lazy (but friendly :) ) dev here! These are my personal eslint and prettier configurations.

Usage

Installation

First add to your .npmrc file the npm registry where package is published:

# .npmrc
@aabeborn:registry='https://npm.pkg.github.com'

For bun add to bunfig.toml:

[install.scopes]
"@aabeborn" = { token = "$GITHUB_TOKEN", url = "https://npm.pkg.github.com" }

Then install it by running one of the following commands:

npm install --save-dev @aabeborn/tirion
pnpm add --save-dev @aabeborn/tirion
bun install --save-dev @aabeborn/tirion

Setup Prettier

To setup prettier add the following lines to prettier.config.js:

ATTENTION: It uses Prettier v3 so remember to setup the project with type:module in package.json or use a .prettierrc.cjs file

import config from '@aabeborn/tirion/prettier'

return {
	...config
}

Setup Eslint

To setup eslint add the following lines to your .eslintrc.js or .eslintrc.cjs in type:module repos:

const config = require('@aabeborn/tirion/eslint')

module.exports = {
	root: true,
	...config
}

License

MIT