0.0.8 ā€¢ Published 3 months ago

eslint-plugin-ninja v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

ESLint Plugin Ninja

Version GitHub license

The ultimate ESLint plugin.

www.dont.ninja

     // Make your code look like this!
         import šŸ‘ˆ from 'left-pad'
         import šŸŽ­ from 'is-even'

               let āœ‹ = '1'
            let šŸ”„ = +šŸ‘ˆ(āœ‹++, āœ‹)
       let šŸŒˆ = šŸ”„++ + ++āœ‹ + +šŸŽ­(++šŸ”„)
            let šŸŒÆ = šŸŒˆ + šŸ”„ * šŸ–ļø

// 12% of the people can't solve this! šŸ˜‚
       console.log(šŸ‘ˆ(āœ‹, šŸŒÆ, šŸŒˆ) + 1)

šŸš€ Install

npm i -D eslint-plugin-ninja
{
  "plugins": ["ninja"],
  "extends": ["plugin:ninja/recommended"],
  "rules": {
    "ninja/align": 2,
    "ninja/prefer-emoji": 1
  }
}

āœ… Rules

šŸ”§ Automatically fixable by the --fix CLI option.

NameDescriptionšŸ”§
alignenforce elegant text alignmentšŸ”§
declare-keywordenforce variable names to include their typešŸ”§
justifyenforce comments explaining codešŸ”§
justify2enforce text to be justifiedšŸ”§
lotteryrequire luck
monopolydisallow bad eslint configsšŸ”§
nodisallow everything
no-avoidable-loopdisallow useless for loopsšŸ”§
no-cidisallow running on CI lol
no-no-plusplusenforce the unary operators ++ and --šŸ”§
no-objectdisallow object literals, prefer MapšŸ”§
no-overtimedisallow overwork
no-randomdisallow non-deterministic randomnessšŸ”§
no-rushenforce a delay
no-tsdisallow gymnastics needed to please the TS compileršŸ”§
no-woofdisallow woof!šŸ”§
no-xkcddisallow xkcd referencesšŸ”§
optimize-string-ternarydisallow repetition when building strings with ternariesšŸ”§
prefer-emojirequire variables and properties to be named using emojisšŸ”§
prefer-npmrequire from npm instead of using JS builtinsšŸ”§
prefer-tabrequire word separators to be tabs, not spacesšŸ”§
yesenforce nothing

šŸ”’ License

MIT Ā© Azat S.