Skip to content

Commit

Permalink
muted n/no-missing-import rule
Browse files Browse the repository at this point in the history
  • Loading branch information
e11sy committed May 15, 2024
1 parent 3b99845 commit eba2679
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 257 deletions.
25 changes: 4 additions & 21 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import CodeX from '../eslint-config/index.js';
import ImportPlugin from 'eslint-import-resolver-alias';
/**
* @todo connect architecture config
*/
Expand All @@ -8,34 +7,18 @@ export default [
{
name: 'notex.api',
rules: {
'n/no-missing-import': ['error',
{
// tsconfigPath: './tsconfig.json',
// resolvePaths: ['./src/infrastructure/*', './src/domain/*', './src/repository/*', './src/repository/storage/*', './node_modules/*'],
}],
'n/no-missing-import': ['off'],
'n/no-unpublished-import': ['error', {
allowModules: ['vitest', 'postgres-migrations', 'eslint-import-resolver-alias'],
ignoreTypeImport: true,
}],
},
plugins: {
ImportPlugin,
},

languageOptions: {
parserOptions: {
tsconfigRootDir: '.',
project: './tsconfig.json', // Автоматически находить tsconfig.json в рабочей директории
},
},

settings: {
'import/extensions': ['.js', '.ts', '.json'],
'import/resolver': {
tsconfig: {
config: 'tsconfig.json',
extensions: ['.js', '.ts', '.json'],
},
project: 'tsconfig.json', // Автоматически находить tsconfig.json в рабочей директории
tsconfigRootDir: './',
sourceType: 'module', // Allows for the use of imports
},
},
},
Expand Down
1 change: 0 additions & 1 deletion src/presentation/api.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export interface RequestParams {
/**
* Request body
*/

body?: string | object | Buffer | NodeJS.ReadableStream;

/**
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"include": [
"src/**/*.ts",
"vitest.config.js",
".eslintrc.cjs",
".eslint.config.mjs",
"fastify.d.ts",
],
"ts-node": {
Expand Down
Loading

0 comments on commit eba2679

Please sign in to comment.