
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@alexasselin/eslint-plugin-1
Advanced tools
@sharegate/eslint-plugin
ShareGate’s ESLint configs.
Install the package.
With npm
npm i --save-dev @sharegate/eslint-plugin
With yarn
yarn add --dev @sharegate/eslint-plugin
ShareGate’s ESLint configs come bundled in this package. In order to use them, you simply extend the relevant configuration in your project’s .eslintrc. For example, if you are developing an application using TypeScript and React, using third party like lodash :
"extends": [
"plugin:@sharegate/recommended",
"plugin:@sharegate/sort-imports",
"plugin:@sharegate/typescript",
"plugin:@sharegate/react",
"plugin:@sharegate/lodash",
]
If you want to use plugin-provided rules, you can do it like this:
"plugins": [
"@sharegate"
],
"rules": {
"@sharegate/prefer-cx": "warn"
}
Language/Framework | Config | Description |
---|---|---|
JavaScript - recommended | "plugin:@sharegate/recommended" | Use this for all JavaScript/TypeScript projects. |
JavaScript - sort-imports | "plugin:@sharegate/sort-imports" | Use this for JavaScript/TypeScript projects. |
typescript | "plugin:@sharegate/typescript" | Use this for TypeScript projects. |
react | "plugin:@sharegate/react" | Use this for React projects. |
nextjs | "plugin:@sharegate/nextjs" | Use this for NextJs projects. |
mdx | "plugin:@sharegate/mdx" | Use this for mdx files. |
Third party | Config | Description |
---|---|---|
lodash | "plugin:@sharegate/lodash" | Use this for projects using lodash. |
jest | "plugin:@sharegate/jest" | Use this for projects using jest. |
testing-library | "plugin:@sharegate/testing-library" | Use this for projects using testing-library. |
storybook | "plugin:@sharegate/storybook" | Use this for projects using storybook. |
storybook-csf | "plugin:@sharegate/storybook-csf" | Use this for projects using storybook but with the CSF format. |
This plugin provides the following custom rules, which are included as appropriate in all core linting configs:
Copyright © 2023, GSoft inc. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/gsoft-inc/gsoft-license/blob/master/LICENSE.
FAQs
Sharegates ESLint rules and configs.
The npm package @alexasselin/eslint-plugin-1 receives a total of 3 weekly downloads. As such, @alexasselin/eslint-plugin-1 popularity was classified as not popular.
We found that @alexasselin/eslint-plugin-1 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.