eslint-config-clarity

Collection of ESLint configs to ensure code consistency and clarity!
4,032 7
Install
npm install eslint-config-clarity
Latest Version:1.0.6
License:MIT
Last Updated:Jul 27, 2023
Links: GitHub  ·  npm
Maintainer: ovyerus

eslint-config-clarity

Collection of ESLint configs to ensure code consistency and clarity!

Installation

Simply install the eslint-config-clarity package through your package manager, alongside ESLint and Prettier. No need to mess around with peer dependencies or anything.

$ yarn add -D eslint-config-clarity eslint prettier
# or
$ npm i --save-dev eslint-config-clarity eslint prettier

If you have a TypeScript project and plan on using a TypeScript config, make sure that's installed. You will also need to install eslint-import-resolver-typescript yourself, for path resolution to work.

After installing the config and required packages, simply add "extends": "clarity" to your .eslintrc, or specify the name of one of the presets depending on the project.

Integrations

It is recommended to copy the .vscode (if using VSCode), .editorconfig, and .prettierrc to your project's directory, and also install the extensions recommended in .vscode/extensions.json.

The VSCode settings will enable ESLint for JavaScript and TypeScript files, and sets Prettier as the default formatter for several filetypes, as well as enabling auto-fix and auto-formatting on save.

If you're not using VSCode as your code editor, it is recommended that you find equivalent plugins and settings for your editor of choice.

Presets

Base Presets

Presets ending with -base are used to reduce duplication, and contain just the rules that strictly pertain to their name (e.g. TypeScript rules in typescript-base, Vue rules in vue-base) which then get extended in the full configs in various combinations depending on what's needed.

License

This repository is licensed under the MIT License.

Related Packages

@dsb-norge/eslint-config-dsb-vue3-ts

ESLint standard config for Vue.js version 3 projects with Typescript support

3,371 0
@ocavue/eslint-config

Opinionated ESLint config preset

103,814 3
@deviltea/eslint-config

DevilTea's opinionated ESLint flat config for JavaScript, TypeScript, and Vue.

21,263 0
@batuhan-bas/configs

Shared ESLint (flat config) and Prettier configs for TypeScript, React, Vue and...

592 2

Version History

Version Released License
1.0.6 MIT
1.0.5 MIT
1.0.4 MIT
1.0.3 MIT
1.0.2 MIT
Pre-releases (10)
Version Released License
1.0.0-rc.5 MIT
1.0.0-rc.4.2 MIT
1.0.0-rc.4 MIT
1.0.0-rc.3 MIT
1.0.0-rc.2 MIT