@univ-lehavre/atlas-shared-config
v1.0.2
Published
Shared TypeScript, ESLint, and Prettier configuration for Atlas projects
Downloads
606
Maintainers
Readme
@univ-lehavre/atlas-shared-config
Configurations TypeScript, ESLint et Prettier partagées par les unités Atlas.
About
Ce package exporte les presets utilisés par les applications SvelteKit, packages TypeScript, CLI Node et scripts internes du monorepo. Il fournit des tsconfig, des configurations ESLint spécialisées et des presets Prettier réutilisables depuis chaque unité de code.
Features
- TypeScript: Strict configurations for Node.js and libraries
- ESLint: Presets for TypeScript, Svelte, and internal scripts
- Prettier: Consistent formatting with Svelte support
Installation
pnpm add -D @univ-lehavre/atlas-shared-configUsage
TypeScript
// tsconfig.json
{
"extends": "@univ-lehavre/atlas-shared-config/node.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src"
},
"include": ["src"]
}ESLint
// eslint.config.js
import { typescript } from '@univ-lehavre/atlas-shared-config/eslint';
export default typescript({
ignores: ['**/generated/**'],
workspaceModules: ['@univ-lehavre/atlas-net'],
});Prettier
// prettier.config.js
import { base } from '@univ-lehavre/atlas-shared-config/prettier';
export default base;
// For SvelteKit
import { svelte } from '@univ-lehavre/atlas-shared-config/prettier';
export default svelte;ESLint Presets
| Preset | Usage | Level |
|--------|-------|-------|
| typescript | TypeScript libraries | Strict |
| svelte | SvelteKit applications | Strict |
| scripts | Internal tooling | Relaxed |
TypeScript Configuration
| Config | Description |
|--------|-------------|
| base.json | Strict base configuration |
| node.json | Node.js specific (extends base) |
Scripts
pnpm -F @univ-lehavre/atlas-shared-config build # Build
pnpm -F @univ-lehavre/atlas-shared-config lint # ESLintDocumentation
Organization
This package is part of Atlas, a set of tools developed by Le Havre Normandie University to facilitate research and collaboration between researchers.
Atlas is developed as part of two projects led by Le Havre Normandie University:
- Campus Polytechnique des Territoires Maritimes et Portuaires: research and training program focused on maritime and port issues
- EUNICoast: European university alliance bringing together institutions located in European coastal areas
License
MIT
