Eslint Disable Max Len

Nov 3, 2017

Edit .eslintrc.js file in your project folder, add 'max-len': 0 in the rules section.

Based on ESLint Configuring Rules:

  • "off" or 0 - turn the rule off
  • "warn" or 1 - turn the rule on as a warning (doesn’t affect exit code)
  • "error" or 2 - turn the rule on as an error (exit code is 1 when triggered)
// http://eslint.org/docs/user-guide/configuringmodule.exports = {  ...  // optional: you can use https://www.npmjs.com/package/eslint-config-airbnb  extends: 'airbnb-base',  ...  // add your custom rules here  'rules': {    'max-len': 0  }}

If you want to enable max-len linting

// warn, maximum length of 80, tab width 4max-len: [1, 80, 4]

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.