Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@funboxteam/eslint-config

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@funboxteam/eslint-config

ESLint rules that follow our style guide

  • 6.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

@funboxteam/eslint-config

npm

ESLint rules that follow our style guide.

Based on the well-known Airbnb JS Style Guide.

По-русски

Installation

npm install --save-dev @funboxteam/eslint-config

Usage

Include into a project config using flag -c, and pass paths for files as arguments:

eslint -c node_modules/@funboxteam/eslint-config/.eslintrc.js src/app src/sandbox

To lint tests files use the separated config:

eslint -c node_modules/@funboxteam/eslint-config/.eslintrc.tests.js src/tests

Also you can create your own .eslintrc.js and extend this config there:

module.exports = {
  extends: '@funboxteam',
  env: {
    browser: true
  },
  globals: {
    fetcher: 'readonly',
    System: 'readonly',
    moment: 'readonly'
  },
  settings: {
    'import/resolver': {
      webpack: {
        config: 'config/webpack.config.dev.js',
      }
    }
  },
}

Same for tests' config:

module.exports = {
  extends: '@funboxteam/eslint-config/tests',
  globals: {
    __utils__: 'readonly',
  }
}

Read more about .eslintrc.js in ESLint docs.

Sponsored by FunBox

Keywords

FAQs

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc