
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@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
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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.