Skip to content

Commit

Permalink
fix(plugin): renaming the plugin to eslint-plugin-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Oct 31, 2023
1 parent 8639126 commit ec48ada
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/eslint-config/esm.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import("eslint-define-config").ESLintConfig} */
const config = {
extends: ['plugin:require-extensions/recommended', 'plugin:@readme/esm'],
plugins: ['require-extensions', 'unicorn', '@readme'],
extends: ['plugin:require-extensions/recommended', 'plugin:readme/esm'],
plugins: ['require-extensions', 'unicorn', 'readme'],
rules: {
// see here for more rules to possibly enable in the future:
// https://gist.github.com/Jaid/164668c0151ae09d2bc81be78a203dd5
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"test": "tsc"
},
"dependencies": {
"@readme/eslint-plugin": "file:../eslint-plugin",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"eslint-config-airbnb-base": "^15.0.0",
Expand All @@ -37,6 +36,7 @@
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-readme": "file:../eslint-plugin",
"eslint-plugin-require-extensions": "^0.1.3",
"eslint-plugin-testing-library": "^6.0.1",
"eslint-plugin-typescript-sort-keys": "^3.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/eslint-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ Custom ESLint plugin for some ReadMe engineering guidelines and gotchas.

[![](https://raw.githubusercontent.com/readmeio/.github/main/oss-header.png)](https://readme.io)

[![npm](https://img.shields.io/npm/v/@readme/eslint-plugin)](https://npm.im/@readme/eslint-plugin) [![Build](https://github.com/readmeio/standards/workflows/CI/badge.svg)](https://github.com/readmeio/standards)
[![npm](https://img.shields.io/npm/v/eslint-plugin-readme)](https://npm.im/eslint-plugin-readme) [![Build](https://github.com/readmeio/standards/workflows/CI/badge.svg)](https://github.com/readmeio/standards)

## Usage

In `.eslintrc` file add the following line:

```js
extends: ['plugin:@readme/<config>'],
plugins: ['@readme'],
extends: ['plugin:readme/<config>'],
plugins: ['readme'],
```

## 🔖 Available Configs
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@readme/eslint-plugin",
"name": "eslint-plugin-readme",
"version": "1.1.0",
"description": "ESLint plugin providing custom rules for ReadMe's coding standards",
"main": "index.js",
Expand Down

0 comments on commit ec48ada

Please sign in to comment.