Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix + refactor: fixed textui bug + Improved code style, respecting ESLint rules #759

Merged
merged 23 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
426cda1
fix fixed textui bug
bitpredator Jul 28, 2024
2a47144
refactor: Improved code style respecting ESLint rules
bitpredator Jul 28, 2024
95e71d7
chore: [esx]\esx_textui\fxmanifest.lua 🎨 Run formatter
bitpredator Jul 29, 2024
98ee9fd
chore: [esx]\mythic_notify\fxmanifest.lua 🎨 Run formatter
bitpredator Jul 29, 2024
9760b6a
refactor: Improved code style respecting ESLint rules
bitpredator Jul 29, 2024
ed77b19
fix: [bpt_addons]\bpt_addonaccount\server\main.lua corrected typo
bitpredator Jul 29, 2024
407a233
refactor: Improved code style respecting ESLint rules
bitpredator Jul 29, 2024
343b76e
refactor: Improved code style respecting ESLint rules
bitpredator Jul 29, 2024
6e3ee58
feat: eslint.config.js rules
bitpredator Jul 29, 2024
8c32ffe
refactor: Improved code style respecting ESLint rules
bitpredator Jul 29, 2024
025de87
feat: bpt_carshowroom
bitpredator Jul 29, 2024
103ea36
refactor: Improved code style respecting ESLint rules
bitpredator Jul 29, 2024
d36e15f
refactor: Improved code style respecting ESLint rules
bitpredator Jul 29, 2024
b659591
refactor: Improved code style respecting ESLint rules
bitpredator Jul 29, 2024
fd4b2a8
chore: [bpt_addons]\bpt_status\fxmanifest.lua 🎨 Run formatter
bitpredator Jul 29, 2024
7afd92e
chore: removed the crafting system built into ox_inventory
bitpredator Jul 30, 2024
a9fd5db
chore: 🎨 Run formatter + replace _U with TranslateCap
bitpredator Jul 30, 2024
84b9358
refactor: Improved code style respecting ESLint rules
bitpredator Jul 30, 2024
e917ef3
chore: creation of mechanical shops for the sale of their products
bitpredator Jul 31, 2024
b495543
refactor: Improved code style respecting ESLint rules
bitpredator Jul 31, 2024
1183e27
fix: corrected the use of some unused variables
bitpredator Jul 31, 2024
e698896
refactor: Improved code style respecting ESLint rules + 🎨 Run formatt…
bitpredator Jul 31, 2024
80d0dbb
feat: file upload for eslint worlflow
bitpredator Jul 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
const js = require('@eslint/js');

module.exports = [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 'latest',
},
rules: {
'arrow-spacing': ['warn', { 'before': true, 'after': true }],
'brace-style': ['error', 'stroustrup', { 'allowSingleLine': true }],
'comma-dangle': ['error', 'always-multiline'],
'comma-spacing': 'error',
'comma-style': 'error',
'curly': ['error', 'multi-line', 'consistent'],
'dot-location': ['error', 'property'],
'handle-callback-err': 'off',
'indent': ['error', 'tab'],
'keyword-spacing': 'error',
'max-nested-callbacks': ['error', { 'max': 4 }],
'max-statements-per-line': ['error', { 'max': 2 }],
'no-console': 'off',
'no-empty-function': 'error',
'no-floating-decimal': 'error',
'no-inline-comments': 'error',
'no-lonely-if': 'error',
'no-multi-spaces': 'error',
'no-multiple-empty-lines': ['error', { 'max': 2, 'maxEOF': 1, 'maxBOF': 0 }],
'no-shadow': ['error', { 'allow': ['err', 'resolve', 'reject'] }],
'no-trailing-spaces': ['error'],
'no-var': 'error',
'no-undef': 'off',
'object-curly-spacing': ['error', 'always'],
'prefer-const': 'error',
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'space-before-blocks': 'error',
'space-before-function-paren': ['error', {
'anonymous': 'never',
'named': 'never',
'asyncArrow': 'always',
}],
'space-in-parens': 'error',
'space-infix-ops': 'error',
'space-unary-ops': 'error',
'spaced-comment': 'error',
'yoda': 'error',
},
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ AddEventHandler("esx:playerLoaded", function(_, xPlayer)
addonAccounts[#addonAccounts + 1] = account
end

xPlayer.set('addonAccounts', addonAccounts)
xPlayer.set("addonAccounts", addonAccounts)
end)

RegisterNetEvent("bpt_addonaccount:refreshAccounts")
Expand Down Expand Up @@ -139,6 +139,6 @@ AddEventHandler("bpt_addonaccount:refreshAccounts", function()
end
end)

exports("getAccount", GetSharedAccount)
exports("getAccount", GetAccount)

exports("getSharedAccount", GetSharedAccount)
Loading
Loading