Browse Source

deleted redundant logger file, removed no invalid cont

Steven Fukase 4 years ago
parent
commit
26a712c6da

+ 0 - 1
packages/app/src/components/PageEditor/CodeMirrorEditor.jsx

@@ -162,7 +162,6 @@ export default class CodeMirrorEditor extends AbstractEditor {
     this.isLintEnabled = true;
 
     this.textlintConfig = [
-      { name: 'no-invalid-control-character' },
       { name: 'no-unmatched-pair' },
       { name: 'common-misspellings' },
       { name: 'date-weekday-mismatch' },

+ 0 - 1
packages/codemirror-textlint/package.json

@@ -17,7 +17,6 @@
     "universal-bunyan": "^0.9.2"
   },
   "devDependencies": {
-    "@textlint-rule/textlint-rule-no-invalid-control-character": "^2.0.0",
     "@textlint-rule/textlint-rule-no-unmatched-pair": "^1.0.8",
     "@textlint/kernel": "^12.0.2",
     "@types/codemirror": "^5.60.2",

+ 0 - 2
packages/codemirror-textlint/src/index.ts

@@ -1,6 +1,5 @@
 import { TextlintKernel, TextlintKernelRule, TextlintRuleOptions } from '@textlint/kernel';
 import textlintToCodeMirror from 'textlint-message-to-codemirror';
-import textlintRuleNoInvalidControlCharacter from '@textlint-rule/textlint-rule-no-invalid-control-character';
 import textlintRuleNoUnmatchedPair from '@textlint-rule/textlint-rule-no-unmatched-pair';
 import textlintRuleCommonMisspellings from 'textlint-rule-common-misspellings';
 import textlintRuleDateWeekdayMismatch from 'textlint-rule-date-weekday-mismatch';
@@ -42,7 +41,6 @@ type RuleExtension = {
 }
 
 const ruleModulesList = {
-  'no-invalid-control-character': textlintRuleNoInvalidControlCharacter,
   'no-unmatched-pair': textlintRuleNoUnmatchedPair,
   'common-misspellings': textlintRuleCommonMisspellings,
   'date-weekday-mismatch': textlintRuleDateWeekdayMismatch,

+ 0 - 9
packages/codemirror-textlint/utils/logger/index.ts

@@ -1,9 +0,0 @@
-import Logger from 'bunyan';
-import { createLogger } from 'universal-bunyan';
-
-export const loggerFactory = function(name: string): Logger {
-  return createLogger({
-    name,
-    config: { default: 'info' },
-  });
-};