-
Notifications
You must be signed in to change notification settings - Fork 109
/
.eslintrc.js
63 lines (57 loc) · 1.96 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
module.exports = {
extends: [
require.resolve('arui-presets-lint/eslint'),
],
overrides: [
{
files: ['src/**/*.tsx'],
rules: {
'max-classes-per-file': 'off',
'no-param-reassign': 'off',
}
},
// Иконки автогенерированы
{
files: ['src/icon/**/*.tsx'],
rules: {
'@typescript-eslint/no-explicit-any': 'off'
}
},
{
files: ['src/**/*.test.{tsx,ts}', 'src/**/__mocks__/*.{ts,tsx}'],
globals: {
jest: true,
beforeAll: true,
afterAll: true
}
},
{
files: ['gemini/*.gemini.js'],
globals: {
geminiReact: true
},
rules: {
// Их нельзя переименовать в jsx
'react/react-in-jsx-scope': 'off',
'max-classes-per-file': 'off'
}
}
],
// If you want to change/disable some rule below, write a detailed
// explanation of the reason
rules: {
// List of file extensions with jsx support
'react/jsx-filename-extension': [2, { extensions: ['gemini.js', '.tsx'] }],
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.test.tsx", "gulpfile.js"]}],
// The validation of jsdoc was disabled due to an unnecessary
// restriction of writing comments that scares off write developers to
// write descriptions
'valid-jsdoc': 'off',
'jsdoc/newline-after-description': 'off',
// TODO: Make normal sorting—arrow methods (private) of components can
// be located after "render" method
'sort-class-members/sort-class-members': 'off',
// Destructuring is a syntactic possibility, not a necessity
'prefer-destructuring': 'off'
}
};