|
@@ -158,35 +158,9 @@ export default class CodeMirrorEditor extends AbstractEditor {
|
|
|
? { dicPath: '/static/dict/cdn' }
|
|
? { dicPath: '/static/dict/cdn' }
|
|
|
: { dicPath: 'https://cdn.jsdelivr.net/npm/kuromoji@0.1.2/dict' };
|
|
: { dicPath: 'https://cdn.jsdelivr.net/npm/kuromoji@0.1.2/dict' };
|
|
|
|
|
|
|
|
- this.textlintConfig = [
|
|
|
|
|
- { name: 'no-unmatched-pair' },
|
|
|
|
|
- { name: 'common-misspellings' },
|
|
|
|
|
- { name: 'date-weekday-mismatch' },
|
|
|
|
|
- { name: 'en-capitalization' },
|
|
|
|
|
- { name: 'ja-hiragana-keishikimeishi' },
|
|
|
|
|
- { name: 'ja-no-abusage' },
|
|
|
|
|
- { name: 'ja-no-inappropriate-words' },
|
|
|
|
|
- { name: 'ja-no-mixed-period' },
|
|
|
|
|
- { name: 'ja-no-redundant-expression' },
|
|
|
|
|
- { name: 'ja-unnatural-alphabet' },
|
|
|
|
|
- { name: 'max-comma' },
|
|
|
|
|
- { name: 'max-kanji-continuous-len' },
|
|
|
|
|
- { name: 'max-ten' },
|
|
|
|
|
- { name: 'no-double-negative-ja' },
|
|
|
|
|
- { name: 'no-doubled-conjunction' },
|
|
|
|
|
- { name: 'no-doubled-joshi' },
|
|
|
|
|
- { name: 'no-dropping-the-ra' },
|
|
|
|
|
- { name: 'no-hankaku-kana' },
|
|
|
|
|
- { name: 'no-kangxi-radicals' },
|
|
|
|
|
- { name: 'no-mixed-zenkaku-and-hankaku-alphabet' },
|
|
|
|
|
- { name: 'no-nfd' },
|
|
|
|
|
- { name: 'no-surrogate-pair' },
|
|
|
|
|
- { name: 'no-zero-width-spaces' },
|
|
|
|
|
- { name: 'period-in-list-item' },
|
|
|
|
|
- { name: 'prefer-tari-tari' },
|
|
|
|
|
- { name: 'sentence-length' },
|
|
|
|
|
- { name: 'use-si-units' },
|
|
|
|
|
- ];
|
|
|
|
|
|
|
+ // TODO: Get configs from db
|
|
|
|
|
+ this.isTextlintEnabled = true;
|
|
|
|
|
+ // this.textlintConfig = [];
|
|
|
|
|
|
|
|
this.interceptorManager = new InterceptorManager();
|
|
this.interceptorManager = new InterceptorManager();
|
|
|
this.interceptorManager.addInterceptors([
|
|
this.interceptorManager.addInterceptors([
|