Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@mobile-reality/eslint-config
Advanced tools
ESLint's configuration of Mobile Reality team.
node: ^18.15.0
eslint: ^8.56.0
eslint-plugin-prettier: ^5.1.3
Install @mobile-reality/eslint-config
, eslint
, prettier
and eslint-plugin-prettier
:
yarn add -D @mobile-reality/eslint-config eslint@^8.37.0 prettier eslint-plugin-prettier
or
npm i -D @mobile-reality/eslint-config eslint@^8.37.0 prettier eslint-plugin-prettier
Add to your root .eslintrc.js
file:
module.exports = {
root: true,
env: {}, // env config is based on project scope eg is it only node or node+browser
extends: [
'@mobile-reality/eslint-config/XXX', // base config based on project scope, XXX described below
'plugin:prettier/recommended', // to include prettier rules in eslint
],
// if jest is used jest config should be added to overrides section
overrides: [
{
files: ['test/**/*.test.ts'], // glob pattern has to match test files
extends: ['@mobile-reality/eslint-config/configs/jest'],
},
],
};
XXX is a preconfigured eslint config for MR projects. Supported configs with required peerDependencies (which must be installed in project):
ESLint
and prettier
dependencies (e.g. eslint
, prettier
, eslint-plugin-prettier
, @typescript-eslint/eslint-plugin
etc.) from package.jsonnode_modules
(so remove them and install with npm i
or yarn install
)You can override rules by adding a rule to the rules section e.g.:
module.exports = {
root: true,
extends: ['@mobile-reality'],
rules: {
'no-console': 'off',
},
};
FAQs
ESLint's configuration of Mobile Reality Team
We found that @mobile-reality/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.