0.0.2 • Published 6 months ago
@paradigma.me/lint-config v0.0.2
Lint config
A package that contains configuration linting and prettier for technologies: Angular, React and Vue.
How to use?
Inside application where you want use npm package, install package npm i -D @paradigma.me/lint-config
make sure the peerDependecies are all installed correctly for the package to work
Example, in an Angular application create file eslint.config.js
import index from '@paradigma.me/lint-config';
import angular from '@paradigma.me/lint-config';
export default [...index, ...angular]How do you use SCSS linting?
- Installing Dependencies To use the Stylelint configuration for SCSS, install the following dependencies:
npm install --save-dev stylelint stylelint-scss postcss-scss stylelint-config-standard-scss
- Configuration Create a .stylelintrc.json file in the root of your project:
{ "extends": "@paradigma.me/lint-config/scss" }
- Script in package.json Add a script to run linting in your package.json:
{ "scripts": { "lint:scss": "stylelint '*/.scss'" } }
- Running Run the linting with:
npm run lint:scss