github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/packages/pyroscope-flamegraph/.eslintrc.js (about)

     1  const path = require('path');
     2  
     3  module.exports = {
     4    extends: [path.join(__dirname, '../../.eslintrc.js')],
     5    ignorePatterns: [
     6      'babel.config.js',
     7      'jest.config.js',
     8      'setupAfterEnv.ts',
     9      '*.spec.*',
    10      '.eslintrc.js',
    11      // This file is not actually bundled
    12      // TODO move it to ./testFixtures or something
    13      'src/FlameGraph/FlameGraphComponent/testData.ts',
    14    ],
    15  
    16    rules: {
    17      // https://github.com/import-js/eslint-plugin-import/issues/1650
    18      'import/no-extraneous-dependencies': [
    19        'error',
    20        {
    21          packageDir: [process.cwd(), path.resolve(__dirname, '../../')],
    22        },
    23      ],
    24    },
    25    parserOptions: {
    26      tsconfigRootDir: __dirname,
    27    },
    28  };