Skip to content

Shared configurations for the Spezi Web Ecosystem

License

Notifications You must be signed in to change notification settings

StanfordSpezi/spezi-web-configurations

Repository files navigation

Biodesign Digital Health Spezi Web Configurations

Build and Test Deployment DOI

Getting Started

A shared linting and formatter configurations. Uses Prettier and ESLint. Pre-configured for you to easily plug into your codebases.

Configurations are opinionated and strict. We aim to catch as many possible mistakes or elements we consider harmful practices early. Some rules are meant to be broken once in a while, with an explanation comment around them.

Installation

Install dependencies:

npm install --save-dev prettier eslint @stanfordspezi/spezi-web-configurations

Create eslint.config.js file:

const { getEslintConfig } = require('@stanfordspezi/spezi-web-configurations')

module.exports = getEslintConfig({ tsconfigRootDir: __dirname })

Create .prettierrc.js file:

const { prettierConfig } = require("@stanfordspezi/spezi-web-configurations");

module.exports = prettierConfig;

Now, when you run eslint . --fix, code is going to be linted and formatted.

License

This project is licensed under the MIT License. See Licenses for more information.

Contributors

This project is developed as part of the Stanford Byers Center for Biodesign at Stanford University. See CONTRIBUTORS.md for a full list of all Next.js Template contributors.

Stanford Byers Center for Biodesign Logo Stanford Byers Center for Biodesign Logo

About

Shared configurations for the Spezi Web Ecosystem

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published