Skip to content

Commit 0c13398

Browse files
authored
feat: drop rules overriding (#303)
1 parent 6eef34e commit 0c13398

File tree

55 files changed

+62
-113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+62
-113
lines changed

.eslintrc

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
},
88
"plugins": ["no-not-accumulator-reassign"],
99
"rules": {
10-
"no-confusing-arrow": "off",
11-
"no-shadow": "off",
12-
"no-param-reassign": ["warn", {"props": false}],
1310
"no-not-accumulator-reassign/no-not-accumulator-reassign": [
1411
"warn",
1512
["reduce"],
@@ -26,73 +23,6 @@
2623
"rules": {
2724
"no-console": "off"
2825
}
29-
},
30-
{
31-
"files": ["**/*.{js,ts}", "**/*.{jsx,tsx}"],
32-
"rules": {
33-
"valid-jsdoc": "off",
34-
"import/order": [
35-
"error",
36-
{
37-
"alphabetize": {
38-
"order": "asc"
39-
},
40-
"newlines-between": "always",
41-
"groups": [
42-
"builtin",
43-
"external",
44-
"internal",
45-
["sibling", "parent"],
46-
"index",
47-
"type",
48-
"unknown"
49-
],
50-
"pathGroups": [
51-
{
52-
"pattern": "react",
53-
"group": "external",
54-
"position": "before"
55-
},
56-
{
57-
"pattern": "{@yandex-**,@gravity-ui,@doc-tools}/**",
58-
"group": "external",
59-
"position": "after"
60-
},
61-
{
62-
"pattern": "{analytics,counters,contexts,components,hoc,hooks,utils,store,units,i18n,models,router,services}{,/**}",
63-
"group": "internal",
64-
"position": "after"
65-
},
66-
{
67-
"pattern": "*.{svg,png,jpg,jpeg,json}",
68-
"patternOptions": {
69-
"dot": true,
70-
"nocomment": true,
71-
"matchBase": true
72-
},
73-
"group": "type",
74-
"position": "after"
75-
},
76-
{
77-
"pattern": "*.{css,scss}",
78-
"patternOptions": {
79-
"dot": true,
80-
"nocomment": true,
81-
"matchBase": true
82-
},
83-
"group": "type",
84-
"position": "after"
85-
}
86-
],
87-
"pathGroupsExcludedImportTypes": [
88-
"*.{css,scss}",
89-
"*.{svg,png,jpg,jpeg,json}",
90-
"react"
91-
],
92-
"warnOnUnassignedImports": true
93-
}
94-
]
95-
}
9626
}
9727
]
9828
}

src/.eslintrc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"extends": ["@gravity-ui/eslint-config/client", "../.eslintrc"],
3-
"env": {
4-
"node": true
5-
}
2+
"extends": "@gravity-ui/eslint-config/client"
63
}

src/blocks/FilterBlock/FilterBlock.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {ConstructorBlocks} from '../../containers/PageConstructor/components/Con
66
import {Col, Row} from '../../grid';
77
import {BlockType, ConstructorItem, FilterBlockProps, FilterItem} from '../../models';
88
import {block} from '../../utils';
9+
910
import i18n from './i18n';
1011

1112
import './FilterBlock.scss';

src/blocks/Header/Header.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {ThemeValueContext} from '../../context/theme/ThemeValueContext';
99
import {Col, Grid, Row} from '../../grid';
1010
import {ClassNameProps, HeaderBlockBackground, HeaderBlockProps, WithChildren} from '../../models';
1111
import {block, getThemedValue} from '../../utils';
12+
1213
import {getImageSize, getTitleSizes, titleWithImageSizes} from './utils';
1314

1415
import './Header.scss';

src/blocks/Preview/MediaContent/MediaContent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {ThemeValueContext} from '../../../context/theme/ThemeValueContext';
55
import {Col, GridColumnSize} from '../../../grid';
66
import {PreviewItemProps, PreviewRatioMediaContent, Refable} from '../../../models';
77
import {block, getThemedValue} from '../../../utils';
8+
89
import PreviewContent from './PreviewContent';
910
import PreviewMedia from './PreviewMedia';
1011

src/blocks/Preview/Preview.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {Row} from '../../grid';
77
import {useIntersection} from '../../hooks/useIntersection';
88
import {PreviewBlockProps} from '../../models';
99
import {ScrollOptions, block, doSmoothScroll} from '../../utils';
10+
1011
import MediaContent from './MediaContent/MediaContent';
1112

1213
import './Preview.scss';

src/blocks/Security/Security.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {AnimateBlock, FullWidthBackground, HTML, ImageBase, Link, Media} from '.
44
import {Col, Grid, Row} from '../../grid';
55
import {SecurityBlockProps} from '../../models';
66
import {block} from '../../utils';
7+
78
import i18n from './i18n';
89

910
import './Security.scss';

src/blocks/Share/Share.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {Twitter} from '../../icons/Twitter';
1111
import {Vk} from '../../icons/Vk';
1212
import {DefaultEventNames, ShareBlockProps} from '../../models';
1313
import {block, getAbsolutePath, getShareLink} from '../../utils';
14+
1415
import i18n from './i18n';
1516

1617
import './Share.scss';

src/blocks/Share/__stories__/Share.stories.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import React from 'react';
22

3-
import {Meta, Story} from '@storybook/react/types-6-0';
4-
53
import {Lang as UIKitLang, configure as uikitConfigure} from '@gravity-ui/uikit';
4+
import {Meta, Story} from '@storybook/react/types-6-0';
65

76
import {PageConstructor} from '../../../containers/PageConstructor';
87
import {BLOCKS} from '../../../demo/constants';

src/blocks/Slider/Slider.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import '../../../styles/mixins';
22
@import '../../../styles/variables';
3+
@import './slick.scss';
34

45
$slideOffset: 8px;
56

0 commit comments

Comments
 (0)