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

@looker/eslint-config

Package Overview
Dependencies
Maintainers
8
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@looker/eslint-config

[![npm version](https://badge.fury.io/js/@looker/eslint-config.svg)](https://badge.fury.io/js/@looker/eslint-config) [![GitHub license](https://img.shields.io/github/license/looker-open-source/eslint-config.svg)](https://github.com/looker-open-source/esli

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-20%
Maintainers
8
Weekly downloads
 
Created
Source

@looker/eslint-config

npm version GitHub license

looker-open-source Typescript / Javascript Configuration

This repository provides shared configuration for tooling used in Typescript/Javascript projects in development as part of the looker-open-source organization

It provides configurations for:

We've included support for React & Styled Components in our configurations as they're very commonly used in Looker Typescript projects.

Installation

The default export contains all default Airbnb ESLint rules, including ECMAScript 6+, and the ones listed below. It requires some peerDependencies as well.

Install the package with

yarn add @looker/eslint-config eslint -D

# or
npm install @looker/eslint-config --save-dev

Then install the correct versions of each peerDependency package, which are listed by the command:

yarn add @looker/eslint-config -D --peer

# or
npx install-peerdeps --dev @looker/eslint-config

Usage

ESLint

Add the config to either your package.json:

{
  "eslintConfig": {
    "extends": "@looker/eslint-config"
  }
}

to your eslint.config.js (or .eslintrc.js):

module.exports = {
  extends: '@looker/eslint-config',
}

NOTE: Adding an eslint.config.js file will allow you to add your own rules to so that your package can add (or disable) additional lint rules as needed:

module.exports = {
  extends: ['@looker/eslint-config/workspaces'],
  rules: {
    /* @TODO - To level-up our code quality we shouldn't ever use `any` */
    '@typescript-eslint/no-explicit-any': 'off',
  },
}
Yarn Workspaces Support

Need to support a project leveraging Yarn Workspaces? Use: @looker/eslint-config/workspaces

Prettier

See Prettier-specific README

StyleLint

Now add the config to either your package.json:

{
  "stylelint": {
    "extends": "@looker/eslint-config/stylelint"
  }
}

to your stylelint.config.js:

module.exports = {
  extends: ['@looker/eslint-config/stylelint'],
}

LICENCE

MIT

FAQs

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

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