-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.js
35 lines (34 loc) · 1.03 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
'use strict';
module.exports = {
rules: {
'no-chinese-character': require('./lib/rules/no-chinese-character'),
'no-greek-character': require('./lib/rules/no-greek-character'),
'no-japanese-character': require('./lib/rules/no-japanese-character'),
'no-korean-character': require('./lib/rules/no-korean-character'),
'no-russian-character': require('./lib/rules/no-russian-character'),
'no-thai-character': require('./lib/rules/no-thai-character'),
},
rulesConfig: {
'no-chinese-character': 1,
'no-greek-character': 1,
'no-japanese-character': 1,
'no-korean-character': 1,
'no-russian-character': 1,
'no-thai-character': 1,
},
configs: {
recommended: {
plugins: [
'i18n',
],
rules: {
'i18n/no-chinese-character': 'warn',
'i18n/no-greek-character': 'warn',
'i18n/no-japanese-character': 'warn',
'i18n/no-korean-character': 'warn',
'i18n/no-russian-character': 'warn',
'i18n/no-thai-character': 'warn',
},
},
},
};