1.3.3 • Published 3 months ago

@softsky/configs v1.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Sky configs

Collection of configs and linters that I use in my projects.

Latest Stable Version NPM Downloads NPM Downloads Bundlephobia Size

npm i -D @softsky/configs

A bunch of configs for TypeScript environments.

Contribute

I don't know why would you want to, but feel free to.

Setup

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