🎯 Target runtime: es2023 (Node >= 20)
⚠️ This module exports code using CommonJS
This module provides an eslint default rule-set configuration for shiftcode projects.
by using this module, the @shiftcode/eslint-plugin-rules module will be automatically included too.
sample .eslintrc.js file:
module.exports = {
// ...
// all child eslintrc configs from workspace packages inherit this extension
extends: [
'^shiftcode',
],
// ...
}
the following provided configurations might be included:
@shiftcode/recommended
: rule-set for common javascript and typescript files@shiftcode/recommended/ng-config
: angular-specific rule-set for angular apps
All the optional peer dependencies (@angular-eslint/*
) are only required if the ng-config
is used
it could be useful to create another configuration (i.e. shiftcode/node-config
)
used within services/backend workspaces, because the naming conventions aren't really the same as for a client workspace.
Examples:
- const PEdgeLabel = ...
- export const JwtGuardConfig = ...
- const { TextP } = process
- export function VersionedITOf<T,K> { ... }
- etc.