@softsky/configs
v1.0.7
Published
SoundOfTheSky's configs
Downloads
452
Maintainers
Readme
@softsky/configs
Collection of configs and linters that I use in my projects.
Installation
npm i -D @softsky/configs
ESLint
Create eslint.config.mjs
and put
// @ts-check
import skyEslintConfig from '@softsky/configs/eslint.config.mjs';
/** @type {import("typescript-eslint").Config} */
export default [
...skyEslintConfig,
];
Features
- Very strict
- TypeScript
- Stylistic
- Unused imports
- Import order
- Unicorn
TSConfig
Create tsconfig.json
and put
{
"extends": "@softsky/configs/tsconfig.json"
}
Also you can use @softsky/configs/tsconfig-emit.json
to enable TSC emitting build.
Features:
- Latest syntax support (no transposing)
./src
is base directory@/...
to reference root
Prettier
Create prettier.config.mjs
and put
// @ts-check
import skyPrettierConfig from '@softsky/configs/prettier.config.mjs';
/** @type {import("prettier").Config} */
export default {...skyPrettierConfig};
Features:
- Developer expirience is more important than older browser support
- Single quote
Stylelint
Create stylelint.config.mjs
and put
// @ts-check
/** @type {import("stylelint").Config} */
export default {
extends: ['@softsky/configs/stylelint.config.mjs'],
};
Features
Prettier
SCSS
High performance animation
Ordering