1.0.1 • Published 5 months ago

@apify/eslint-config v1.0.1

Weekly downloads
1,148
License
ISC
Repository
-
Last release
5 months ago

apify-eslint-config

This repository contains a shared eslint config used across Apify. It offers several configs:

  • JavaScript config @apify/eslint-config/js
  • TypeScript config that also includes JavaScript config @apify/eslint-config/ts
  • Jest config that only applies to test files and folders @apify/eslint-config/jest

How to add to your project

First install the packages as development dependencies:

npm install --save-dev @apify/eslint-config eslint

Optionally, you can install typescript-eslint or eslint-plugin-jest if you intend to use TypeScript or Jest.

Add eslint.config.js file, here's an example configuration for a TypeScript project using ESM and Jest for tests:

import apifyTypescriptConfig from '@apify/eslint-config/ts';
// Optional
import apifyJestConfig from '@apify/eslint-config/jest';

export default [
    ...apifyTypescriptConfig,
    ...apifyJestConfig,
    {
        languageOptions: {
            sourceType: 'module',
            parserOptions: {
                projectService: true,
                tsconfigRootDir: import.meta.dirname,
            },
        },
    },
];

An example configuration for a JavaScript project using CommonJS without Jest:

const apifyJsConfig = require('@apify/eslint-config/js');

module.exports = [
    ...apifyJsConfig,
];
1.0.1

5 months ago

1.0.0

7 months ago

0.5.0-beta.1

11 months ago

0.5.0-beta.0

12 months ago

0.5.0-beta.8

7 months ago

1.0.1-beta.0

5 months ago

0.5.0-beta.7

8 months ago

0.5.0-beta.6

9 months ago

0.5.0-beta.5

9 months ago

0.5.0-beta.4

9 months ago

0.5.0-beta.3

9 months ago

0.5.0-beta.2

10 months ago

1.1.0-beta.0

5 months ago

0.5.0

7 months ago

0.4.0

2 years ago

0.3.4

2 years ago

0.3.2

2 years ago

0.3.3

2 years ago

0.3.0

4 years ago

0.2.3

4 years ago

0.3.1

4 years ago

0.2.4

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.2

4 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago