Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@moxy/eslint-config
Advanced tools
MOXY eslint configuration to be used across several JavaScript projects
MOXY eslint configuration to be used across several JavaScript projects.
$ npm install --save-dev eslint @moxy/eslint-config
NOTE: npm
v3 or greater is required for this package to work correctly until #3458 is resolved.
Create a .eslintrc.json
file in the project root using a base configuration and addons.
First you need to choose the base configuration to use:
es5
- The configuration to be used in ECMAScript 5 based projectses6
- The configuration to be used in ECMAScript 6 based projects (aka 2015)es7
- The configuration to be used in ECMAScript 7 based projects (aka 2016)es8
- The configuration to be used in ECMAScript 8 based projects (aka 2017)es9
- The configuration to be used in ECMAScript 9 based projects (aka 2018)es10
- The configuration to be used in ECMAScript 10 based projects (aka 2019)Then enhance it with one or more addons:
browser
- If you are going to develop code for the browser (assumes you use CommonJS or AMD)node
- If you are going to develop code for NodeJSes-modules
: If you are going to use ES6 import & export instead of CommonJS or AMD (this rule skips root [...].config.js
files to avoid ignoring this rule in common configuration files)babel-parser
: Use babel-eslint parser so that you may use language features that are not yet implemented in eslint (e.g.: dynamic imports)react
- If you are going to use React (requires es6
base configuration or higher)vue
- If you are going to use Vuejest
- If you are going to use Jest to develop testsCutting edge React in the browser:
{
"root": true,
"extends": [
"@moxy/eslint-config/es9",
"@moxy/eslint-config/addons/browser",
"@moxy/eslint-config/addons/es-modules",
"@moxy/eslint-config/addons/react"
]
}
Cutting edge NodeJS:
{
"root": true,
"extends": [
"@moxy/eslint-config/es9",
"@moxy/eslint-config/addons/node"
]
}
Cutting edge NodeJS with ES modules (requires a transpiler such as Babel or similar):
{
"root": true,
"extends": [
"@moxy/eslint-config/es9",
"@moxy/eslint-config/addons/node",
"@moxy/eslint-config/addons/es-modules"
]
}
Old ES5 in the browser:
{
"root": true,
"extends": [
"@moxy/eslint-config/es5",
"@moxy/eslint-config/addons/browser"
]
}
Note that by setting root
to true, we ensure that no ancestor configuration is used which also improves ESLint
performance because no more file lookups need to be done.
$ npm test
$ npm test -- --watch
during development
FAQs
MOXY eslint configuration to be used across several JavaScript projects
The npm package @moxy/eslint-config receives a total of 12 weekly downloads. As such, @moxy/eslint-config popularity was classified as not popular.
We found that @moxy/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 21 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.