Collection of configs and linters that I use in my projects.
npm i -D @softsky/configs
A bunch of configs for TypeScript environments.
I don't know why would you want to, but feel free to.
Create eslint.config.mjs and put
// @ts-check
import skyEslintConfig from '@softsky/configs/eslint.config.mjs';
/** @type {import("typescript-eslint").Config} */
export default [
...skyEslintConfig,
];- Very strict
- TypeScript
- Stylistic
- Unused imports
- Import order
- Unicorn
Create tsconfig.json and put
{
"extends": "@softsky/configs/tsconfig.json"
}Also you can use @softsky/configs/tsconfig-emit.json to enable TSC emitting build.
- Latest syntax support (no transposing)
./srcis base directory@/...to reference root
Create prettier.config.mjs and put
// @ts-check
import skyPrettierConfig from '@softsky/configs/prettier.config.mjs';
/** @type {import("prettier").Config} */
export default {...skyPrettierConfig};- Developer expirience is more important than older browser support
- Single quote
Create stylelint.config.mjs and put
// @ts-check
/** @type {import("stylelint").Config} */
export default {
extends: ['@softsky/configs/stylelint.config.mjs'],
};- Prettier
- SCSS
- High performance animation
- Ordering