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

@mediamonks/eslint-config

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mediamonks/eslint-config

Sharable eslint config based on Media.Monks Frontend Coding Standards

  • 3.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
390
decreased by-48.14%
Maintainers
0
Weekly downloads
 
Created
Source

Monks - eslint Configuration

The Monks ESLint Configuration is a set of linting rules and presets designed to enforce the Frontend Coding Standards at Monks. This configuration helps maintain code quality and consistency across different projects by providing tailored presets for various project types, including JavaScript, TypeScript, and React.

Quickstart

  1. Install @mediamonks/eslint-config
npm install --save-dev @mediamonks/eslint-config
  1. Create a eslint.config.js file in the root of your module

  2. Configure your project with one of the configuration presets

Presets

Project TypePreset NameDescription
JavaScriptjavascriptPreset for standard JavaScript projects
JavaScript and ReactreactPreset for React projects using JavaScript
TypeScripttypescriptPreset for TypeScript projects
TypeScript and ReacttypescriptReactPreset for React projects using TypeScript
JavaScript (Node.js)javascriptNodePreset for Node.js projects using JavaScript
TypeScript (Node.js)typescriptNodePreset for Node.js projects using TypeScript

Examples

The package provides presets tailored for different project types. These presets ensure that your project adheres to the coding standards and best practices. Below are examples of how to configure your project using these presets.

For projects with JavaScript

import { configs } from '@mediamonks/eslint-config';

export default [
  ...configs.javascript,
  {
    ignores: ['build/*'],
  },
  {
    languageOptions: {
      // Your project language options...
      // Please see the eslint documentation for more details
    },
  },
];

For projects with TypeScript

import { configs } from '@mediamonks/eslint-config';
import tseslint from 'typescript-eslint';

export default tseslint.config(
  ...configs.typescript,
  {
    ignores: ['build/*'],
  },
  {
    languageOptions: {
      // Your project language options...
      // Please see the eslint/typescript-eslint documentation for more details
    },
  },
);

For projects with TypeScript and React

import { configs } from '@mediamonks/eslint-config';
import tseslint from 'typescript-eslint';

export default tseslint.config(
  ...configs.typescriptReact,
  {
    ignores: ['build/*'],
  },
  {
    languageOptions: {
      // Your project language options...
      // Please see the eslint/typescript-eslint documentation for more details
    },
  },
);

Keywords

FAQs

Package last updated on 17 Feb 2025

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