📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

eslint-plugin-alias-paths

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-alias-paths

eslint plugin for detect & autofix alias path. # install

0.0.1
latest
Source
npm
Version published
Maintainers
1
Created
Source

eslint-plugin-alias-paths

eslint plugin for detect & autofix alias path.

install

yarn add -D eslint-plugin-alias-paths

usage

module.exports = {
    env: {
        browser: true,
        es2020: true,
    },
    extends: [],
    parser: "@typescript-eslint/parser",
    parserOptions: {
        ecmaVersion: 11,
        sourceType: "module",
    },
    plugins: [
        "alias-paths",
    ],
    rules: {
        "alias-paths/prefer-alias-paths": [
            "warn"
            {
                basePath: resolve(__dirname), // base path for project
                targetPath: "./", // base of alias path
                aliasedPath: "@/", // path for aliased path
                depth: 2, // target minimum relative path depth
            }
        ],
    },
};

FAQs

Package last updated on 11 Dec 2020

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