npm-normalize-package-bin/.eslintrc.js
raw| 1 | /* This file is automatically added by @npmcli/template-oss. Do not edit. */ |
| 2 | |
| 3 | 'use strict' |
| 4 | |
| 5 | const { readdirSync: readdir } = require('fs') |
| 6 | |
| 7 | const localConfigs = readdir(__dirname) |
| 8 | .filter((file) => file.startsWith('.eslintrc.local.')) |
| 9 | .map((file) => `./${file}`) |
| 10 | |
| 11 | module.exports = { |
| 12 | root: true, |
| 13 | extends: [ |
| 14 | '@npmcli', |
| 15 | ...localConfigs, |
| 16 | ], |
| 17 | } |