Socket
Socket
Sign inDemoInstall

eslint-mdx

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-mdx - npm Package Compare versions

Comparing version 0.11.3-beta.4 to 1.1.0

3

lib/parser.js

@@ -27,2 +27,3 @@ "use strict";

tokens: true,
filePath: '__placeholder__.mdx',
};

@@ -59,2 +60,3 @@ var Parser = /** @class */ (function () {

fixed: fixed,
// ! eslint ast column is 0-indexed, but unified is 1-indexed
loc: {

@@ -115,2 +117,3 @@ start: {

}
/* istanbul ignore else */
if (options.filePath) {

@@ -117,0 +120,0 @@ this._options = options;

6

package.json
{
"name": "eslint-mdx",
"version": "0.11.3-beta.4+63700e8",
"version": "1.1.0",
"description": "ESLint Parser for MDX",

@@ -24,6 +24,6 @@ "repository": "git@github.com:rx-ts/eslint-mdx.git",

"dependencies": {
"remark-mdx": "^1.2.2",
"remark-mdx": "^1.3.1",
"remark-parse": "^7.0.1"
},
"gitHead": "63700e86271e66cfcc6363127fb8a0e08ae29251"
"gitHead": "4b50e27667ceb305863c6bac6b08f7864d301f4e"
}

@@ -14,2 +14,3 @@ <p align="center">

[![Travis](https://img.shields.io/travis/com/rx-ts/eslint-mdx.svg)](https://travis-ci.com/rx-ts/eslint-mdx)
[![Codacy Grade](https://img.shields.io/codacy/grade/4ea8225261c04837995a858676caae4b)](https://www.codacy.com/app/JounQin/eslint-mdx)
[![Codecov](https://img.shields.io/codecov/c/gh/rx-ts/eslint-mdx)](https://codecov.io/gh/rx-ts/eslint-mdx)

@@ -27,5 +28,23 @@ [![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)

> Work perfectly with `eslint-plugin-import`, `eslint-plugin-prettier` or any other eslint plugins.
> And also can be integrated with [remark] plugins to lint non ES syntaxes.
## VSCode Extension [![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/JounQin.vscode-mdx)](https://marketplace.visualstudio.com/items?itemName=JounQin.vscode-mdx)
## TOC <!-- omit in toc -->
- [VSCode Extension](#vscode-extension)
- [Packages](#packages)
- [Install](#install)
- [Usage](#usage)
- [Parser Options](#parser-options)
- [Rules](#rules)
- [mdx/no-jsx-html-comments](#mdxno-jsx-html-comments)
- [mdx/no-unescaped-entities](#mdxno-unescaped-entities)
- [mdx/no-unused-expressions](#mdxno-unused-expressions)
- [mdx/remark](#mdxremark)
- [Changelog](#changelog)
- [License](#license)
## VSCode Extension
[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/JounQin.vscode-mdx)](https://marketplace.visualstudio.com/items?itemName=JounQin.vscode-mdx)
[VSCode MDX]\: Integrates with [VSCode ESLint], syntaxes highlighting and error reporting.

@@ -114,3 +133,3 @@

HTML style comments in jsx block is invalid, this rule will help you to fix it by transforming it to JSX style comments.
_Fixable_: HTML style comments in jsx block is invalid, this rule will help you to fix it by transforming it to JSX style comments.

@@ -125,7 +144,7 @@ ### mdx/no-unescaped-entities

## Limitation
### mdx/remark
> This parser/plugin can only handle ES syntaxes for you, markdown related syntaxes will just be ignored, you can use [markdownlint] or [remark-lint] to lint that part.
_possible fixable depends on your remark plugins_:
I have a very preliminary idea to integrate with [remark-lint].
Integration with [remark] plugins without [remark-lint], it will read [remark's configuration](https://github.com/remarkjs/remark/tree/master/packages/remark-cli#remark-cli) automatically via [cosmiconfig]. But `.remarkignore` will not be respected, you should use `.eslintignore` instead.

@@ -138,5 +157,6 @@ ## Changelog

[MIT] © [JounQin]@[1stG]
[MIT] © [JounQin]@[1stG.me]
[1stg]: https://www.1stg.me
[1stg.me]: https://www.1stg.me
[cosmiconfig]: https://github.com/davidtheclark/cosmiconfig
[eslint]: https://eslint.org

@@ -149,4 +169,5 @@ [eslint-plugin-react]: https://github.com/yannickcr/eslint-plugin-react

[markdownlint]: https://github.com/markdownlint/markdownlint
[remark]: https://github.com/remarkjs/remark
[remark-lint]: https://github.com/remarkjs/remark-lint
[vscode eslint]: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
[vscode mdx]: https://github.com/rx-ts/vscode-mdx

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc