Socket
Book a DemoInstallSign in
Socket

@lcgroup.tools/linters

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lcgroup.tools/linters

LCGroup ESLint configs for Angular apps

latest
Source
npmnpm
Version
2.0.3
Version published
Maintainers
4
Created
Source

@lcgroup.tools/linters

ESlint rules for Angular applications.

Setup

Install from npm

npm i @lcgroup.tools/linters --save-dev

ESLint + Prettier

Include configurations:

.eslintrc.js

module.exports = {
    extends: ['./node_modules/@lcgroup.tools/linters/eslint'],
};

.prettierrc.js

module.exports = {
    ...require('./node_modules/@lcgroup.tools/linters/prettier/prettier.config.js'),
};

Add npm-script:

"lint": "npx eslint --config ./.eslintrc.js --debug "src/**/*.{js,ts,html}"",
"lint:fix": "npx eslint --config ./.eslintrc.js --fix --debug "src/**/*.{js,ts,html}""

Add .eslintignore file

dist
node_modules
coverage
*.less
*.css

Stylelint

stylelint.config.js

const styleLint = require('@lcgroup.tools/linters/stylelint/stylelint.config.js');

module.exports = {
    ...styleLint,
    rules: {
        ...styleLint.rules,
        'no-empty-source': null,
    },
};

Add npm-script:

"lint": "npx stylelint --config ./.stylelintrc \"src/**/*.less\"",
"lint:fix": "npx stylelint --config ./.stylelintrc --fix \"src/**/*.less\""

VSCODE

.vscode/settings.json

"stylelint.validate": [
    "css",
    "less",
    "postcss",
    "scss"
],

Keywords

eslint

FAQs

Package last updated on 24 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts