Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Various shared ESLint configurations for Zakodium projects

License

NotificationsYou must be signed in to change notification settings

zakodium/eslint-config

Repository files navigation

Various shared ESLint configurations for Zakodium projects.

Installation

npm install -D eslint-config-zakodium eslint

Configuration

Create a file namedeslint.config.mjs at the root of the project and extend theconfig that you want to use. Example:

import{defineConfig}from'eslint/config';importtsfrom'eslint-config-zakodium/ts';importadonisV5from'eslint-config-zakodium/adonis-v5';exportdefaultdefineConfig(ts,adonisV5);

Globals

This package re-exportsglobals for convenience:

import{defineConfig}from'eslint/config';import{globals}from'eslint-config-zakodium';exportdefaultdefineConfig({languageOptions:{globals:{      ...globals.node,},},});

Monorepo

In a monorepo, you may want to apply different configs for different paths. ThedefineConfig ESLint helper allows to do that withextends:

import{defineConfig,globalIgnores}from'eslint/config';importtsfrom'eslint-config-zakodium/ts';importadonisV5from'eslint-config-zakodium/adonis-v5';importreactfrom'eslint-config-zakodium/react';exportdefaultdefineConfig(// Global ignore patterns.globalIgnores(['**/build']),// Apply TypeScript config on the whole project.ts,{// Apply Adonis v5 config only to the api.files:['api/**'],extends:[adonisV5],},{// Apply React config only to the frontend.files:['front/**'],extends:[react],},);

Available configs

About

Various shared ESLint configurations for Zakodium projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp