Skip to content

Commit

Permalink
#38
Browse files Browse the repository at this point in the history
- public поля классов теперь в одном стиле
  • Loading branch information
krutoo committed Mar 27, 2023
1 parent fa21337 commit c063252
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ module.exports = {
root: true,
extends: [require.resolve('@sima-land/linters/eslint'), 'plugin:react/jsx-runtime'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'@typescript-eslint/explicit-member-accessibility': [
'error',
{ accessibility: 'no-public' },
],
},
},
{
files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
rules: {
Expand Down
2 changes: 1 addition & 1 deletion src/di/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { Token } from './types';
* Ошибка, сообщающая, что в контейнере нет сервиса по заданному ключу.
*/
export class NothingBoundError extends Error {
public readonly token: Token<unknown>;
readonly token: Token<unknown>;

/**
* Конструктор.
Expand Down
2 changes: 1 addition & 1 deletion src/di/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TokenImplementation<T = never> implements Token<T> {
/**
* @inheritdoc
*/
public toString(): string {
toString(): string {
return `Token(${this._key.description})`;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/redux-saga/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MiddlewareControl {
});
}

public toMiddleware(): SagaExtendedMiddleware {
toMiddleware(): SagaExtendedMiddleware {
const middleware: SagaExtendedMiddleware = api => {
this.api = api;
return this.sagaMiddleware(api);
Expand Down

0 comments on commit c063252

Please sign in to comment.