
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@borgar/eslint-config
Advanced tools
I have opinions on how my code should look. This is a capture of those.
Look at the example.js to get a feel for what the code looks like. The rules are a bit lax on space at times and depend on the programmer wanting to keep the code legible and clean (don't we all?).
Pull it into your package like this:
npm install --save-dev eslint @borgar/eslint-config
Then add an .eslintrc file:
{ extends: [ '@borgar/eslint-config' ] }
Or perhaps you are using a babel/webpack combo, like I frequently do:
{
parser: 'babel-eslint',
extends: [ '@borgar/eslint-config' ],
rules: {
"import/export": "error",
"import/no-unresolved": "error"
},
plugins: [
'import'
],
settings: {
'import/resolver': 'webpack'
}
}
This will additionally need any or all of the following modules:
npm install --save-dev babel-core babel-eslint babel-loader babel-preset-env eslint-import-resolver-webpack eslint-plugin-import webpack webpack-cli
It comes with settings for React development as well. You'll need the react rules plugin:
npm install --save-dev eslint-plugin-react
And a ref in your .eslintrc file:
{ extends: [ '@borgar/eslint-config', '@borgar/eslint-config/react' ] }
FAQs
I have opinions on how my code should look.
The npm package @borgar/eslint-config receives a total of 185 weekly downloads. As such, @borgar/eslint-config popularity was classified as not popular.
We found that @borgar/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.