3.0.2 • Published 7 years ago
tslint-config-minoris v3.0.2
tslint-config-minoris
⚠️ Deprecated: use eslint-plugin-shopfiy instead ⚠️
Minoris’s TSlint rules and configs.
Installation
Install TSlint and tslint-config-minoris:
With Yarn
yarn add --dev tslint tslint-config-minorisWith npm
npm install tslint tslint-config-minoris --save-devUsage
Minoris’s TSLint rules come bundled in tslint-config-minoris.
To enable these rules, create a tslint.json file at the root level of your project, and extend tslint-config-minoris.
{
"extends": "tslint-config-minoris"
}Now you can run TSLint by adding the following linting script to your package.json. See here for more script configurations.
{
"scripts": {
"lint": "tslint './src/**/*.{ts,tsx}' --project tsconfig.json"
}
}Run it:
With Yarn
yarn run tslintWith npm
npm run tslintConfiguration
- See here for more details on configuring your
tslint.json. - See here for all the rules provided by TSlint
Some of the rules configured in tslint-config-minoris may not be sufficient for your project. You can override these rules in tslint.json:
{
"extends": "tslint-config-minoris",
"rules": {
"no-console": false
}
}3.0.2
7 years ago