New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bam.tech/eslint-config

Package Overview
Dependencies
Maintainers
10
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bam.tech/eslint-config

This project is an ESLint config that gathers all the rules, plugins and parsers that should be used in any new BAM project.

  • 0.2.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
10
Weekly downloads
 
Created
Source

ESLint config for BAM

This project is an ESLint config that gathers all the rules, plugins and parsers that should be used in any new BAM project.

How to use?

In your app, run yarn add --dev @bam.tech/eslint-config eslint-plugin-react-native eslint-plugin-react @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint typescript.

In your .eslintrc config file, extend the exported configuration:

// .eslintrc
{
  "extends": "@bam.tech/eslint-config"
}

How to customize?

You can still customize your ESLint config by adding configurations, plugins and rules to your .eslintrc config file.

How to improve?

If you find a useful rule that you feel every project at BAM should use, feel free to open a PR.

Use the documentation on how to create a shareable configuration here.

Here is a small summary:

Adding new rules

Adding new rules is quite simple, you just have to modify index.js and add your rule to the rules object:

module.exports = {
  ...
  rules: {
    ...
    "my-new-rule": "error",
  },
  ...
}

Extending new shareable configurations

Extending new shareable configurations is quite simple, you just have to modify index.js and add your shareable configuration to the extends array (the order of configurations is important):

module.exports = {
  ...
  extends: [
    ...
    "@some-scope/eslint-config",
  ],
  ...
}

The package containing your shareable configuration should be added as a dependency by running yarn add your-package.

Adding a plugin

Adding a plugin is quite simple, you just have to modify index.js and add your plugin to the plugins array:

module.exports = {
  ...
  plugins: [
    ...
    "your-plugin",
  ],
  ...
}

The package containing your plugin should be added as a peer dependency by running yarn add --peer your-plugin.

FAQs

Package last updated on 26 Jan 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc