Holger Jeromin
0f76726392
Migrate eslint config to esmodules
...
And upgrade `@stylistic/eslint-plugin-js` to `4.0.x`
closes #5704
2025-02-19 09:54:07 +01:00
Tom Hughes
f83424aeb2
Update eslint to prefer let/const over var
2025-02-16 11:13:39 +00:00
Holger Jeromin
0043cd6b9a
eslint: Move file config to eslint section
2025-02-11 11:08:33 +01:00
Marwin Hochfelsner
22a37fdf1d
Force only big objects in eslint configuration to be sorted
2025-02-11 10:21:35 +01:00
Tom Hughes
6edb8dae05
Merge remote-tracking branch 'upstream/pull/5643'
2025-02-10 20:13:37 +00:00
Marwin Hochfelsner
3fbc8a3d32
Enable a few linting rules
2025-02-10 20:10:13 +01:00
Tom Hughes
275228dec7
Move eslint ignore rules to the configuration file
...
Instead of having the rake task select which files to check, just
check the whole tree and have eslint ignore third party files and
generated files that we don't control.
2025-02-09 19:38:47 +00:00
Marwin Hochfelsner
5d8442a473
Enable sort-keys for eslint.js
2025-02-09 20:25:00 +01:00
Tom Hughes
08359d8d5f
Merge remote-tracking branch 'upstream/pull/5613'
2025-02-06 17:41:46 +00:00
Holger Jeromin
49b65a09dd
Change eslint no-implicit-globals rule to error
2025-02-06 09:22:40 +01:00
Holger Jeromin
eee793f5e6
change eslint rule no-alert to error
2025-02-06 08:35:50 +01:00
Tom Hughes
4c3fb2c2b5
Merge remote-tracking branch 'upstream/pull/5612'
2025-02-05 18:26:32 +00:00
Andy Allan
6142d8b8fe
Merge pull request #5559 from hlfan/eslint-plugin-erb
...
Add eslint-plugin-erb to provide linting of .js.erb files
2025-02-05 17:07:50 +00:00
Holger Jeromin
5b1be7a79b
Replace deprecated eslint rules
...
no-new-object => no-object-constructor
no-process-env => will be catched by no-undef
2025-02-05 18:01:13 +01:00
Andy Allan
d62caf5fe2
Merge pull request #5606 from AntonKhorev/no-eslint-qs
...
Remove Qs from eslint globals
2025-02-05 16:41:19 +00:00
Marwin Hochfelsner
bc18e85d5c
Add eslint-plugin-erb for .js.erb file linting
...
* Add eslint-plugin-erb to provide linting of our .js.erb files
* Lint osm.js.erb and API-ify OSM.params()
---------
Co-authored-by: Andy Allan <git@gravitystorm.co.uk>
2025-02-05 17:00:38 +01:00
Holger Jeromin
e838e9528c
Move deprecated eslint rules to stylistic plugin
2025-02-05 15:47:11 +01:00
Anton Khorev
a1029ed1d3
Remove Qs from eslint globals
2025-02-04 19:49:28 +03:00
Tom Hughes
70afbd09d6
Bump allowed ECMAScript version to 2021 (ES12)
2025-01-16 19:08:51 +00:00
Emin Kocan
40c71f28be
Enable eslint and fix eslint errors for osm_test.js
2024-10-12 21:02:10 +02:00
Tom Hughes
938037d6a2
Update eslint to v9
2024-04-07 12:13:06 +01:00