eslint-plugin-chrome-extensions 2.9.1 → 2.10.0
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/package.json +4 -4
- package/src/data/i18n.js +12 -5
- package/src/rules/no-invalid-locales.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-chrome-extensions",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "ESLint rules for Chrome extensions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"test": "node tests/run"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"globals": "^17.
|
|
64
|
+
"globals": "^17.14.0",
|
|
65
65
|
"spdx-license-ids": "^3.0.24",
|
|
66
66
|
"spdx-license-list": "^6.12.0"
|
|
67
67
|
},
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"eslint-plugin-n": "^18.5.0",
|
|
81
81
|
"eslint-plugin-no-secrets": "^2.3.3",
|
|
82
82
|
"eslint-plugin-no-unsanitized": "^4.1.5",
|
|
83
|
-
"eslint-plugin-package-json": "^1.
|
|
83
|
+
"eslint-plugin-package-json": "^1.14.0",
|
|
84
84
|
"eslint-plugin-promise": "^7.3.0",
|
|
85
|
-
"eslint-plugin-regexp": "^3.3.
|
|
85
|
+
"eslint-plugin-regexp": "^3.3.3",
|
|
86
86
|
"eslint-plugin-security": "^4.2.1",
|
|
87
87
|
"eslint-plugin-sonarjs": "^4.2.2",
|
|
88
88
|
"eslint-plugin-woodpecker": "^1.1.2",
|
package/src/data/i18n.js
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
defaultScanExtensions: ['cjs', 'css', 'htm', 'html', 'js', 'json', 'jsx', 'md', 'mjs', 'svg', 'ts', 'tsx', 'txt'],
|
|
3
3
|
locales: {
|
|
4
|
-
supported: new Set([
|
|
5
|
-
|
|
6
|
-
'
|
|
7
|
-
'
|
|
8
|
-
'
|
|
4
|
+
supported: new Set([
|
|
5
|
+
// https://developer.chrome.com/docs/extensions/reference/api/i18n#locales
|
|
6
|
+
'am', 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en', 'en_AU', 'en_GB', 'en_US', 'es', 'es_419', 'et',
|
|
7
|
+
'fa', 'fi', 'fil', 'fr', 'gu', 'he', 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv', 'ml', 'mr',
|
|
8
|
+
'ms', 'nl', 'no', 'pl', 'pt_BR', 'pt_PT', 'ro', 'ru', 'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tr',
|
|
9
|
+
'uk', 'vi', 'zh_CN', 'zh_TW',
|
|
10
|
+
// https://searchfox.org/firefox-release/source/browser/locales/l10n.toml
|
|
11
|
+
'ach', 'af', 'an', 'ast', 'az', 'be', 'bo', 'br', 'brx', 'bs', 'ca_valencia', 'cak', 'ckb', 'cy', 'dsb',
|
|
12
|
+
'en_CA', 'eo', 'es_AR', 'es_CL', 'es_ES', 'es_MX', 'eu', 'ff', 'fur', 'fy_NL', 'ga_IE', 'gd', 'gl', 'gn',
|
|
13
|
+
'gu_IN', 'hi_IN', 'hsb', 'hy_AM', 'hye', 'ia', 'is', 'ja_JP_mac', 'ka', 'kab', 'kk', 'km', 'lij', 'lo',
|
|
14
|
+
'ltg', 'meh', 'mk', 'my', 'nb_NO', 'ne_NP', 'nn_NO', 'oc', 'pa_IN', 'rm', 'sat', 'sc', 'scn', 'sco', 'si',
|
|
15
|
+
'skr', 'son', 'sq', 'sv_SE', 'szl', 'tg', 'tl', 'trs', 'ur', 'uz', 'wo', 'xh'
|
|
9
16
|
])
|
|
10
17
|
},
|
|
11
18
|
re: {
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
meta: {
|
|
12
12
|
type: 'problem',
|
|
13
13
|
docs: {
|
|
14
|
-
description: 'Disallow invalid
|
|
14
|
+
description: 'Disallow invalid locale codes in `_locales/` folders and `default_locale`',
|
|
15
15
|
category: 'Possible Errors',
|
|
16
16
|
recommended: true,
|
|
17
17
|
manifest: true
|
|
@@ -35,7 +35,7 @@ export default {
|
|
|
35
35
|
}],
|
|
36
36
|
defaultOptions: [defaultOptions],
|
|
37
37
|
messages: {
|
|
38
|
-
invalidLocale: '`{{value}}` is not a
|
|
38
|
+
invalidLocale: '`{{value}}` is not a supported locale code.'
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
|