2016-11-04 23:15:18 +01:00
|
|
|
|
{
|
|
|
|
|
"env": {
|
2017-05-25 01:44:58 +02:00
|
|
|
|
"node": true,
|
|
|
|
|
"es6": true
|
|
|
|
|
},
|
2020-05-27 03:58:32 +02:00
|
|
|
|
"extends": [
|
|
|
|
|
"eslint:recommended"
|
|
|
|
|
],
|
2017-05-25 01:44:58 +02:00
|
|
|
|
"parserOptions": {
|
2019-12-07 02:51:48 +01:00
|
|
|
|
"ecmaVersion": 2019,
|
2019-06-04 02:49:59 +02:00
|
|
|
|
"warnOnUnsupportedTypeScriptVersion": false,
|
2017-05-25 01:44:58 +02:00
|
|
|
|
"sourceType": "module"
|
2016-11-04 23:15:18 +01:00
|
|
|
|
},
|
2018-03-13 13:04:16 +01:00
|
|
|
|
"plugins": [
|
|
|
|
|
"eslint-plugin-empty-returns"
|
|
|
|
|
],
|
2016-11-04 23:15:18 +01:00
|
|
|
|
"rules": {
|
2016-12-05 07:53:36 +01:00
|
|
|
|
"array-callback-return": "error",
|
2017-10-06 21:43:12 +02:00
|
|
|
|
"array-bracket-spacing": "error",
|
2020-07-02 01:41:40 +02:00
|
|
|
|
"arrow-body-style": "error",
|
2020-07-02 01:39:34 +02:00
|
|
|
|
"arrow-parens": "error",
|
2017-06-05 09:01:02 +02:00
|
|
|
|
"arrow-spacing": [ "error", { "before": true, "after": true } ],
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"block-scoped-var": "error",
|
2017-06-05 09:01:02 +02:00
|
|
|
|
"brace-style": [ "error", "1tbs", { "allowSingleLine": true } ],
|
2020-07-02 02:16:03 +02:00
|
|
|
|
"comma-dangle": [ "error", "always-multiline" ],
|
2018-12-07 21:21:39 +01:00
|
|
|
|
"comma-spacing": [ "error",
|
|
|
|
|
{
|
|
|
|
|
"before": false,
|
|
|
|
|
"after": true
|
|
|
|
|
}
|
|
|
|
|
],
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"curly": "error",
|
2020-05-27 03:58:32 +02:00
|
|
|
|
"dot-notation": "error",
|
2018-03-13 13:04:16 +01:00
|
|
|
|
"empty-returns/main": "error",
|
2020-05-27 03:58:32 +02:00
|
|
|
|
"eol-last": "error",
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"eqeqeq": "error",
|
|
|
|
|
"guard-for-in": "error",
|
2018-04-06 20:43:18 +02:00
|
|
|
|
"indent": ["error", 4, {
|
|
|
|
|
"ArrayExpression": "first",
|
|
|
|
|
"ObjectExpression": "first",
|
|
|
|
|
"CallExpression": {"arguments": "first"},
|
|
|
|
|
"FunctionExpression": {"parameters": "first"},
|
|
|
|
|
"FunctionDeclaration": {"parameters": "first"}
|
|
|
|
|
}],
|
2020-05-27 03:58:32 +02:00
|
|
|
|
"key-spacing": "error",
|
|
|
|
|
"keyword-spacing": "error",
|
2017-06-05 09:01:02 +02:00
|
|
|
|
"max-len": [ "error", 100, 2,
|
|
|
|
|
{
|
|
|
|
|
"ignoreUrls": true,
|
|
|
|
|
"ignoreRegExpLiterals": true,
|
|
|
|
|
"ignoreStrings": true,
|
|
|
|
|
"ignoreTemplateLiterals": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"new-cap": [ "error",
|
|
|
|
|
{
|
|
|
|
|
"capIsNew": false
|
|
|
|
|
}
|
|
|
|
|
],
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"new-parens": "error",
|
|
|
|
|
"no-alert": "error",
|
2017-06-05 09:01:02 +02:00
|
|
|
|
"no-array-constructor": "error",
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"no-bitwise": "error",
|
|
|
|
|
"no-caller": "error",
|
|
|
|
|
"no-catch-shadow": "error",
|
2020-05-27 03:58:32 +02:00
|
|
|
|
"no-constant-condition": ["error", {"checkLoops": false}],
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"no-div-regex": "error",
|
2017-06-05 09:01:02 +02:00
|
|
|
|
"no-duplicate-imports": "error",
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"no-else-return": "error",
|
|
|
|
|
"no-eq-null": "error",
|
|
|
|
|
"no-eval": "error",
|
2020-05-27 03:58:32 +02:00
|
|
|
|
"no-extra-parens": "error",
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"no-floating-decimal": "error",
|
|
|
|
|
"no-implied-eval": "error",
|
2020-05-27 03:58:32 +02:00
|
|
|
|
"no-inner-declarations": "off",
|
2017-06-05 09:01:02 +02:00
|
|
|
|
"no-iterator": "error",
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"no-label-var": "error",
|
|
|
|
|
"no-labels": "error",
|
|
|
|
|
"no-loop-func": "error",
|
|
|
|
|
"no-multi-str": "error",
|
|
|
|
|
"no-native-reassign": "error",
|
2017-06-05 09:01:02 +02:00
|
|
|
|
"no-new-func": "error",
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"no-new-object": "error",
|
|
|
|
|
"no-new-wrappers": "error",
|
|
|
|
|
"no-octal-escape": "error",
|
|
|
|
|
"no-plusplus": "error",
|
|
|
|
|
"no-proto": "error",
|
|
|
|
|
"no-return-assign": "error",
|
|
|
|
|
"no-script-url": "error",
|
|
|
|
|
"no-self-compare": "error",
|
|
|
|
|
"no-sync": "error",
|
|
|
|
|
"no-trailing-spaces": "error",
|
|
|
|
|
"no-undef-init": "error",
|
2017-06-05 09:01:02 +02:00
|
|
|
|
"no-unneeded-ternary": [ "error", { "defaultAssignment": false } ],
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"no-unused-expressions": "error",
|
2017-06-05 09:01:02 +02:00
|
|
|
|
"no-unused-vars": [ "error",
|
|
|
|
|
{
|
|
|
|
|
"vars": "local",
|
|
|
|
|
"varsIgnorePattern": "print_elapsed_time|check_duplicate_ids"
|
|
|
|
|
}
|
|
|
|
|
],
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"no-use-before-define": "error",
|
2017-06-05 09:01:02 +02:00
|
|
|
|
"no-useless-constructor": "error",
|
|
|
|
|
// The Zulip codebase complies partially with the "no-useless-escape"
|
|
|
|
|
// rule; only regex expressions haven't been updated yet.
|
|
|
|
|
// Updated regex expressions are currently being tested in casper
|
|
|
|
|
// files and will decide about a potential future enforcement of this rule.
|
2019-06-22 08:04:09 +02:00
|
|
|
|
"no-useless-escape": "off",
|
2019-11-02 00:06:25 +01:00
|
|
|
|
"no-var": "error",
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"space-unary-ops": "error",
|
|
|
|
|
"no-whitespace-before-property": "error",
|
2017-06-05 09:01:02 +02:00
|
|
|
|
"one-var": [ "error", "never" ],
|
2020-07-02 01:45:54 +02:00
|
|
|
|
"prefer-arrow-callback": "error",
|
2017-06-05 09:01:02 +02:00
|
|
|
|
"prefer-const": [ "error",
|
|
|
|
|
{
|
|
|
|
|
"ignoreReadBeforeAssign": true
|
|
|
|
|
}
|
|
|
|
|
],
|
2020-05-27 03:58:32 +02:00
|
|
|
|
"quote-props": [ "error", "as-needed" ],
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"radix": "error",
|
|
|
|
|
"semi": "error",
|
2020-05-27 03:58:32 +02:00
|
|
|
|
"semi-spacing": "error",
|
2019-10-30 20:13:53 +01:00
|
|
|
|
"sort-imports": "error",
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"space-before-blocks": "error",
|
2017-06-05 09:01:02 +02:00
|
|
|
|
"space-before-function-paren": [ "error",
|
|
|
|
|
{
|
|
|
|
|
"anonymous": "always",
|
|
|
|
|
"named": "never",
|
|
|
|
|
"asyncArrow": "always"
|
|
|
|
|
}
|
|
|
|
|
],
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"space-in-parens": "error",
|
|
|
|
|
"space-infix-ops": "error",
|
2019-06-22 08:04:09 +02:00
|
|
|
|
"spaced-comment": "off",
|
|
|
|
|
"strict": "off",
|
2017-06-05 09:01:02 +02:00
|
|
|
|
"template-curly-spacing": "error",
|
|
|
|
|
"valid-typeof": [ "error", { "requireStringLiterals": true } ],
|
2020-05-27 03:58:32 +02:00
|
|
|
|
"wrap-iife": "error",
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"yoda": "error"
|
2019-03-24 11:20:43 +01:00
|
|
|
|
},
|
|
|
|
|
"overrides": [
|
2020-02-18 00:08:43 +01:00
|
|
|
|
{
|
|
|
|
|
"files": [
|
|
|
|
|
"frontend_tests/**/*.{js,ts}",
|
|
|
|
|
"static/js/**/*.{js,ts}"
|
|
|
|
|
],
|
|
|
|
|
"globals": {
|
|
|
|
|
"$": false,
|
|
|
|
|
"ClipboardJS": false,
|
|
|
|
|
"FetchStatus": false,
|
|
|
|
|
"Filter": false,
|
|
|
|
|
"Handlebars": false,
|
|
|
|
|
"LightboxCanvas": false,
|
|
|
|
|
"MessageListData": false,
|
|
|
|
|
"MessageListView": false,
|
|
|
|
|
"Plotly": false,
|
|
|
|
|
"Sortable": false,
|
|
|
|
|
"WinChan": false,
|
|
|
|
|
"XDate": false,
|
|
|
|
|
"_": false,
|
|
|
|
|
"activity": false,
|
|
|
|
|
"admin": false,
|
|
|
|
|
"alert_words": false,
|
|
|
|
|
"alert_words_ui": false,
|
|
|
|
|
"attachments_ui": false,
|
|
|
|
|
"avatar": false,
|
|
|
|
|
"billing": false,
|
|
|
|
|
"blueslip": false,
|
|
|
|
|
"bot_data": false,
|
|
|
|
|
"bridge": false,
|
|
|
|
|
"buddy_data": false,
|
|
|
|
|
"buddy_list": false,
|
|
|
|
|
"channel": false,
|
|
|
|
|
"click_handlers": false,
|
|
|
|
|
"color_data": false,
|
|
|
|
|
"colorspace": false,
|
|
|
|
|
"common": false,
|
|
|
|
|
"components": false,
|
|
|
|
|
"compose": false,
|
|
|
|
|
"compose_actions": false,
|
|
|
|
|
"compose_fade": false,
|
|
|
|
|
"compose_pm_pill": false,
|
|
|
|
|
"compose_state": false,
|
|
|
|
|
"compose_ui": false,
|
|
|
|
|
"composebox_typeahead": false,
|
|
|
|
|
"condense": false,
|
|
|
|
|
"confirm_dialog": false,
|
|
|
|
|
"copy_and_paste": false,
|
|
|
|
|
"csrf_token": false,
|
|
|
|
|
"current_msg_list": true,
|
|
|
|
|
"drafts": false,
|
2020-05-12 20:44:05 +02:00
|
|
|
|
"dropdown_list_widget": false,
|
2020-02-18 00:08:43 +01:00
|
|
|
|
"echo": false,
|
|
|
|
|
"emoji": false,
|
|
|
|
|
"emoji_picker": false,
|
|
|
|
|
"favicon": false,
|
|
|
|
|
"feature_flags": false,
|
|
|
|
|
"feedback_widget": false,
|
|
|
|
|
"fenced_code": false,
|
|
|
|
|
"flatpickr": false,
|
|
|
|
|
"floating_recipient_bar": false,
|
|
|
|
|
"gear_menu": false,
|
|
|
|
|
"hash_util": false,
|
|
|
|
|
"hashchange": false,
|
|
|
|
|
"helpers": false,
|
|
|
|
|
"history": false,
|
|
|
|
|
"home_msg_list": false,
|
|
|
|
|
"hotspots": false,
|
|
|
|
|
"i18n": false,
|
|
|
|
|
"info_overlay": false,
|
|
|
|
|
"input_pill": false,
|
|
|
|
|
"invite": false,
|
|
|
|
|
"jQuery": false,
|
|
|
|
|
"katex": false,
|
|
|
|
|
"keydown_util": false,
|
|
|
|
|
"lightbox": false,
|
|
|
|
|
"list_cursor": false,
|
|
|
|
|
"list_render": false,
|
|
|
|
|
"list_util": false,
|
|
|
|
|
"loading": false,
|
|
|
|
|
"localStorage": false,
|
|
|
|
|
"local_message": false,
|
|
|
|
|
"localstorage": false,
|
|
|
|
|
"location": false,
|
|
|
|
|
"markdown": false,
|
|
|
|
|
"marked": false,
|
|
|
|
|
"md5": false,
|
|
|
|
|
"message_edit": false,
|
2020-06-07 04:50:31 +02:00
|
|
|
|
"message_edit_history": false,
|
2020-02-18 00:08:43 +01:00
|
|
|
|
"message_events": false,
|
|
|
|
|
"message_fetch": false,
|
|
|
|
|
"message_flags": false,
|
|
|
|
|
"message_list": false,
|
|
|
|
|
"message_live_update": false,
|
|
|
|
|
"message_scroll": false,
|
|
|
|
|
"message_store": false,
|
|
|
|
|
"message_util": false,
|
|
|
|
|
"message_viewport": false,
|
|
|
|
|
"moment": false,
|
|
|
|
|
"muting": false,
|
|
|
|
|
"muting_ui": false,
|
|
|
|
|
"narrow": false,
|
|
|
|
|
"narrow_state": false,
|
|
|
|
|
"navigate": false,
|
|
|
|
|
"night_mode": false,
|
|
|
|
|
"notifications": false,
|
|
|
|
|
"overlays": false,
|
|
|
|
|
"padded_widget": false,
|
|
|
|
|
"page_params": false,
|
|
|
|
|
"panels": false,
|
|
|
|
|
"people": false,
|
|
|
|
|
"pm_conversations": false,
|
|
|
|
|
"pm_list": false,
|
|
|
|
|
"pm_list_dom": false,
|
|
|
|
|
"pointer": false,
|
|
|
|
|
"popovers": false,
|
|
|
|
|
"presence": false,
|
|
|
|
|
"reactions": false,
|
|
|
|
|
"realm_icon": false,
|
|
|
|
|
"realm_logo": false,
|
|
|
|
|
"realm_night_logo": false,
|
|
|
|
|
"recent_senders": false,
|
2020-03-21 14:42:10 +01:00
|
|
|
|
"recent_topics": false,
|
2020-02-18 00:08:43 +01:00
|
|
|
|
"reload": false,
|
|
|
|
|
"reload_state": false,
|
|
|
|
|
"reminder": false,
|
|
|
|
|
"resize": false,
|
|
|
|
|
"rows": false,
|
|
|
|
|
"rtl": false,
|
|
|
|
|
"run_test": false,
|
|
|
|
|
"schema": false,
|
|
|
|
|
"scroll_bar": false,
|
|
|
|
|
"scroll_util": false,
|
|
|
|
|
"search": false,
|
|
|
|
|
"search_pill": false,
|
|
|
|
|
"search_pill_widget": false,
|
|
|
|
|
"search_suggestion": false,
|
|
|
|
|
"search_util": false,
|
|
|
|
|
"sent_messages": false,
|
|
|
|
|
"server_events": false,
|
|
|
|
|
"server_events_dispatch": false,
|
|
|
|
|
"settings": false,
|
|
|
|
|
"settings_account": false,
|
|
|
|
|
"settings_bots": false,
|
|
|
|
|
"settings_display": false,
|
|
|
|
|
"settings_emoji": false,
|
|
|
|
|
"settings_exports": false,
|
|
|
|
|
"settings_linkifiers": false,
|
|
|
|
|
"settings_invites": false,
|
|
|
|
|
"settings_muting": false,
|
|
|
|
|
"settings_notifications": false,
|
|
|
|
|
"settings_org": false,
|
|
|
|
|
"settings_panel_menu": false,
|
|
|
|
|
"settings_profile_fields": false,
|
|
|
|
|
"settings_sections": false,
|
|
|
|
|
"settings_streams": false,
|
|
|
|
|
"settings_toggle": false,
|
|
|
|
|
"settings_ui": false,
|
|
|
|
|
"settings_user_groups": false,
|
|
|
|
|
"settings_users": false,
|
2020-04-04 22:14:34 +02:00
|
|
|
|
"spoilers": false,
|
2020-02-18 00:08:43 +01:00
|
|
|
|
"starred_messages": false,
|
|
|
|
|
"stream_color": false,
|
|
|
|
|
"stream_create": false,
|
|
|
|
|
"stream_data": false,
|
|
|
|
|
"stream_edit": false,
|
|
|
|
|
"stream_events": false,
|
2020-03-22 18:40:05 +01:00
|
|
|
|
"stream_topic_history": false,
|
2020-02-18 00:08:43 +01:00
|
|
|
|
"stream_list": false,
|
|
|
|
|
"stream_muting": false,
|
|
|
|
|
"stream_popover": false,
|
|
|
|
|
"stream_sort": false,
|
|
|
|
|
"stream_ui_updates": false,
|
|
|
|
|
"StripeCheckout": false,
|
|
|
|
|
"submessage": false,
|
|
|
|
|
"subs": false,
|
|
|
|
|
"tab_bar": false,
|
|
|
|
|
"templates": false,
|
|
|
|
|
"tictactoe_widget": false,
|
|
|
|
|
"timerender": false,
|
|
|
|
|
"todo_widget": false,
|
|
|
|
|
"top_left_corner": false,
|
|
|
|
|
"topic_generator": false,
|
|
|
|
|
"topic_list": false,
|
|
|
|
|
"topic_zoom": false,
|
|
|
|
|
"transmit": false,
|
|
|
|
|
"tutorial": false,
|
|
|
|
|
"typeahead_helper": false,
|
|
|
|
|
"typing": false,
|
|
|
|
|
"typing_data": false,
|
|
|
|
|
"typing_events": false,
|
|
|
|
|
"ui": false,
|
|
|
|
|
"ui_init": false,
|
|
|
|
|
"ui_report": false,
|
|
|
|
|
"ui_util": false,
|
|
|
|
|
"unread": false,
|
|
|
|
|
"unread_ops": false,
|
|
|
|
|
"unread_ui": false,
|
|
|
|
|
"upgrade": false,
|
|
|
|
|
"upload": false,
|
|
|
|
|
"upload_widget": false,
|
|
|
|
|
"user_events": false,
|
|
|
|
|
"user_groups": false,
|
|
|
|
|
"user_pill": false,
|
|
|
|
|
"user_search": false,
|
|
|
|
|
"user_status": false,
|
|
|
|
|
"user_status_ui": false,
|
|
|
|
|
"poll_widget": false,
|
|
|
|
|
"vdom": false,
|
|
|
|
|
"widgetize": false,
|
|
|
|
|
"zcommand": false,
|
|
|
|
|
"zform": false,
|
|
|
|
|
"zxcvbn": false
|
|
|
|
|
}
|
|
|
|
|
},
|
2019-11-02 00:06:25 +01:00
|
|
|
|
{
|
|
|
|
|
"files": [
|
|
|
|
|
"frontend_tests/casper_tests/*.js",
|
|
|
|
|
"frontend_tests/casper_lib/*.js"
|
|
|
|
|
],
|
|
|
|
|
"rules": {
|
2020-07-02 01:45:54 +02:00
|
|
|
|
// Don’t require ES features that PhantomJS doesn’t support
|
2020-07-02 02:16:03 +02:00
|
|
|
|
"comma-dangle": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"arrays": "always-multiline",
|
|
|
|
|
"objects": "always-multiline",
|
|
|
|
|
"imports": "always-multiline",
|
|
|
|
|
"exports": "always-multiline",
|
|
|
|
|
"functions": "never"
|
|
|
|
|
}
|
|
|
|
|
],
|
2020-07-02 01:45:54 +02:00
|
|
|
|
"no-var": "off",
|
|
|
|
|
"prefer-arrow-callback": "off"
|
2019-11-02 00:06:25 +01:00
|
|
|
|
}
|
|
|
|
|
},
|
2019-03-24 11:20:43 +01:00
|
|
|
|
{
|
|
|
|
|
"files": ["**/*.ts"],
|
2020-05-27 03:58:32 +02:00
|
|
|
|
"extends": [
|
|
|
|
|
"plugin:@typescript-eslint/recommended"
|
|
|
|
|
],
|
2019-03-24 11:20:43 +01:00
|
|
|
|
"parserOptions": {
|
2019-11-04 23:37:32 +01:00
|
|
|
|
"project": "tsconfig.json"
|
2019-03-24 11:20:43 +01:00
|
|
|
|
},
|
|
|
|
|
"rules": {
|
2019-05-31 07:15:00 +02:00
|
|
|
|
// Disable base rule to avoid conflict
|
2019-06-22 08:04:09 +02:00
|
|
|
|
"empty-returns/main": "off",
|
|
|
|
|
"indent": "off",
|
2020-02-01 05:10:50 +01:00
|
|
|
|
"no-extra-parens": "off",
|
2019-06-22 08:04:09 +02:00
|
|
|
|
"semi": "off",
|
|
|
|
|
"no-unused-vars": "off",
|
2019-06-20 11:59:55 +02:00
|
|
|
|
"no-useless-constructor": "off",
|
2019-03-25 15:35:44 +01:00
|
|
|
|
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"@typescript-eslint/array-type": "error",
|
|
|
|
|
"@typescript-eslint/await-thenable": "error",
|
2019-11-09 02:48:01 +01:00
|
|
|
|
"@typescript-eslint/consistent-type-assertions": "error",
|
2019-05-31 07:15:00 +02:00
|
|
|
|
"@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }],
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"@typescript-eslint/func-call-spacing": "error",
|
|
|
|
|
"@typescript-eslint/indent": "error",
|
|
|
|
|
"@typescript-eslint/member-delimiter-style": "error",
|
|
|
|
|
"@typescript-eslint/member-ordering": "error",
|
2019-06-22 08:04:09 +02:00
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
2020-02-01 05:10:50 +01:00
|
|
|
|
"@typescript-eslint/no-extra-parens": ["error", "all"],
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"@typescript-eslint/no-extraneous-class": "error",
|
2019-06-22 08:04:09 +02:00
|
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"@typescript-eslint/no-parameter-properties": "error",
|
|
|
|
|
"@typescript-eslint/no-unnecessary-qualifier": "error",
|
|
|
|
|
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
2019-06-03 06:18:20 +02:00
|
|
|
|
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_" } ],
|
2019-06-22 08:00:15 +02:00
|
|
|
|
"@typescript-eslint/no-use-before-define": "error",
|
|
|
|
|
"@typescript-eslint/no-useless-constructor": "error",
|
|
|
|
|
"@typescript-eslint/prefer-includes": "error",
|
|
|
|
|
"@typescript-eslint/prefer-regexp-exec": "error",
|
|
|
|
|
"@typescript-eslint/prefer-string-starts-ends-with": "error",
|
|
|
|
|
"@typescript-eslint/promise-function-async": "error",
|
|
|
|
|
"@typescript-eslint/semi": "error",
|
|
|
|
|
"@typescript-eslint/type-annotation-spacing": "error",
|
|
|
|
|
"@typescript-eslint/unified-signatures": "error"
|
2019-03-24 11:20:43 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
2016-11-04 23:15:18 +01:00
|
|
|
|
}
|