github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/webapp/.eslintrc.js (about) 1 const path = require('path'); 2 3 module.exports = { 4 extends: [path.join(__dirname, '../.eslintrc.js')], 5 ignorePatterns: ['public', 'javascript/util', '*.spec.*', '.eslintrc.js'], 6 7 rules: { 8 // https://github.com/import-js/eslint-plugin-import/issues/1650 9 'import/no-extraneous-dependencies': [ 10 'error', 11 { 12 packageDir: [process.cwd(), path.resolve(__dirname, '../')], 13 }, 14 ], 15 // since we use immutablejs in the reducer 16 'no-param-reassign': 'off', 17 }, 18 parserOptions: { 19 tsconfigRootDir: __dirname, 20 }, 21 };