How to use the eslint-plugin-ember.configs function in eslint-plugin-ember

To help you get started, we’ve selected a few eslint-plugin-ember 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 buschtoens / ember-lazy-mount / .eslintrc.js View on Github external
],
      parserOptions: {
        sourceType: 'script',
        ecmaVersion: 2015
      },
      env: {
        browser: false,
        node: true
      },
      plugins: ['node'],
      rules: Object.assign(
        {},
        require('eslint-plugin-node').configs.recommended.rules,
        fromPairs(
          Object.keys(
            require('eslint-plugin-ember').configs.recommended.rules
          ).map(k => [k, 'off'])
        ),
        {
          // add your custom rules and overrides for node files here
        }
      )
    }
  ]
};
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-plugin-ember

ESLint plugin for Ember.js apps

MIT
Latest version published 30 days ago

Package Health Score

89 / 100
Full package analysis

Popular eslint-plugin-ember functions