@markof/eslint-plugin-no-chinese 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +10 -2
- package/package.json +9 -3
package/lib/index.js
CHANGED
@@ -5,13 +5,21 @@ const plugin = {
|
|
5
5
|
name: pkg.name,
|
6
6
|
version: pkg.version,
|
7
7
|
},
|
8
|
-
configs: {},
|
9
8
|
rules: {
|
10
9
|
"no-chinese-code": require('./rules/no-chinese-code.js'),
|
11
10
|
"no-chinese-comment": require('./rules/no-chinese-comment.js'),
|
12
11
|
"no-chinese-console": require('./rules/no-chinese-console.js'),
|
13
12
|
},
|
14
|
-
|
13
|
+
configs: {
|
14
|
+
recommended: {
|
15
|
+
plugins: [pkg.name],
|
16
|
+
rules: {
|
17
|
+
[pkg.name + '/no-chinese-code']: 'error',
|
18
|
+
[pkg.name + '/no-chinese-comment']: 'error',
|
19
|
+
[pkg.name + '/no-chinese-console']: 'error',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
}
|
15
23
|
}
|
16
24
|
|
17
25
|
// OR for CommonJS
|
package/package.json
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@markof/eslint-plugin-no-chinese",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.4",
|
4
4
|
"description": "eslint plugin to forbid chinese",
|
5
|
-
"keywords": [
|
5
|
+
"keywords": [
|
6
|
+
"eslint",
|
7
|
+
"eslint-plugin",
|
8
|
+
"chinese"
|
9
|
+
],
|
6
10
|
"repository": "https://github.com/markof/eslint-plugin-no-chinese",
|
7
11
|
"author": "Markof",
|
8
12
|
"main": "lib/index.js",
|
@@ -11,7 +15,9 @@
|
|
11
15
|
"test": "mocha tests --recursive"
|
12
16
|
},
|
13
17
|
"dependencies": {
|
14
|
-
"
|
18
|
+
"@eslint/js": "^9.15.0",
|
19
|
+
"requireindex": "^1.2.0",
|
20
|
+
"typescript-eslint": "^8.15.0"
|
15
21
|
},
|
16
22
|
"devDependencies": {
|
17
23
|
"eslint": "^8.0.1",
|