How to use the eslint-config-sane.rules function in eslint-config-sane

To help you get started, we’ve selected a few eslint-config-sane examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kellyselden / ember-macro-helpers / .eslintrc.js View on Github external
},

    {
      files: ['vendor/**/*.js'],
      parserOptions: {
        ecmaVersion: 5,
        sourceType: 'script'
      },
      env: {
        amd: true
      },
      globals: {
        Ember: 'readonly'
      },
      rules: Object.keys({
        ...require('eslint-config-sane').rules,
        ...require('eslint-plugin-ember').configs.recommended.rules
      }).reduce((rules, rule) => {
        rules[rule] = 0;
        return rules;
      }, {})
    }
  ]
};

eslint-config-sane

A sane JavaScript style

MIT
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis

Popular eslint-config-sane functions