Skip to content

Commit

Permalink
fix: module type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ASafaeirad committed Oct 17, 2024
1 parent 92d4ec7 commit 5858b36
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 107 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { compose } from './utils/compose.js';

const testPackages = ['jest', 'vitest', 'cypress', 'playwright'];

/** @type {import('./option.js').Options} */
/** @type {import('./option.d.ts').Options} */
const defaultOptions = {
cypress: isPackageExists('cypress'),
disableExpensiveRules: false,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import globals from 'globals';
import { strict } from '../utils/conditions.js';

/**
* @param {{strict?: boolean}} options
* @param { import('../option.d.ts').Options } options
* @return { import('eslint').Linter.Config }
*/
function base(options = {}) {
Expand Down
14 changes: 0 additions & 14 deletions src/modules/esm.js

This file was deleted.

85 changes: 0 additions & 85 deletions src/modules/graphql.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/modules/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const jsExtensions = ['.mjs', '.js', '.jsx', '.cjs'];
const allExtensions = [...jsExtensions, ...tsExtensions];

/**
* @param { import('../option').Options } options
* @param { import('../option.d.ts').Options } options
* @return { import('eslint').Linter.Config }
*/
function imports(options = {}) {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import plugin from 'eslint-plugin-jest';
import { globs } from '../utils/globs.js';

/**
* @param { import('../option').Options } options
* @param { import('../option.d.ts').Options } options
* @return { import('eslint').Linter.Config } */
function jest() {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import plugin from 'eslint-plugin-n';
import { strict } from '../utils/conditions.js';

/**
* @param { import('../option').Options } options
* @param { import('../option.d.ts').Options } options
* @return { import('eslint').Linter.Config }
*/
function node(options = {}) {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/prettier.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import plugin from 'eslint-plugin-prettier';

/** @return { Promise<import('eslint').Linter.Config> } */
/** @return { import('eslint').Linter.Config } */
function prettier() {
return {
plugins: { prettier: plugin },
Expand Down
2 changes: 1 addition & 1 deletion src/modules/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { predicate } from '../utils/conditions.js';
import { globs } from '../utils/globs.js';

/**
* @param { import('../option').Options } options
* @param { import('../option.d.ts').Options } options
* @return { import('eslint').Linter.Config }
*/
function tests(options = {}) {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { globs } from '../utils/globs.js';
import { namingConvention } from '../utils/naming-convention.js';

/**
* @param { import('../option').Options } options
* @param { import('../option.d.ts').Options } options
* @return { import('eslint').Linter.Config }
*/
function typescript(options = {}) {
Expand Down
File renamed without changes.

0 comments on commit 5858b36

Please sign in to comment.