@ayato-san/tooling-configs
v2.0.4
Published
My custom tooling settings
Downloads
20
Maintainers
Readme
Features
- Designed to work with Prettier, Typescript, JSX, Node, AdonisJS out of the box
- Lint json files ( TSConfig, package.json )
- Super easy to use ( one line of code )
- ESLint flat config
- Use .gitignore as ignore file
Usage
[!IMPORTANT]
- This config is using the new ESLint Flat config
- New/updated rules will not be considered as breaking changes. Only API changes will be considered as breaking changes.
Install
npm i -D @ayato-san/tooling-configs
Eslint
// eslint.config.js esm
import { configure } from '@ayato-san/tooling-configs/eslint'
export default await configure({
// Your config here
})
// eslint.config.js commonjs
const { configure } = require('@ayato-san/tooling-configs/eslint')
module.exports = configure({
// Your config here
})
You don't need
.eslintignore
as it has been provided by the preset.
Add script for package.json
For example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
Prettier
use the default config
{
"prettier": "@ayato-san/tooling-configs/prettier/default"
}
use the config with the plugin edgejs
{
"prettier": "@ayato-san/tooling-configs/prettier/edgejs"
}
Tsconfig
for node (ESM) development
{
"extends": "@ayato-san/tooling-configs/tsconfig.app"
}
for browser client development
{
"extends": "@ayato-san/tooling-configs/tsconfig.browser"
}
for package development
{
"extends": "@ayato-san/tooling-configs/tsconfig.package"
}