@nodesuite/eslint-config

0.3.32 • Public • Published

nodesuite

@nodesuite/eslint-config

Summary

An opinionated eslint config based on the @microsoft/rushstack monorepo template.

Installation

Install dependencies

pnpm install @nodesuite/eslint-config @rushstack/eslint-config @typescript-eslint/parser
touch .eslintrc.js

Setup local eslint config

require("@rushstack/eslint-config/patch/modern-module-resolution")

module.exports = {
	extends: [
		"@rushstack/eslint-config/profile/node",
		"@rushstack/eslint-config/mixins/friendly-locals",
		"@nodesuite/eslint-config"
	],
	overrides: [
		// Add any overrides required for project...
	]
}

Structure

  • Configs: Top level configs for zero-config use.
  • Options: Basic top level config options.
  • Rules: Complex rule definitions.
  • Overrides: Custom overrides for different scenarios.

Highlights

  • Uses separate parser for TS and JS files to avoid conflicts.
  • Enforces tsdoc standard.
  • Ignores comments on transient/generated barrel exports.
  • Sorts imports and auto-fixes type prefix for isolatedModules compatibility.
  • Sorts exports.
  • Enforces a naming convention for TypeScript.
  • Auto-fixes function() to () => {} arrow-functions.
  • Enforces a specific number of lines around comments.
  • Uses markdown-eslint-parser for markdown files.
  • Disallows explicit any except in type definition files.
  • Disables "heavy" rules such as no-floating-promises outside of CI.

Package Sidebar

Install

npm i @nodesuite/eslint-config

Weekly Downloads

0

Version

0.3.32

License

ISC

Unpacked Size

8.67 kB

Total Files

21

Last publish

Collaborators

  • insidium