Socket
Book a DemoInstallSign in
Socket

eslint-plugin-brikke

Package Overview
Dependencies
Maintainers
5
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-brikke

Brikke custom ESLint rules

latest
npmnpm
Version
2.2.2
Version published
Maintainers
5
Created
Source

eslint-plugin-brikke

Brikke custom ESLint rules

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-brikke:

$ npm install eslint-plugin-brikke --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-brikke globally.

Usage

Add brikke to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "brikke"
    ]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "brikke/rule-name": ["off|warning|error"]
  }
}

Supported Rules

no-css-dist

no-undeclared-imports

// .eslintrc.js
module.exports = {
  rules: {
    'brikke/no-undeclared-imports': [
      'error',
      {
        excludedFilePatterns: ['*.spec.js', '*.spec.tsx', '*.spec.ts', '*.stories.js'],
        excludedModules: [/^\$src\//, '$config', /@brikke\/[^/]+\/dist\/.+/],
        // Path to a package.json containing a list of dependencies and/or devDependencies
        // to give a hint about about what type of dependency has been reported
        packageBlueprintFile: './foo/bar/package.json',
      },
    ],
  },
}

Keywords

eslint

FAQs

Package last updated on 01 Oct 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