@vevo/eslint-config-vevo

1.0.3 • Public • Published

eslint-config-vevo

Project eslint-config-vevo managed by the web team

GOCD Pipeline

Installation/Updating

ESLint still requires plugins to be installed in each project's directory, so you'll have to run a little script to install all of the packages required when building a new package. If you are updating eslint versions, then you will want to rerun this to install the correct peer dependencies.

(
  export PKG=@vevo/eslint-config-vevo;
  yarn add --dev $PKG
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs yarn add --dev "$PKG@latest"
)

make a config file: .eslintrc.js:

module.exports = {
  extends: ["@vevo/eslint-config-vevo"]
};

Fix issues in npm:

scripts: {
  "lint": "eslint src/**/*.{js,jsx}",
  "lint:fix": "prettier-eslint src/**/*.{js,jsx} --write",
}

Autofixing with VS Code

Install both prettier and eslint plugins, then add these lines to your user preferemnces file (CMD+SHIFT+P+user).

// Set the default
"editor.formatOnSave": true,
"prettier.eslintIntegration": true,
// Enable per-language
"javascript.format.enable": false,

Readme

Keywords

Package Sidebar

Install

npm i @vevo/eslint-config-vevo

Weekly Downloads

69

Version

1.0.3

License

ISC

Unpacked Size

19.3 kB

Total Files

13

Last publish

Collaborators

  • jprincevevo
  • sluedke-vevo
  • bncroye
  • asfo
  • shal-xu
  • ilyavevo
  • davidmerrick
  • kylepaulsen
  • vevoadmin
  • ci-vevo
  • benjaminverble
  • chriswire
  • vevo-cd
  • var-nazari
  • vevovish
  • emonical
  • actualadam
  • pkulak
  • alexyamashita-vevo
  • shanehollon
  • mcspera
  • jfaucher-vevo
  • pajtai
  • scodx
  • lukechinworth
  • cooper.hilscher
  • csiems