Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/eslint-config / src / rules / overrides.js
Size: Mime:
module.exports = {
  rules: {
    // turned off because typescript
    'valid-jsdoc': ['off'],

    'no-case-declarations': 'OFF',
    'strict': 'OFF',

    // common goodness
    'no-underscore-dangle': 0,
    'no-mixed-requires': 0,
    'no-process-exit': 0,
    'no-warning-comments': 0,
    'no-alert': 1,


    // https://github.com/airbnb/javascript#functions

    // @TODO:
    // https://github.com/airbnb/javascript#es6-styles
    //
    // https://github.com/airbnb/javascript#arrows--one-arg-parens
    // https://github.com/airbnb/javascript#constructors--no-useless
    // https://github.com/airbnb/javascript#modules--no-wildcard
    // https://github.com/airbnb/javascript#modules--no-duplicate-imports
    // https://github.com/airbnb/javascript#modules--multiline-imports-over-newlines
    // https://github.com/airbnb/javascript#hoisting--about
    // https://github.com/airbnb/javascript#comparison--nested-ternaries
    // https://github.com/airbnb/javascript#blocks--cuddled-elses
    // https://github.com/airbnb/javascript#comments--multiline
    // https://github.com/airbnb/javascript#whitespace--chains
    // https://github.com/airbnb/javascript#whitespace--after-blocks
    // http://jscs.info/rule/disallowNodeTypes


    // nananenano/tsk-tsk ---

    'no-debugger': 1,

    'no-console': 0,
    'no-confusing-arrow': 'OFF',

    'require-jsdoc': 'OFF',
    'class-methods-use-this': 0,
    'no-process-env': 0,
    'prefer-reflect': 0,
    // https://eslint.org/docs/rules/nonblock-statement-body-position messes with curly braces
    'nonblock-statement-body-position': 0,
    // https://eslint.org/docs/3.0.0/rules/prefer-destructuring may enforce in reverse if debugging shows it was a painpoint
    'prefer-destructuring': 0,

    'prefer-template': 0,
    'global-require': 0,
    'no-invalid-this': 'OFF',

    // suggest using the spread operator instead of .apply()
    // https://github.com/airbnb/javascript#functions--spread-vs-apply
    // http://eslint.org/docs/rules/prefer-spread
    'prefer-const': 'error',
    'no-undefined': 'OFF',
    'prefer-spread': 'OFF',
    'no-implicit-coercion': 'OFF',
    'no-bitwise': 'OFF',
  }
}