Skip to content

Commit 80753d7

Browse files
Hiroki Taniazu
authored andcommitted
fix(typo): textlinrc -> textlintrc (#67)
1 parent 237e090 commit 80753d7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/textlint-rule-prh.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function mergePrh(...engines) {
6262
const assertOptions = options => {
6363
if (typeof options.ruleContents === "undefined" && typeof options.rulePaths === "undefined") {
6464
throw new Error(`textlint-rule-prh require Rule Options.
65-
Please set .textlinrc:
65+
Please set .textlintrc:
6666
{
6767
"rules": {
6868
"prh": {
@@ -140,14 +140,14 @@ const getConfigBaseDir = context => {
140140
// Old fallback that use deprecated `config` value
141141
// https://github.com/textlint/textlint/issues/294
142142
const textlintRcFilePath = context.config ? context.config.configFile : null;
143-
// .textlinrc directory
143+
// .textlintrc directory
144144
return textlintRcFilePath ? path.dirname(textlintRcFilePath) : process.cwd();
145145
};
146146

147147
function reporter(context, userOptions = {}) {
148148
assertOptions(userOptions);
149149
const options = Object.assign({}, defaultOptions, userOptions);
150-
// .textlinrc directory
150+
// .textlintrc directory
151151
const textlintRCDir = getConfigBaseDir(context);
152152
// create prh config
153153
const rulePaths = options.rulePaths || [];

test/textlintrc-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { TextLintEngine, TextLintCore } from "textlint";
66
import rule from "../src/textlint-rule-prh";
77
import path from "path";
88

9-
describe(".textlinrc test", function() {
9+
describe(".textlintrc test", function() {
1010
context("when use .textlintrc", function() {
1111
it("should resolve path to rule.yaml", function() {
1212
const engine = new TextLintEngine({

0 commit comments

Comments
 (0)