2.2.2 • Published 3 years ago

eslint-plugin-brikke v2.2.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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',
      },
    ],
  },
}
2.2.1

3 years ago

2.2.2

3 years ago

2.2.0

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

4 years ago

1.1.0

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.0

5 years ago