mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
Based on the file summaries provided, the best label for this commit would be "feat". This is because the commit introduces several new features to the codebase, such as adding a new ESLint rule, adding a new property to a function, adding authentication middleware, adding a query parameter, and adding a new function to handle user authentication.: update authentication and session handling - Add `"camelcase"` rule to ESLint configuration - Add `containerId` property to the `newSession` object in the `createSession` function - Add authentication middleware to the socket.io connection - Add a query parameter `session_id` to the socket.io connection in `client.js` - Add `defaultUser` function to handle user authentication - Update the `authMiddleware` function to use the `defaultUser` function - Add `defaultUser` function to handle user authentication in `auth.js` - Update `getOrCreateContainer` function to use the `id` parameter instead of `name` parameter
25 lines
671 B
JavaScript
25 lines
671 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
jest: true,
|
|
},
|
|
extends: [
|
|
'plugin:vue/vue3-essential',
|
|
'airbnb-base',
|
|
'plugin:prettier/recommended', // We added this
|
|
],
|
|
parserOptions: {
|
|
// parser: 'babel-eslint',
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module',
|
|
},
|
|
rules: {
|
|
'prettier/prettier': ['error', { endOfLine: 'auto', semi: false }], // We added this
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'import/extensions': 'off',
|
|
camelcase: ['error', { properties: 'never', ignoreDestructuring: true }],
|
|
},
|
|
}
|