npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

flamingo-carotene-es-lint

v9.0.0-alpha.13

Published

Provide the standalone version and flamingo-carotene-webpack loader of es lint

Downloads

30

Readme

Module flamingo-carotene-es-lint

This package makes use of the ESLint to ensure a basic level of code quality and coding standards within a project.

How to use

npm i -D flamingo-carotene-es-lint

The ESLint module knows of 2 types of working.

  1. It integrates into the webpack config by adding the eslint-loader as a preloader for js files. By default this will not break the webpack compiler as it would normally do, even if linting errors were found, unless you set the breakOnError config to true. That is the default.
  2. It runs in a child process that will run in parallel to the webpack process. This one will not break the webpack compile.

The ESLint module will listen to the following commands: lint, build, watchWebpackJs

How it works

The ESLint module will provide the default eslint-config-flamingo-carotene ESLint config and a default .eslintignore to let you start right away.

To let you customize the configs, the module searches for all the possibilities to provide config and if it finds one, it goes with this.

For ESLint config, the following configs will be found:

  • eslintConfig property inside the package.json
  • files in the project root with these names: .eslintrc, .eslintrc.js, .eslintrc.yaml, .eslintrc.yml, .eslintrc.json

For ESLint ignore config, the following configs will be found:

  • eslintIgnore property inside the package.json
  • a file in the project root with the name: .eslintignore

How to configure

This module exposes the following config

config.paths.eslint = path/to/the/node/module

eslint The path to this module in your project

config.eslint = {
  useWebpackLoader: true,
  breakOnError: false,
  configFilePath: null when found in project || default from module,
  ignoreFilePath: null when found in project || default from module,
  fixErrors: null when found in project || default from module,
  extentions: ['.js'] when found in project || default from module,
}

useWebpackLoader True (default) to use the webpack loader, false to use it standalone

breakOnError True to exit the process with code 1 when an error was found and in case the webpack loader is in use, break the webpack compile. False to only write it to output (default). Will be set to true for production build automatically.

configFilePath Path to an ESLint config file. Does not have to be provided when using the standard config options supported by ESLint (see 'How it works').

ignoreFilePath Path to an ESLint ignore file. Does not have to be provided when using the standard ignore options supported by ESLint (see 'How it works').

fixErrors boolean - uses the '--fix' option for esLint (default = false) supported by ESLint (see 'How it works').

'extentions: array of Strings (default = ['.js'])