mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Add eslint-plugin-meteor
Add rules for eslint-plugin-meteor. Use local version of eslint and eslint-plugin-meteor, instead of relying on global versions. Ensures consistent versions of eslint and eslint-plugin-meteor for all developers.
This commit is contained in:
parent
3ad672a20b
commit
3956a6ec20
6 changed files with 80 additions and 54 deletions
|
|
@ -109,7 +109,7 @@ if (isSandstorm && Meteor.isClient) {
|
|||
// sandstorm client to return relative paths instead of absolutes.
|
||||
const _absoluteUrl = Meteor.absoluteUrl;
|
||||
const _defaultOptions = Meteor.absoluteUrl.defaultOptions;
|
||||
Meteor.absoluteUrl = (path, options) => {
|
||||
Meteor.absoluteUrl = (path, options) => { // eslint-disable-line meteor/core
|
||||
const url = _absoluteUrl(path, options);
|
||||
return url.replace(/^https?:\/\/127\.0\.0\.1:[0-9]{2,5}/, '');
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue