3.1.1 • Published 9 months ago

@mediamonks/eslint-config v3.1.1

Weekly downloads
261
License
MIT
Repository
github
Last release
9 months ago

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
    },
  },
);
2.6.1-rc.11

1 year ago

2.6.1-rc.10

1 year ago

3.1.1

9 months ago

3.0.2

10 months ago

3.1.0

9 months ago

3.0.1

10 months ago

3.0.0

1 year ago

2.6.1-rc.0

1 year ago

2.6.1-rc.1

1 year ago

2.6.1-rc.2

1 year ago

2.6.1-rc.3

1 year ago

2.6.1-rc.4

1 year ago

2.6.1-rc.5

1 year ago

2.6.1-rc.6

1 year ago

2.6.1-rc.7

1 year ago

2.6.1-rc.8

1 year ago

2.6.1-rc.9

1 year ago

2.6.0

1 year ago

2.5.0

2 years ago

2.4.0

2 years ago

2.3.0

2 years ago

2.2.1

2 years ago

2.3.1

2 years ago

2.2.2

2 years ago

2.2.0

3 years ago

2.0.9

3 years ago

2.0.8

3 years ago

2.1.0

3 years ago

2.0.7-0

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.3

5 years ago

1.2.0

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago