Skip to content

cepharum/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
];

About

ESLint configuration to be shared among projects of cepharum GmbH

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors