
Security News
Security Community Slams MIT-linked Report Claiming AI Powers 80% of Ransomware
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.
@lunit/eslint-config
Advanced tools
A TypeScript ESLint ruleset designed for lunit projects based on @rushstack/eslint-config.
npm install --save-dev @lunit/eslint-config
Referring to the sapmple-project folder, create eslint-config folder in the project repository root folder, add index.js file, and then extend the eslint-config folder to the .eslintrc.cjs file.
# Project folder structure
sample-project/
├── .eslintrc.cjs
└── eslint-config
    ├── index.js
    └── mixins
        └── react.js
// .eslintrc.cjs
module.exports = {
  ...
  extends: [
    './eslint-config', // Extend common ESLint config
  ],
  settings: {
    react: {
      // Specifies the current React version (e.g. version: '18.2')
      // If not specified (default 'detect'), the entire React library will be loaded,
      // which may slow down the linting process.
      version: 'detect',
    },
  },
  ...
};
If necessary, add your own mixin to the eslint-config/mixins folder and use it, or use the mixins in @rushstack/eslint-config/mixins. (Refer to eslint-config/index.js)
// eslint-config/index.js
module.exports = {
  ...
  extends: [
    // (required) Extend the @lunit/eslint-config.
    // (@rushstack/eslint-config/profile/web-app is included by default.)
    '@lunit/eslint-config',
    // React mixin provided by rushstack (requires installation of @rushstack/eslint-config package)
    // '@rushstack/eslint-config/mixins/react',
    // You can create and use your own mixin as follows.
    './mixins/react',
  ],
  ...
};
Refer to the default settings in @lunit/eslint-config/index.js & @rushstack/eslint-config/profile/web-app and add your own rules to the config if necessary. Any esconfig rule entries added must have a valid RATIONALE.
rules: {
  ...
  // RATIONALE : Enforce consistent function types for function components.
  'react/function-component-definition': 'error',
  ...
},
FAQs
Lunit ESLnt Config
The npm package @lunit/eslint-config receives a total of 46 weekly downloads. As such, @lunit/eslint-config popularity was classified as not popular.
We found that @lunit/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.