Tallarium Shared Lint Configs
npm run build
will create configuration files in
dist. Note that copying the files in this directory is not
the preferred method for use in other projects.
Develop locally with other projects
In the lenz directory:
and in the other project's directory
npm link @tallarium/lenz
Each time you want Lenz configuration changes to be reflected in other linked projects, build using the above instructions.
Follow the standard NPM package release instructions.
Lenz is a package which is expected to require work on most upgrades. It should stay on major version 0 because it will never really provide a "stable API".
The examples below are the basic files required to use a Lenz deployment in another project.
Where the file is extended, this means that project-specific configuration supplied in the json file will take precedence over that specified in Lenz.
module.exports = require("@tallarium/lenz/dist/templatelint");
When running TSLint, make sure to pass it the tsconfig file so it can run rules requiring type info correctly:
tslint --project tsconfig.json