Lazy (but friendly :) ) dev here! These are my personal eslint
and prettier
configurations.
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
To setup prettier add the following lines to prettier.config.js
:
ATTENTION: It uses
Prettier v3
so remember to setup the project withtype:module
inpackage.json
or use a.prettierrc.cjs
file
import config from '@aabeborn/tirion/prettier'
return {
...config
}
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
}
MIT