Commit graph

46 commits

Author SHA1 Message Date
Reto
d228a8c4f4
Bump most deps (#4453) 2022-02-09 15:27:34 -08:00
itsjohncs
763047889d Remove uses of window.event.
window.event is a deprecated global that's set to the currently
dispatched event.

- Opened and closed mentions box by clicking its icon in the top bar
- Left and right clicked on an inline channel name and saw context menu
  open both times
- Two-finger swiped on iOS and saw channel change
- Long-touched and dragged channel in network list on iOS and reordered
  the list successfully
2021-12-20 15:34:28 -08:00
Nachtalb
04cf2277d9
Prevent possible error when findChannel can't find the wanted channel
Using ?. (optional chaining) requires ecma version 2020 as it is fairly new. Webpack / Babel can handle it.
2021-05-05 18:09:18 +02:00
Pavel Djundik
1c004cbd17 Upgrade eslint-plugin-vue and fix rules 2020-09-30 17:44:07 +03:00
Tim Miller-Williams
13a7a4b5c1
Remove vue/no-use-v-if-with-v-for eslint override 2020-04-28 20:05:46 +01:00
Pavel Djundik
f22cfe0547 Bump ecmaVersion to 2018 2019-10-20 00:00:15 +03:00
Pavel Djundik
f40e35515f Remove linebreak-style 2019-07-19 14:44:46 +03:00
Alistair McKinlay
48eeb11391 Set up prettier on js/vue 2019-07-19 11:24:30 +01:00
Alistair McKinlay
ab8d819193 Set up Prettier on md, html, json, and yaml 2019-07-17 10:22:30 +01:00
Pavel Djundik
1425130436 Update eslint and eslint-plugin-vue, fix rules 2019-06-25 11:51:47 +03:00
Jérémie Astori
b99495334e
Set up ESLint to flag when closing brackets are not on a new line 2019-02-25 00:36:50 -05:00
Pavel Djundik
19693bc9b7 Update Vue packages 2019-02-13 16:44:15 +02:00
Pavel Djundik
ba2522ecda Update vue-loader 2019-02-12 12:49:05 +02:00
Pavel Djundik
6877199515 Update eslint-plugin-vue 2019-02-12 12:48:45 +02:00
Pavel Djundik
7e332b817d Channel list rendering with Vue
Co-Authored-By: Tim Miller-Williams <timmw@users.noreply.github.com>
2019-02-12 12:48:41 +02:00
Pavel Djundik
b8dde41482 Bump minimum node version to 8 LTS 2019-01-29 10:44:19 +02:00
Max Leiter
46abaeb279 Update no-confusing-error eslint rule to allow parenthesis 2018-06-26 00:35:02 -07:00
Pavel Djundik
472d618033 Remove log from global 2018-06-15 23:31:06 +03:00
Pavel Djundik
f82edcd7e7 quote-props: consistent-as-needed 2018-03-23 16:15:59 +02:00
Jérémie Astori
00bca229f0
Enforce object literal shorthand syntax with ESLint 2018-03-15 00:22:09 -04:00
Pavel Djundik
1453e262d1 Enforce padding-line-between-statements in eslint 2018-02-20 09:27:32 +02:00
Pavel Djundik
a3e448acf5 Enable no-var rule
Fixes #1961
2018-02-19 19:49:39 +02:00
Jérémie Astori
3cba89dc9e Add ES6-related ESLint rules 2018-02-19 18:30:00 +02:00
Pavel Djundik
20af04bca0 Enable no-use-before-define rule 2017-12-06 15:57:04 +02:00
Jérémie Astori
257b6d320b
Merge pull request #1711 from thelounge/astorije/comma-dangle
Enforce dangling commas with ESLint
2017-11-19 00:06:22 -05:00
Jérémie Astori
1dc92d8934
Enforce dangling commas with ESLint
¯\_(ツ)_/¯
2017-11-15 01:35:15 -05:00
Jérémie Astori
f6be0e0ee0
Add a script to pre-generate changelog entries
I have been using and improving that script for some time now, at least all 2.5 and 2.6 releases. 👌
2017-11-12 16:28:01 -05:00
Jérémie Astori
82c4898715
Use explicit keywords instead of cryptic codes in ESLint config
Bikeshedding at its best, isn't it?
2017-09-17 22:04:29 -04:00
Jérémie Astori
64cc4927b3
Make sure we never ship with JS alerts by accident 2017-09-17 21:50:41 -04:00
Jérémie Astori
b8399471b3
Enable ESLint no-console rule to avoid future mistakes 2017-09-17 21:50:21 -04:00
Pavel Djundik
111453aeaf Enforce semicolon spacing 2017-09-01 21:17:45 +03:00
Pavel Djundik
f6dd616d5e Update to eslint 4 and enforce extra rules 2017-06-19 09:58:29 +03:00
Jérémie Astori
d287dede49 Setup ESLint to make sure an EOF feed is always present 2017-03-29 00:05:28 -04:00
Pavel Djundik
3b2e3fc08c Enforce more space and new line rules 2017-03-18 21:40:39 +02:00
greenkeeper[bot]
9f053dfaae chore(package): update eslint to version 3.17.1
https://greenkeeper.io/
2017-03-10 19:23:19 +02:00
Jérémie Astori
78bb2edf1a Make sure multiline chains of calls are correctly indented
Without this rule, the following examples are passing ESLint:

```js
foo()
.bar(); // 0 tabs

foo()
		.bar() // 2 tabs
	.baz(); // 1 tab

foo()
  .bar() // 2 spaces
	.baz(); // 1 tab
```
2017-02-18 01:57:50 -05:00
Pavel Djundik
fb87bd3a58 Webpack 2016-12-27 19:15:30 +02:00
Pavel Djundik
28056d678e Correctly remove closed sockets from oident file, remove unused functions 2016-12-11 08:56:32 +02:00
Pavel Djundik
6023035838 Update depdencides to latest stable versions 2016-11-19 10:49:16 +02:00
Pavel Djundik
aa02fd5180 Enforce more eslint rules 2016-10-09 17:55:37 -04:00
Jérémie Astori
caa46042bf Enforce strict mode across all JS files with ESLint
Several ES6 additions are only available in strict mode. Example:
> SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

Strict mode was also enabled in a few of our files already, and it is a good thing to have anyway.
2016-10-09 15:14:02 -04:00
William Boman
204e5e4ee4 lint: default to ecmaVersion: 6, keep ecmaVersion: 5 for client/ 2016-09-06 10:09:11 +02:00
Pavel Djundik
2ffd85d89f Update eslint and enforce key-spacing 2016-06-05 21:48:34 +03:00
Pavel Djundik
e75a8f40a6 Stricter eslint rule for curly brackets 2016-05-01 12:41:17 +03:00
Pavel Djundik
ede3131168 Add global logging helper 2016-04-27 00:05:55 +03:00
Pavel Djundik
52bc324a63 Update eslint to 2.3.0 and add stricter rules 2016-03-09 10:50:20 +02:00
Renamed from .eslintrc (Browse further)