style: 🎨 lint project
This commit is contained in:
1
packages/config/index.d.ts
vendored
1
packages/config/index.d.ts
vendored
@@ -3,7 +3,6 @@ import type { Linter } from 'eslint';
|
||||
|
||||
/**
|
||||
* Helper functions for creating/configuring ESLint.
|
||||
*
|
||||
* @param config - Array or function returning an array of ESLint's configuration objects array to be used.
|
||||
* @param environment - An object with environment variables to be declared and used by the configuration.
|
||||
* @returns The array of ESLint's configuration objects.
|
||||
|
||||
@@ -2,7 +2,6 @@ import type { ESLint } from 'eslint';
|
||||
|
||||
/**
|
||||
* @see {@link https://www.npmjs.org/package/eslint-plugin-jsdoc npm package}
|
||||
*
|
||||
* @summary JSDoc specific linting rules for ESLint.
|
||||
*
|
||||
* ---
|
||||
|
||||
@@ -2,7 +2,6 @@ import type { ESLint, Linter } from 'eslint';
|
||||
|
||||
/**
|
||||
* @see {@link https://www.npmjs.com/package/@typescript-eslint/eslint-plugin npm package}
|
||||
*
|
||||
* @summary An ESLint plugin which provides lint rules for TypeScript codebases.
|
||||
*
|
||||
* ---
|
||||
@@ -33,7 +32,6 @@ declare module '@typescript-eslint/eslint-plugin' {
|
||||
|
||||
/**
|
||||
* @see {@link https://www.npmjs.com/package/@typescript-eslint/parser npm package}
|
||||
*
|
||||
* @summary An ESLint parser which leverages TypeScript ESTree to allow for ESLint
|
||||
* to lint TypeScript source code.
|
||||
*
|
||||
|
||||
@@ -5,7 +5,6 @@ import jsdoc from 'eslint-plugin-jsdoc';
|
||||
/**
|
||||
* **This configuration is necessary to be used before any other one**.
|
||||
* Common configuration for using ESLit rules overrides.
|
||||
*
|
||||
* @type {Readonly<import('eslint').Linter.FlatConfig>}
|
||||
*/
|
||||
const config = {
|
||||
|
||||
@@ -2,7 +2,6 @@ import globals from 'globals';
|
||||
|
||||
/**
|
||||
* Configuration for Node development environment
|
||||
*
|
||||
* @type {import('eslint').Linter.FlatConfig}
|
||||
*/
|
||||
const node = {
|
||||
@@ -16,7 +15,6 @@ const node = {
|
||||
|
||||
/**
|
||||
* Configuration for Deno development environment
|
||||
*
|
||||
* @type {import('eslint').Linter.FlatConfig}
|
||||
*/
|
||||
const deno = {
|
||||
@@ -31,7 +29,6 @@ const deno = {
|
||||
|
||||
/**
|
||||
* Configuration for browser development environment
|
||||
*
|
||||
* @type {import('eslint').Linter.FlatConfig}
|
||||
*/
|
||||
const browser = {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/**
|
||||
* Formatting rules/configuration overrides for Javascript and Typescript
|
||||
*
|
||||
* @type {Readonly<import('eslint').Linter.FlatConfig>}
|
||||
*/
|
||||
const config = {
|
||||
|
||||
@@ -3,7 +3,6 @@ import js from '@eslint/js';
|
||||
|
||||
/**
|
||||
* Recommended configuration overrides of ESLit
|
||||
*
|
||||
* @type {Readonly<import('eslint').Linter.FlatConfig>}
|
||||
*/
|
||||
const config = {
|
||||
|
||||
@@ -2,7 +2,6 @@ import jsdoc from 'eslint-plugin-jsdoc';
|
||||
|
||||
/**
|
||||
* Typescript specific configuration overrides
|
||||
*
|
||||
* @type {Readonly<import('eslint').Linter.FlatConfig>}
|
||||
*/
|
||||
const config = {
|
||||
|
||||
@@ -3,10 +3,8 @@ import { eslintrc } from './eslintrc-compact.js';
|
||||
/**
|
||||
* @param {import('./types').Config} config
|
||||
* Array or function returning an array of ESLint's configuration objects array to be used.
|
||||
*
|
||||
* @param {import('./types').EnvOptions | undefined} environment
|
||||
* An object with environment variables to be declared and used by the configuration.
|
||||
*
|
||||
* @returns {Promise<import('eslint').Linter.FlatConfig[]>}
|
||||
* The array of ESLint's configuration objects.
|
||||
*/
|
||||
|
||||
2
packages/config/src/types.d.ts
vendored
2
packages/config/src/types.d.ts
vendored
@@ -23,7 +23,6 @@ export interface EnvOptions {
|
||||
* ---
|
||||
* **Option: `never`** (default)
|
||||
* Types are always explicit in Typescript
|
||||
*
|
||||
* @example ```ts
|
||||
// Typescript
|
||||
const id: number = 10;
|
||||
@@ -32,7 +31,6 @@ export interface EnvOptions {
|
||||
* ---
|
||||
* **Option: `always`**
|
||||
* Types are always inferred in Typescript
|
||||
*
|
||||
* @example ```ts
|
||||
// Typescript
|
||||
const id = 10;
|
||||
|
||||
Reference in New Issue
Block a user