Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including eslint-config-videoamp with all npm packages installed. Try it out:

require("eslint/package.json"); // eslint is a peer dependency. require("typescript/package.json"); // typescript is a peer dependency. var eslintConfigVideoamp = require("eslint-config-videoamp")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

eslint-config-videoamp v5.2.0

VideoAmp's base ESLint config for our Typescript projects

eslint-config-videoamp

npm version

This package uses ESLint to enforce VideoAmp's code style and provides a shared base configuration for our Typescript projects.

Install

yarn

yarn add eslint-config-videoamp eslint --dev

Usage

Create a .eslintrc file in base of your project:

For Node Projects

{
    extends: 'videoamp'
}

For React Projects

{
    extends: 'videoamp/react'
}

Enabling Prettier

Add "prettier": "eslint-config-videoamp/prettier.config" to your package.json.

Contributing

You can make sure this module lints with itself using yarn lint.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free