eslint-mdx
Advanced tools
Comparing version 0.11.1 to 0.11.2-beta.0
{ | ||
"name": "eslint-mdx", | ||
"version": "0.11.1", | ||
"version": "0.11.2-beta.0+9b89890", | ||
"description": "ESLint Parser for MDX", | ||
@@ -27,3 +27,3 @@ "repository": "git@github.com:rx-ts/eslint-mdx.git", | ||
}, | ||
"gitHead": "beadaf173e5165cdd4fe9460dfb048a2489b0414" | ||
"gitHead": "9b89890ee71689a27b4e2a127de873a16a10d707" | ||
} |
@@ -15,3 +15,3 @@ <p align="center"> | ||
[![Codecov](https://img.shields.io/codecov/c/gh/rx-ts/eslint-mdx)](https://codecov.io/gh/rx-ts/eslint-mdx) | ||
[![type-coverage](https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Frx-ts%2Feslint-mdx%2Fmaster%2Fpackage.json)](https://github.com/rx-ts/eslint-mdx) | ||
[![type-coverage](https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Frx-ts%2Feslint-mdx%2Fmaster%2Fpackage.json)](https://github.com/plantain-00/type-coverage) | ||
[![GitHub release](https://img.shields.io/github/release/rx-ts/eslint-mdx)](https://github.com/rx-ts/eslint-mdx/releases) | ||
@@ -71,2 +71,3 @@ [![David Dev](https://img.shields.io/david/dev/rx-ts/eslint-mdx.svg)](https://david-dm.org/rx-ts/eslint-mdx?type=dev) | ||
```js | ||
const { configs } = require('@rxts/eslint-plugin-mdx') | ||
const rebass = require('rebass') | ||
@@ -77,24 +78,8 @@ | ||
overrides: [ | ||
{ | ||
files: ['*.mdx'], | ||
globals: Object.keys(rebass).reduce( | ||
(globals, Component) => | ||
Object.assign(globals, { | ||
[Component]: false, | ||
}), | ||
{ | ||
React: false, | ||
}, | ||
), | ||
rules: { | ||
'lines-between-class-members': 0, | ||
'react/jsx-no-undef': [ | ||
2, | ||
{ | ||
allowGlobals: true, | ||
}, | ||
], | ||
'react/react-in-jsx-scope': 0, | ||
Object.assign( | ||
{ | ||
files: ['*.mdx'], | ||
}, | ||
}, | ||
configs.overrides, | ||
), | ||
], | ||
@@ -101,0 +86,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61829
146
1