Skip to content

Commit a5b9e2c

Browse files
committed
Добавляет правила про классы
1 parent 9ce441e commit a5b9e2c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/templates/partials/js/js-rules.hbs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,11 @@ if (myValue === 1) {} // Хорошо
238238
- В стрелочных функциях всегда используются скобки для параметров, даже если параметр один
239239

240240
## Классы
241-
'no-this-before-super': 'error', // eslint:recommended
242241
'constructor-super': 'error', // eslint:recommended
242+
- В конструкторе классов-наследников обязательно вызывается super()
243+
244+
'no-this-before-super': 'error', // eslint:recommended
245+
- В конструкторе нет обращения к this до того, как будет вызван super()
243246

244247

245248
## Объявление переменных и функций

0 commit comments

Comments
 (0)