Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Karrys <luke@lukekarrys.com>2022-03-29 01:55:02 +0300
committerLuke Karrys <luke@lukekarrys.com>2022-03-30 00:51:53 +0300
commitaac01b89caf6336a2eb34d696296303cdadd5c08 (patch)
treec322cc32001ab169bd2e9e335ba7e4a45f31b4aa /.eslintrc.js
parentb48a2bfde3745fa21ea4fc18d6f562fd82f82545 (diff)
deps: @npmcli/template-oss@3.2.1
- `no-shadow` was disabled for the cli and arborist due to the amount of changes required. These should be fixed later. - Manually updated linting in the cli root to match closer to what template-oss does - Included docs to be managed with template-oss. This required adding an empty test for now, with the plan to add real tests later.
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 000000000..1718f033c
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,13 @@
+const { readdirSync: readdir } = require('fs')
+
+const localConfigs = readdir(__dirname)
+ .filter((file) => file.startsWith('.eslintrc.local.'))
+ .map((file) => `./${file}`)
+
+module.exports = {
+ root: true,
+ extends: [
+ '@npmcli',
+ ...localConfigs,
+ ],
+}