All Projects → Shinigami92 → eslint-define-config

Shinigami92 / eslint-define-config

Licence: MIT license
Provide a defineConfig function for .eslintrc.js files

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to eslint-define-config

eslint-config-hardcore
The most strict (yet practical) ESLint config. 34 plugins. 1047 rules.
Stars: ✭ 168 (+175.41%)
Mutual labels:  config, eslint, eslint-config, eslintconfig
eslint-config
An ESLint shareable config that I used in my projects
Stars: ✭ 15 (-75.41%)
Mutual labels:  eslint, eslint-config, eslintconfig
nginx-conf
Nginx configuration
Stars: ✭ 18 (-70.49%)
Mutual labels:  config, configuration
onion
Layer based configuration for golang
Stars: ✭ 104 (+70.49%)
Mutual labels:  config, configuration
luozhu
Luozhu's practice in Front End Engineering and Components Development.
Stars: ✭ 28 (-54.1%)
Mutual labels:  eslint, eslintconfig
salak.rs
A multi layered configuration loader and zero-boilerplate configuration parser.
Stars: ✭ 27 (-55.74%)
Mutual labels:  config, configuration
network tech
Cisco config syntax and snippets for Sublime Text
Stars: ✭ 82 (+34.43%)
Mutual labels:  config, configuration
tomlj
A Java parser for Tom's Obvious, Minimal Language (TOML).
Stars: ✭ 72 (+18.03%)
Mutual labels:  config, configuration
cfg-rs
A Configuration Library for Rust Applications
Stars: ✭ 18 (-70.49%)
Mutual labels:  config, configuration
eslint-config-kingstinct-react-native
Eslint configuration for React-native based on Airbnb with some great tweaks
Stars: ✭ 23 (-62.3%)
Mutual labels:  eslint, configuration
spdlog setup
spdlog setup initialization via file configuration for convenience.
Stars: ✭ 68 (+11.48%)
Mutual labels:  config, configuration
profig
Powerful configuration management for Scala (JSON, properties, command-line arguments, and environment variables)
Stars: ✭ 25 (-59.02%)
Mutual labels:  config, configuration
configuro
An opinionated configuration loading framework for Containerized and Cloud-Native applications.
Stars: ✭ 81 (+32.79%)
Mutual labels:  config, configuration
config
Config component, strictly typed
Stars: ✭ 14 (-77.05%)
Mutual labels:  config, configuration
climatecontrol
Python library for loading settings and config data from files and environment variables
Stars: ✭ 20 (-67.21%)
Mutual labels:  config, configuration
Machfiles
The dotfiles you see in all my videos
Stars: ✭ 347 (+468.85%)
Mutual labels:  config, configuration
ha-config-ataraxis
My Home Assistant Configs. If you like what you see, please ⭐️my repo. It would encourage me a lot 🤘
Stars: ✭ 146 (+139.34%)
Mutual labels:  config, configuration
nvim
❤️ A neovim config repo.
Stars: ✭ 33 (-45.9%)
Mutual labels:  config, configuration
croconf
A flexible and composable configuration library for Go that doesn't suck
Stars: ✭ 14 (-77.05%)
Mutual labels:  config, configuration
parse it
A python library for parsing multiple types of config files, envvars & command line arguments that takes the headache out of setting app configurations.
Stars: ✭ 86 (+40.98%)
Mutual labels:  config, configuration

NPM package Downloads Build Status License: MIT Code Style: Prettier Donate: PayPal

eslint-define-config

Provide a defineConfig function for .eslintrc.js files.

This project is written by a human and only partially automatically generated!
Some rules are even enhanced by hand!
Unfortunately, this has the disadvantage that not everything is immediately defined. For example, if a rule is not defined, it falls back to a basic definition.
However, the advantage is that you get documentation for pretty much everything in the code and usually get a direct link to the respective plugin or eslint rule. The types are also strictly typed.

So if you are missing something like a rule or a plugin that should also be supported or a rule definition is e.g. out of date, feel free to open an issue or PR for it.

Installation

# add eslint and eslint-define-config to project’s dev dependencies
npm add --save-dev eslint eslint-define-config
# or
yarn add --dev eslint eslint-define-config
# or
pnpm add --save-dev eslint eslint-define-config

Usage

.eslintrc.js

// @ts-check
const { defineConfig } = require('eslint-define-config');

module.exports = defineConfig({
  root: true,
  rules: {
    // rules...
  },
});

Why?

Improve your eslint configuration experience with:

  • auto-suggestions
  • type checking (Use // @ts-check at the first line in your .eslintrc.js)
  • documentation
  • deprecation warnings

Image

Video

Click on the thumbnail to play the video

Video

Credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].