Skip to content

Commit 35ba72d

Browse files
authored
feat: update linters (#269)
1 parent 73950ba commit 35ba72d

File tree

274 files changed

+1296
-902
lines changed

Some content is hidden

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

274 files changed

+1296
-902
lines changed

.eslintrc

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55
"node": true,
66
"jest": true
77
},
8+
"plugins": ["no-not-accumulator-reassign"],
9+
"rules": {
10+
"no-confusing-arrow": "off",
11+
"no-shadow": "off",
12+
"no-param-reassign": ["warn", {"props": false}],
13+
"no-not-accumulator-reassign/no-not-accumulator-reassign": [
14+
"warn",
15+
["reduce"],
16+
{"props": true}
17+
]
18+
},
819
"overrides": [
920
{
1021
"files": ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
@@ -15,6 +26,73 @@
1526
"rules": {
1627
"no-console": "off"
1728
}
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+
}
1896
}
1997
]
2098
}

gulpfile.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/* eslint-env node */
22
const path = require('path');
3+
34
const {task, src, dest, series, parallel} = require('gulp');
4-
const rimraf = require('rimraf');
5-
const ts = require('gulp-typescript');
6-
const replace = require('gulp-replace');
75
const sass = require('gulp-dart-sass');
6+
const replace = require('gulp-replace');
7+
const ts = require('gulp-typescript');
8+
const rimraf = require('rimraf');
89

910
const BUILD_CLIENT_DIR = path.resolve('build');
1011
const ESM_DIR = 'esm';

0 commit comments

Comments
 (0)