Socket
Book a DemoInstallSign in
Socket

@technologiestiftung/eslint-config

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@technologiestiftung/eslint-config

ESLint shareable config for @technologiestiftung

latest
npmnpm
Version
0.4.0
Version published
Weekly downloads
148
-15.91%
Maintainers
0
Weekly downloads
 
Created
Source

All Contributors

Sharable eslint config for @technologiestiftung

This is a sharable eslint config for the @technologiestiftung organization. Should be the basis for JS and TS. Still WIP

The rules we apply should also be only for coding style not formatting. We should use prettier for that.

TODO

  • Figure out how we can use this for javascript and typescript projects
  • Add more relevant rules
  • Add relevant tests

Prerequisites

  • Node.js
  • eslint

Installation

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

Usage

In your eslint.config.js file, add the following:

import technologiestiftung from "@technologiestiftung/eslint-config";

export default [
	...technologiestiftung,
	{
		rules: {
			// your rules here
		},
	},
];
npx eslint

Examples

Since we work on frontend and backend and this config is still WIP we provide some examples on how to use this config in different projects.

Frontend with React

npm i globals eslint-plugin-react --save-dev

Then add this to your eslint.config.js.

import globals from "globals";
import technologiestiftung from "@technologiestiftung/eslint-config";
import react from "eslint-plugin-react";

export default [
	...technologiestiftung,
	{
		files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
		languageOptions: {
			parserOptions: {
				ecmaFeatures: {
					jsx: true,
				},
			},
			globals: {
				...globals.browser,
			},
		},
		rules: {},
		plugins: { react },
	},
];

Development

  • Add good rules to index.js

Tests

npm t

Contributing

Before you create a pull request, write an issue so we can discuss your changes.

Contributors

Thanks goes to these wonderful people (emoji key):

Fabian Morón Zirfas
Fabian Morón Zirfas

🚇 🤔 💻 🎨
Raphael.A
Raphael.A

👀

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

Made by

A project by

Supported by

Keywords

eslint

FAQs

Package last updated on 13 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts