How to use the @polkadot/dev/config/eslint.parserOptions function in @polkadot/dev

To help you get started, we’ve selected a few @polkadot/dev 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 polkadot-js / api / .eslintrc.js View on Github external
const base = require('@polkadot/dev/config/eslint');

module.exports = {
  ...base,
  parserOptions: {
    ...base.parserOptions,
    project: [
      './tsconfig.json'
    ]
  },
  rules: {
    ...base.rules,
    // add override for any (a metric ton of them, initial conversion)
    '@typescript-eslint/no-explicit-any': 'off',
    // these should be removed, there are 8 of them as errors
    '@typescript-eslint/no-non-null-assertion': 'off'
  }
};
github polkadot-js / common / .eslintrc.js View on Github external
const base = require('@polkadot/dev/config/eslint');

module.exports = {
  ...base,
  parserOptions: {
    ...base.parserOptions,
    project: [
      './tsconfig.json'
    ]
  }
};
github polkadot-js / tools / .eslintrc.js View on Github external
const base = require('@polkadot/dev/config/eslint');

module.exports = {
  ...base,
  parserOptions: {
    ...base.parserOptions,
    project: [
      './tsconfig.json'
    ]
  }
};

@polkadot/dev

A collection of shared CI scripts and development environment used by @polkadot projects

Apache-2.0
Latest version published 13 days ago

Package Health Score

70 / 100
Full package analysis

Similar packages