Skip to content

Commit 9dd58d8

Browse files
committed
update
1 parent 145b547 commit 9dd58d8

7 files changed

+23
-7
lines changed

lib/rules/no-regexp-unicode-property-escapes-2020.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
"disallow the new values of RegExp Unicode property escape sequences in ES2020",
2727
category: "ES2020",
2828
recommended: false,
29-
url: "http://ota-meshi.github.io/eslint-plugin-es-x/rules/no-regexp-unicode-property-escapes-2020.html",
29+
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-regexp-unicode-property-escapes-2020.html",
3030
},
3131
fixable: null,
3232
messages: {

lib/rules/no-regexp-unicode-property-escapes-2021.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
"disallow the new values of RegExp Unicode property escape sequences in ES2021",
2727
category: "ES2021",
2828
recommended: false,
29-
url: "http://ota-meshi.github.io/eslint-plugin-es-x/rules/no-regexp-unicode-property-escapes-2021.html",
29+
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-regexp-unicode-property-escapes-2021.html",
3030
},
3131
fixable: null,
3232
messages: {

lib/rules/no-regexp-unicode-property-escapes-2022.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
"disallow the new values of RegExp Unicode property escape sequences in ES2022",
2727
category: "ES2022",
2828
recommended: false,
29-
url: "http://ota-meshi.github.io/eslint-plugin-es-x/rules/no-regexp-unicode-property-escapes-2022.html",
29+
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-regexp-unicode-property-escapes-2022.html",
3030
},
3131
fixable: null,
3232
messages: {

lib/util/define-regexp-handler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict"
22

3-
const { RegExpValidator } = require("regexpp")
3+
const { RegExpValidator } = require("@eslint-community/regexpp")
44
const { getRegExpCalls } = require("../utils")
55

66
const allVisitorBuilder = new WeakMap()

lib/util/unicode-properties.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"use strict"
33

44
class DataSet {
5-
constructor(raw2018, raw2019, raw2020, raw2021, raw2022) {
5+
constructor(raw2018, raw2019, raw2020, raw2021, raw2022, raw2023) {
66
this._raw2018 = raw2018
77
this._raw2019 = raw2019
88
this._raw2020 = raw2020
99
this._raw2021 = raw2021
1010
this._raw2022 = raw2022
11+
this._raw2023 = raw2023
1112
}
1213

1314
get es2018() {
@@ -39,6 +40,12 @@ class DataSet {
3940
this._set2022 || (this._set2022 = new Set(this._raw2022.split(" ")))
4041
)
4142
}
43+
44+
get es2023() {
45+
return (
46+
this._set2023 || (this._set2023 = new Set(this._raw2023.split(" ")))
47+
)
48+
}
4249
}
4350

4451
const gcNameSet = new Set(["General_Category", "gc"])
@@ -49,20 +56,23 @@ const gcValueSets = new DataSet(
4956
"",
5057
"",
5158
"",
59+
"",
5260
)
5361
const scValueSets = new DataSet(
5462
"Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy",
5563
"Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo",
5664
"Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho",
5765
"Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",
5866
"Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi",
67+
"",
5968
)
6069
const binPropertySets = new DataSet(
6170
"AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space",
6271
"Extended_Pictographic",
6372
"",
6473
"EBase EComp EMod EPres ExtPict",
6574
"",
75+
"",
6676
)
6777
module.exports = {
6878
gcNameSet,

scripts/update-unicode-properties.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,19 @@ const DATA_SOURCES = [
3535
scValues: "#table-unicode-script-values",
3636
},
3737
{
38-
url: "https://tc39.es/ecma262/multipage/text-processing.html",
38+
url: "https://tc39.es/ecma262/2022/multipage/text-processing.html",
3939
version: 2022,
4040
binProperties: "#table-binary-unicode-properties",
4141
gcValues: "#table-unicode-general-category-values",
4242
scValues: "#table-unicode-script-values",
4343
},
44+
{
45+
url: "https://tc39.es/ecma262/multipage/text-processing.html",
46+
version: 2023,
47+
binProperties: "#table-binary-unicode-properties",
48+
gcValues: "#table-unicode-general-category-values",
49+
scValues: "#table-unicode-script-values",
50+
},
4451
]
4552
const FILE_PATH = path.resolve(__dirname, "../lib/util/unicode-properties.js")
4653
const logger = console

tests/lib/rules/no-regexp-unicode-property-escapes-2022.js

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ if (!RuleTester.isSupported(2022)) {
1515

1616
new RuleTester().run("no-regexp-unicode-property-escapes-2022", rule, {
1717
valid: [
18-
String.raw`/\p{Script=Cpmn}/u`,
1918
String.raw`/\p{Letter}/u`,
2019
String.raw`/\P{Letter}/u`,
2120
String.raw`/\p{Script=Hiragana}/u`,

0 commit comments

Comments
 (0)