fix eslint package name

Required to be named `../eslint-config`

https://eslint.org/docs/latest/developer-guide/shareable-configs#npm-scoped-modules
This commit is contained in:
r1oga
2022-12-14 17:09:13 +01:00
parent 8835c2aa9e
commit 5fdd543191
2 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "@r1oga/config-eslint",
"name": "@r1oga/eslint-config",
"version": "1.1.1",
"description": "Shared eslint configuration",
"main": ".eslintrc.yaml",

View File

@@ -1,6 +1,5 @@
#!/bin/bash
lib=@r1oga/config-eslint
echo "extends: $lib" > "$INIT_CWD/.eslintrc.yaml"
# see sharing eslint config & npm scoped modules https://eslint.org/docs/latest/developer-guide/shareable-configs#npm-scoped-modules
echo "extends: ['@r1oga']" > "$INIT_CWD/.eslintrc.yaml"
cp .eslintignore "$INIT_CWD/.eslintignore"