@awboost/eslint-config
v0.3.2
Published
Shared eslint config for awboost packages
Downloads
16
Readme
@awboost/eslint-config
An opinionated ESLint config for the @awboost packages.
Configs
A sample eslint config js showing all available configs:
import awboostConfig from "@awboost/eslint-config";
export default [
// eslint/recommended, unicorn/recommended, and n/recommended with some tweaks
awboost.configs.base,
// typescript-eslint/strict-type-checked and
// typescript-eslint/stylistic-type-checked with some tweaks
awboost.configs["ts-base"],
// turn off rules restricting use of `any` type
awboost.configs["ts-relaxed-any"],
];
Rules
The raw rule sets are also available for building more custom config:
import awboostConfig from "@awboost/eslint-config";
export default [
{
files: "core/src/**/*.ts",
rules: {
...awboost.rules.base,
...awboost.rules["ts-base"],
...awboost.rules["ts-strict"],
...awboost.rules["ts-stylistic"],
},
},
];