Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(textlint-fixer-formatter): move to @textlint/fixer-formatter #482

Merged
merged 4 commits into from
Jan 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ These modules are parts of textlint.
| [`textlint`](./packages/textlint) | [![npm](https://img.shields.io/npm/v/textlint.svg?style=flat-square)](https://www.npmjs.com/package/textlint) | textlint command line tool itself |
| [`@textlint/kernel`](./packages/@textlint/kernel) | [![npm](https://img.shields.io/npm/v/@textlint/kernel.svg?style=flat-square)](https://www.npmjs.com/package/@textlint/kernel) | textlint main logic module. It is universal JavaScript. |
| [`@textlint/linter-formatter`](./packages/@textlint/linter-formatter) | [![npm](https://img.shields.io/npm/v/@textlint/linter-formatter.svg?style=flat-square)](https://www.npmjs.com/package/@textlint/linter-formatter) | textlint output formatter |
| [`textlint-fixer-formatter`](./packages/textlint-fixer-formatter) | [![npm](https://img.shields.io/npm/v/textlint-fixer-formatter.svg?style=flat-square)](https://www.npmjs.com/package/textlint-fixer-formatter) | textlint output formatter for fixer |
| [`@textlint/fixer-formatter`](./packages/@textlint/fixer-formatter) | [![npm](https://img.shields.io/npm/v/@textlint/fixer-formatter.svg?style=flat-square)](https://www.npmjs.com/package/@textlint/fixer-formatter) | textlint output formatter for fixer |
| [`textlint-plugin-markdown`](./packages/textlint-plugin-markdown) | [![npm](https://img.shields.io/npm/v/textlint-plugin-markdown.svg?style=flat-square)](https://www.npmjs.com/package/textlint-plugin-markdown) | markdown support for textlint |
| [`textlint-plugin-text`](./packages/textlint-plugin-text) | [![npm](https://img.shields.io/npm/v/textlint-plugin-text.svg?style=flat-square)](https://www.npmjs.com/package/textlint-plugin-text) | plain text support for textlint |
| [`textlint-ast-test`](./packages/textlint-ast-test) | [![npm](https://img.shields.io/npm/v/textlint-ast-test.svg?style=flat-square)](https://www.npmjs.com/package/textlint-ast-test) | Compliance tests for textlint's AST |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# textlint-fixer-formatter
# @textlint/fixer-formatter

textlint output formatter for fixer

## Installation

npm install textlint-fixer-formatter
npm install @textlint/fixer-formatter

## Usage

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "textlint-fixer-formatter",
"name": "@textlint/fixer-formatter",
"version": "3.0.2",
"description": "textlint output formatter for fixer",
"keywords": [
Expand All @@ -18,11 +18,11 @@
"license": "MIT",
"author": "azu",
"files": [
"lib/textlint-fixer-formatter",
"lib/fixer-formatter",
"src/"
],
"main": "lib/textlint-fixer-formatter/src/index.js",
"types": "lib/textlint-fixer-formatter/src/index.d.ts",
"main": "lib/fixer-formatter/src/index.js",
"types": "lib/fixer-formatter/src/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/textlint/textlint.git"
Expand Down Expand Up @@ -53,5 +53,8 @@
"rimraf": "^2.6.2",
"ts-node": "^4.0.1",
"typescript": "^2.6.2"
},
"publishConfig": {
"access": "public"
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// LICENSE : MIT
"use strict";
import { getFixerFormatterList } from "textlint-fixer-formatter";
import { getFixerFormatterList } from "@textlint/fixer-formatter";
import assert from "power-assert";

describe("textlint-fixer-formatter-test", function() {
describe("@textlint/fixer-formatter-test", function() {
describe("getFormatterList", function() {
it("should return list of formatter(s)", function() {
assert.deepEqual(getFixerFormatterList(), [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./lib/"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/textlint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"dependencies": {
"@textlint/ast-node-types": "^4.0.0",
"@textlint/feature-flag": "^3.0.3",
"@textlint/fixer-formatter": "^3.0.2",
"@textlint/kernel": "^2.0.4",
"@textlint/linter-formatter": "^3.0.2",
"@types/bluebird": "^3.5.18",
Expand All @@ -68,7 +69,6 @@
"read-pkg": "^1.1.0",
"read-pkg-up": "^3.0.0",
"structured-source": "^3.0.2",
"textlint-fixer-formatter": "^3.0.2",
"textlint-plugin-markdown": "^4.0.5",
"textlint-plugin-text": "^3.0.5",
"try-resolve": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/textlint/src/options.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// LICENSE : MIT
"use strict";
import { getFormatterList, FormatterDetail } from "@textlint/linter-formatter";
import { getFixerFormatterList, FixerFormatterDetail } from "textlint-fixer-formatter";
import { getFixerFormatterList, FixerFormatterDetail } from "@textlint/fixer-formatter";

const optionator = require("optionator");

Expand Down
2 changes: 1 addition & 1 deletion packages/textlint/src/textfix-engine.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";
import { AbstractTextLintEngine } from "./engine/textlint-engine-core";
import { createFormatter } from "textlint-fixer-formatter";
import { createFormatter } from "@textlint/fixer-formatter";
import { TextLintCore } from "./textlint-core";
import { TextLintFormatterOption } from "./textlint-interface";
import { TextlintFixResult } from "@textlint/kernel";
Expand Down