How to use the @strv/eslint-config-base/globs.esmodules function in @strv/eslint-config-base

To help you get started, we’ve selected a few @strv/eslint-config-base 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 strvcom / code-quality-tools / packages / eslint-config-node / index.js View on Github external
'node/shebang': 'warn',

    // Disallow deprecated API
    // Node has many deprecated API. The community is going to remove those API from Node in future,
    // so we should not use those.
    'node/no-deprecated-api': 'warn',
  },

  overrides: [{
    files: globs.javascripts,

    parserOptions: {
      sourceType: 'script',
    },
  }, {
    files: globs.esmodules,

    parserOptions: {
      sourceType: 'module',
    },

    env: {
      es6: true,
    },

    rules: {
      // Report modules without any exports & individual exports not being statically imported or
      // requireed from other modules in the same project
      'import/no-unused-modules': ['warn', {
        missingExports: true,
        unusedExports: true,
      }],

@strv/eslint-config-base

STRV's ESLint configuration preset

BSD-3-Clause
Latest version published 9 months ago

Package Health Score

65 / 100
Full package analysis