2.0.2 • Published 7 months ago

eslint-config-cepharum v2.0.2

Weekly downloads
41
License
MIT
Repository
github
Last release
7 months ago

eslint-config-cepharum

common ESLint configuration for projects of cepharum GmbH

License

MIT

Prerequisites

Starting with v2, the configuration works with versions of ESLint since v9.

Installation

npm i -D eslint-config-cepharum

Usage

Create eslint.config.js file in the root folder of your project with following content:

import cepharum from "eslint-config-cepharum";

export default [
    // put additional configuration objects here ...
    ...cepharum,
    // ... or here
];

Note: In case a warning is displayed regarding failed attempt to process the configuration as CommonJS, either fix your project's package.json file to include the "type": "module" declaration or rename the configuration file to eslint.config.mjs.

Custom ignore folders

The provided default configuration is set up to globally ignore files in folders matching this glob pattern:

  • **/.vitepress/cache

In addition, all configuration blocks but those regarding test files are individually ignoring files in folders matching this glob pattern:

  • **/test

If you need to declare additional folders to be globally ignored by ESLint, a helper function is available to create a custom configuration based on the default one to use instead:

import { ignoreFolders } from "eslint-config-cepharum";

export default [
    // put additional configuration objects here ...
    ...ignoreFolders( "**/coverage", "server/public" ),
    // ... or here
];
2.0.2

7 months ago

2.0.1

7 months ago

2.0.0

7 months ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago