Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@bigpicturemedical/eslint-config
Advanced tools
Big Picture Medical EsLint config - Style your code just like we do
A ESLint config for Big Picture Medical
npm i --save-dev @bigpicturemedical/eslint-config
In .eslintrc.js
:
module.exports = {
extends: [ "@bigpicturemedical/eslint-config/vue" ]
}
In package.json
:
"scripts": {
"lint": "eslint ./src/ --ext .ts,.vue"
}
Install the eslint extension: dbaeumer.vscode-eslint
in settings.json
"eslint.options": {
"extensions": [
".html",
".js",
".jsx",
".ts",
".vue"
]
},
"eslint.validate": [
{
"language": "typescript",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
},
],
Our style basis is a work in progress.
Let your code breath a little...use whitespace. Generally leave a line between function declaration and code in the function (and before closing brace):
const patch = (req: Request, res: Response, next: NextFunction) => {
const { id, code, email } = req.params
return update({ id, code, email }, req.body)
.then(() => {
return getByEmail({ id, code, email })
})
.then((user) => {
res.json(user)
})
.catch(next)
}
Group logical chunks of code together - use whitespace like paragraphs, communicate your intent to the person who comes after you...
const abc = (param) => {
const { aaa, bbb, ccc } = param;
const x = 1;
const y = 2;
if (aaa === 123) {
someService.doSomething(bbb, ccc);
someService.doSomethingElse(ccc);
someService.andThen(ccc);
}
someService.xxx(bbb);
someService.yyy(ccc);
someService.zzz(ccc);
};
Same for test specs
describe(suiteName(__filename), () => {
afterEach(() => {
jest.resetAllMocks();
});
describe('get', () => {
it('correct values returned', async () => {
const user: any = {};
// more code
FAQs
Big Picture Medical EsLint config - Style your code just like we do
The npm package @bigpicturemedical/eslint-config receives a total of 37 weekly downloads. As such, @bigpicturemedical/eslint-config popularity was classified as not popular.
We found that @bigpicturemedical/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.