fix eslint and update eslint to 8.0.0

This commit is contained in:
Rohid
2024-08-31 01:34:01 +06:00
parent a87b17e48c
commit d7cd69783b
27 changed files with 5875 additions and 3876 deletions

View File

@@ -56,12 +56,12 @@ const getConfigByBrowser = (isProd: boolean, browser: BrowserTypes): webpack.Con
],
}),
new webpack.DefinePlugin({
['process.env.API_URL']: JSON.stringify('https://api.wakatime.com/api/v1'),
['process.env.CURRENT_USER_API_URL']: JSON.stringify('/users/current'),
['process.env.HEARTBEAT_API_URL']: JSON.stringify('/users/current/heartbeats.bulk'),
['process.env.LOGOUT_USER_URL']: JSON.stringify('https://wakatime.com/logout'),
['process.env.NODE_ENV']: JSON.stringify(isProd ? 'production' : 'development'),
['process.env.SUMMARIES_API_URL']: JSON.stringify('/users/current/summaries'),
'process.env.API_URL': JSON.stringify('https://api.wakatime.com/api/v1'),
'process.env.CURRENT_USER_API_URL': JSON.stringify('/users/current'),
'process.env.HEARTBEAT_API_URL': JSON.stringify('/users/current/heartbeats.bulk'),
'process.env.LOGOUT_USER_URL': JSON.stringify('https://wakatime.com/logout'),
'process.env.NODE_ENV': JSON.stringify(isProd ? 'production' : 'development'),
'process.env.SUMMARIES_API_URL': JSON.stringify('/users/current/summaries'),
}),
],
resolve: {