Socket
Socket
Sign inDemoInstall

remark-preset-prettier

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-preset-prettier - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [0.2.0](https://github.com/JounQin/remark-preset-prettier/compare/v0.1.1...v0.2.0) (2019-09-07)
### Features
* simplify implement by reduce, test with preset-lint-consistent too ([9122f95](https://github.com/JounQin/remark-preset-prettier/commit/9122f95))
### [0.1.1](https://github.com/JounQin/remark-preset-prettier/compare/v0.1.0...v0.1.1) (2019-09-01)

@@ -7,0 +14,0 @@

9

lib/cjs.js

@@ -5,4 +5,3 @@ 'use strict';

const plugins = [];
const remarkLintPlugins = [
var plugins = [
'blank-lines-1-0-2',

@@ -43,4 +42,3 @@ 'blockquote-indentation',

'unordered-list-marker-style',
];
remarkLintPlugins.forEach(plugin => {
].reduce(function (plugins, plugin) {
try {

@@ -54,4 +52,5 @@ plugins.push([

catch (e) { }
});
return plugins;
}, []);
exports.plugins = plugins;

@@ -1,3 +0,2 @@

const plugins = [];
const remarkLintPlugins = [
var plugins = [
'blank-lines-1-0-2',

@@ -38,4 +37,3 @@ 'blockquote-indentation',

'unordered-list-marker-style',
];
remarkLintPlugins.forEach(plugin => {
].reduce(function (plugins, plugin) {
try {

@@ -49,4 +47,5 @@ plugins.push([

catch (e) { }
});
return plugins;
}, []);
export { plugins };

@@ -1,3 +0,2 @@

import { Plugin } from 'unified';
export declare const plugins: Array<[Plugin, false]>;
export declare const plugins: [import("unified").Attacher<[(import("unified").Settings | undefined)?], import("unified").Settings>, false][];
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,2 @@

export const plugins = [];
const remarkLintPlugins = [
export const plugins = [
'blank-lines-1-0-2',

@@ -38,4 +37,3 @@ 'blockquote-indentation',

'unordered-list-marker-style',
];
remarkLintPlugins.forEach(plugin => {
].reduce((plugins, plugin) => {
try {

@@ -49,3 +47,4 @@ plugins.push([

catch (e) { }
});
return plugins;
}, []);
//# sourceMappingURL=index.js.map
{
"name": "remark-preset-prettier",
"version": "0.1.1",
"version": "0.2.0",
"description": "Turns off all rules that are unnecessary or might conflict with Prettier.",

@@ -17,3 +17,3 @@ "repository": "git@github.com:JounQin/remark-preset-prettier.git",

"scripts": {
"lint": "eslint . --ext js,md,mdx,ts",
"lint": "eslint . --ext js,md,ts",
"build:ts": "tsc -b",

@@ -24,20 +24,21 @@ "build:bundle": "rollup -c",

"peerDependencies": {
"prettier": "^1.18.2"
"prettier": ">=1.0.0"
},
"devDependencies": {
"@1stg/babel-preset": "^0.5.0",
"@1stg/eslint-config": "^0.6.0",
"@1stg/babel-preset": "^0.6.0",
"@1stg/eslint-config": "^0.9.0",
"@1stg/husky-config": "^0.3.0",
"@1stg/lint-staged": "^0.5.0",
"@1stg/lint-staged": "^0.6.0",
"@1stg/prettier-config": "^0.2.0",
"@1stg/rollup-config": "^0.2.2",
"@1stg/tsconfig": "^0.3.0",
"@babel/core": "^7.5.5",
"@1stg/rollup-config": "^0.4.1",
"@1stg/tsconfig": "^0.5.0",
"@babel/core": "^7.6.0",
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
"eslint": "^6.3.0",
"husky": "^3.0.4",
"husky": "^3.0.5",
"lint-staged": "^9.2.5",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"remark-preset-lint-consistent": "^2.0.3",
"remark-preset-lint-markdown-style-guide": "^2.1.3",

@@ -44,0 +45,0 @@ "remark-preset-lint-recommended": "^3.0.3",

import { Plugin } from 'unified'
export const plugins: Array<[Plugin, false]> = []
const remarkLintPlugins = [
export const plugins = [
'blank-lines-1-0-2',

@@ -41,5 +39,3 @@ 'blockquote-indentation',

'unordered-list-marker-style',
]
remarkLintPlugins.forEach(plugin => {
].reduce<Array<[Plugin, false]>>((plugins, plugin) => {
try {

@@ -52,2 +48,3 @@ plugins.push([

} catch (e) {}
})
return plugins
}, [])

Sorry, the diff of this file is not supported yet

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