1.0.0 • Published 2 years ago

@danielwerg/eslint-config v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

eslint-config

āš™ļø Shared ESLint config

tsconfig • Prettier Config

šŸ’¾ Install

yarn add -D @danielwerg/eslint-config

javascript:

yarn add -D eslint prettier eslint-plugin-import

typescript:

yarn add -D eslint typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin prettier eslint-plugin-import

VSCode Prettier ESLint extension

GitHub • Marketplace • VSCode • VSCodium

šŸ‘€ Usage

.eslintrc.js

/** @type {import('eslint').Linter.Config} */
module.exports = defineConfig({ extends: ['./typescript'], root: true });

TypeScript Aware Rules

Type aware rules are enabled when a tsconfig.eslint.json is found in the project root, which will introduce some stricter rules into your project. If you want to enable it while have no tsconfig.eslint.json in the project root, you can change tsconfig name by modifying ESLINT_TSCONFIG env.

.eslintrc.js

+ process.env['ESLINT_TSCONFIG'] = 'tsconfig.json';
1.0.0

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago