
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@basis-theory/eslint-config
Advanced tools
Standardized Basis Theory ESLint and Prettier configurations.
yarn add @basis-theory/eslint-config -D
Add it to extends property of your ESLint config file (i.e. .eslintrc.js):
module.exports = {
extends: '@basis-theory',
rules: {
// disable/enable any rules
},
};
Instead of extending the root ruleset, point to the exported Typescript flavor:
module.exports = {
extends: '@basis-theory/eslint-config/typescript',
rules: {
// disable/enable any rules
},
};
Instead of extending the root ruleset, point to the exported Next.js (Typescript) flavor:
module.exports = {
extends: '@basis-theory/eslint-config/next',
rules: {
// disable/enable any rules
},
};
Since both eslint-config-get-off-my-lawn and eslint-config-next use same plugins with different versions, which leads to ESLint throwing the error:
ESLint couldn't determine the plugin "{pluginName}" uniquely.
So get over that, you must add Yarn resolutions field to your package.json:
{
"resolutions": {
"eslint-plugin-import": "2.24.2",
"eslint-plugin-react": "7.25.1"
}
}
Note: if you are using NPM, it is worth looking into (npm-force-resolutions)[https://www.npmjs.com/package/npm-force-resolutions] as an alternative to Yarn's deterministic dependency resolution.
To use only the exported config in your project, you may set the prettier prop to your package.json:
{
"prettier": "@basis-theory/eslint-config/prettier"
}
Or, if you want to expand on top it, create a .prettierrc.js file with following content:
module.exports = {
...require('@basis-theory/eslint-config/prettier'),
// add your configuration here
};
@typescript-eslint/explicit-module-boundary-types and/or @typescript-eslint/explicit-module-boundary-types for a React component, add return type JSX.Element as follows:
Before:
export const MyComponent = ({}: Props) => {};
After:
export const MyComponent = ({}: Props): JSX.Element => {};
FAQs
Basis Theory ESLint config
The npm package @basis-theory/eslint-config receives a total of 518 weekly downloads. As such, @basis-theory/eslint-config popularity was classified as not popular.
We found that @basis-theory/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 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
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

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.