Commit f80d6cfd authored by tom's avatar tom

no cyrillic strings

parent ee655bf5
...@@ -30,6 +30,7 @@ module.exports = { ...@@ -30,6 +30,7 @@ module.exports = {
'jsx-a11y', 'jsx-a11y',
'eslint-plugin-import-helpers', 'eslint-plugin-import-helpers',
'jest', 'jest',
'eslint-plugin-no-cyrillic-string',
], ],
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',
parserOptions: { parserOptions: {
...@@ -117,7 +118,7 @@ module.exports = { ...@@ -117,7 +118,7 @@ module.exports = {
'@typescript-eslint/type-annotation-spacing': 'error', '@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/no-explicit-any': [ 'error', { ignoreRestArgs: true } ], '@typescript-eslint/no-explicit-any': [ 'error', { ignoreRestArgs: true } ],
// отключены в пользу @typescript-eslint // disabled in favor of @typescript-eslint
'brace-style': 'off', 'brace-style': 'off',
camelcase: 'off', camelcase: 'off',
indent: 'off', indent: 'off',
...@@ -269,7 +270,7 @@ module.exports = { ...@@ -269,7 +270,7 @@ module.exports = {
'regexp/no-empty-capturing-group': 'error', 'regexp/no-empty-capturing-group': 'error',
'regexp/no-lazy-ends': 'error', 'regexp/no-lazy-ends': 'error',
'regexp/no-obscure-range': [ 'error', { 'regexp/no-obscure-range': [ 'error', {
allowed: [ 'alphanumeric', 'А-Я', 'а-я' ], allowed: [ 'alphanumeric' ],
} ], } ],
'regexp/no-optional-assertion': 'error', 'regexp/no-optional-assertion': 'error',
'regexp/no-unused-capturing-group': [ 'error', { 'regexp/no-unused-capturing-group': [ 'error', {
...@@ -277,6 +278,8 @@ module.exports = { ...@@ -277,6 +278,8 @@ module.exports = {
} ], } ],
'regexp/no-useless-character-class': 'error', 'regexp/no-useless-character-class': 'error',
'regexp/no-useless-dollar-replacements': 'error', 'regexp/no-useless-dollar-replacements': 'error',
'no-cyrillic-string/no-cyrillic-string': 'error',
}, },
overrides: [ overrides: [
{ {
......
// https://unicode-table.com // https://unicode-table.com
export const asymp = String.fromCharCode(8776); // приблизительно export const asymp = String.fromCharCode(8776); // ~
export const hellip = String.fromCharCode(8230); // многоточие export const hellip = String.fromCharCode(8230); //
export const nbsp = String.fromCharCode(160); // неразрывный пробел export const nbsp = String.fromCharCode(160); // no-break Space
export const thinsp = String.fromCharCode(8201); // короткий пробел export const thinsp = String.fromCharCode(8201); // thin Space
export const space = String.fromCharCode(32); // обычный пробел export const space = String.fromCharCode(32); // space
export const nbdash = String.fromCharCode(8209); // неразрывное тире export const nbdash = String.fromCharCode(8209); // non-breaking hyphen
export const mdash = String.fromCharCode(8212); // длинное тире export const mdash = String.fromCharCode(8212); // em dash
export const ndash = String.fromCharCode(8211); // среднее тире export const ndash = String.fromCharCode(8211); // en dash
export const laquo = String.fromCharCode(171); // кавычки-ёлочки (левые) export const laquo = String.fromCharCode(171); // «
export const raquo = String.fromCharCode(187); // кавычки-ёлочки (правые) export const raquo = String.fromCharCode(187); // »
export const middot = String.fromCharCode(183); // точка по центру строки (в вертикальном смысле) export const middot = String.fromCharCode(183); // ·
export const blackCircle = String.fromCharCode(9679); // жирная точка по центру строки (в вертикальном смысле) export const blackCircle = String.fromCharCode(9679); //
export const blackRightwardsArrowhead = String.fromCharCode(10148); // ➤ export const blackRightwardsArrowhead = String.fromCharCode(10148); // ➤
export const degree = String.fromCharCode(176); // градус ° export const degree = String.fromCharCode(176); // °
export const times = String.fromCharCode(215); // мультипликатор × export const times = String.fromCharCode(215); // ×
export const disk = String.fromCharCode(8226); // диск export const disk = String.fromCharCode(8226); // •
export const minus = String.fromCharCode(8722); // минус export const minus = String.fromCharCode(8722); // −
export const leftLineArrow = String.fromCharCode(8592); // стрелка export const leftLineArrow = String.fromCharCode(8592); // ←
export const rightLineArrow = String.fromCharCode(8594); // стрелка export const rightLineArrow = String.fromCharCode(8594); // →
export const apos = String.fromCharCode(39); // апостроф ' export const apos = String.fromCharCode(39); // apostrophe '
...@@ -27,7 +27,7 @@ const AddressContractIcon = ({ className }: Props) => { ...@@ -27,7 +27,7 @@ const AddressContractIcon = ({ className }: Props) => {
transitionDuration="normal" transitionDuration="normal"
transitionTimingFunction="ease" transitionTimingFunction="ease"
> >
С C
</Box> </Box>
</Tooltip> </Tooltip>
); );
......
...@@ -70,8 +70,9 @@ const NavLinkGroupDesktop = ({ text, subItems, icon, isCollapsed, isActive }: Pr ...@@ -70,8 +70,9 @@ const NavLinkGroupDesktop = ({ text, subItems, icon, isCollapsed, isActive }: Pr
{ text } { text }
</Text> </Text>
<VStack spacing={ 1 } alignItems="start"> <VStack spacing={ 1 } alignItems="start">
{ subItems.map(item => Array.isArray(item) ? ( { subItems.map((item, index) => Array.isArray(item) ? (
<Box <Box
key={ index }
w="100%" w="100%"
as="ul" as="ul"
_notLast={{ _notLast={{
......
...@@ -93,8 +93,9 @@ const NavigationMobile = () => { ...@@ -93,8 +93,9 @@ const NavigationMobile = () => {
as="ul" as="ul"
> >
{ isGroupItem(openedItem) && openedItem.subItems?.map( { isGroupItem(openedItem) && openedItem.subItems?.map(
item => Array.isArray(item) ? ( (item, index) => Array.isArray(item) ? (
<Box <Box
key={ index }
w="100%" w="100%"
as="ul" as="ul"
_notLast={{ _notLast={{
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment