Fix eslint config
This commit is contained in:
parent
2a11f162b3
commit
3b6244461e
|
@ -0,0 +1,3 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
};
|
|
@ -1,20 +1,23 @@
|
|||
module.exports = {
|
||||
parser: '@typescript-eslint/parser',
|
||||
|
||||
parserOptions: {
|
||||
project: 'tsconfig.json',
|
||||
project: './tsconfig.json',
|
||||
tsconfigRootDir: __dirname,
|
||||
sourceType: 'module',
|
||||
},
|
||||
plugins: ['@typescript-eslint/eslint-plugin'],
|
||||
plugins: ['@typescript-eslint/eslint-plugin', 'require-extensions'],
|
||||
extends: [
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'plugin:prettier/recommended',
|
||||
'plugin:require-extensions/recommended',
|
||||
],
|
||||
root: true,
|
||||
root: false,
|
||||
env: {
|
||||
node: true,
|
||||
jest: true,
|
||||
},
|
||||
ignorePatterns: ['.eslintrc.js'],
|
||||
ignorePatterns: ['.eslintrc.cjs'],
|
||||
rules: {
|
||||
'@typescript-eslint/interface-name-prefix': 'off',
|
||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
@ -11,6 +11,7 @@
|
|||
"prebuild": "rimraf dist",
|
||||
"build": "nest build",
|
||||
"start": "nest start --exec \"node --es-module-specifier-resolution=node\"",
|
||||
"start:devnew": "yarn clean && nest start --watch",
|
||||
"start:dev": "yarn clean && nest start --watch --exec \"node --es-module-specifier-resolution=node\"",
|
||||
"start:debug": "nest start --debug --watch --exec \"node --es-module-specifier-resolution=node\"",
|
||||
"start:prod": "node --es-module-specifier-resolution=node dist/main",
|
||||
|
@ -39,6 +40,7 @@
|
|||
"bcrypt": "^5.1.0",
|
||||
"bmp-img": "^1.2.1",
|
||||
"cors": "^2.8.5",
|
||||
"eslint-plugin-require-extensions": "^0.1.3",
|
||||
"file-type": "^18.5.0",
|
||||
"is-docker": "^3.0.0",
|
||||
"ms": "^2.1.3",
|
||||
|
|
|
@ -3,8 +3,9 @@
|
|||
"include": ["src/**/*.ts", "src/**/*.d.ts"],
|
||||
"exclude": ["node_modules", "dist", "test", "**/*spec.ts"],
|
||||
"compilerOptions": {
|
||||
"target": "es2020",
|
||||
"module": "es2020",
|
||||
"lib": ["es2022"],
|
||||
"module": "ES2022",
|
||||
"target": "es2022",
|
||||
|
||||
"outDir": "./dist",
|
||||
"declaration": true,
|
||||
|
|
|
@ -33,5 +33,8 @@
|
|||
"prettier": "^2.8.8",
|
||||
"prettier-plugin-sh": "^0.12.8"
|
||||
},
|
||||
"packageManager": "yarn@3.2.2"
|
||||
"packageManager": "yarn@3.2.2",
|
||||
"dependencies": {
|
||||
"eslint": "^8.42.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"extends": "../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"target": "es2020",
|
||||
"module": "es2020",
|
||||
"lib": ["es2020"],
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"lib": ["ES2022"],
|
||||
|
||||
"outDir": "./dist",
|
||||
"declaration": true,
|
||||
|
|
11
yarn.lock
11
yarn.lock
|
@ -7545,6 +7545,15 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint-plugin-require-extensions@npm:^0.1.3":
|
||||
version: 0.1.3
|
||||
resolution: "eslint-plugin-require-extensions@npm:0.1.3"
|
||||
peerDependencies:
|
||||
eslint: "*"
|
||||
checksum: 698c2e92b0309b8646f734f9c4b95d6cd9ff06a408187fe9ef79b3415c4a444b7e818a1cbb8ae820795961d9de54d2af42c77cb298450518c206f89513305932
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint-scope@npm:5.1.1, eslint-scope@npm:^5.1.1":
|
||||
version: 5.1.1
|
||||
resolution: "eslint-scope@npm:5.1.1"
|
||||
|
@ -11138,6 +11147,7 @@ __metadata:
|
|||
eslint: ^8.42.0
|
||||
eslint-config-prettier: ^8.8.0
|
||||
eslint-plugin-prettier: ^4.2.1
|
||||
eslint-plugin-require-extensions: ^0.1.3
|
||||
file-type: ^18.5.0
|
||||
is-docker: ^3.0.0
|
||||
ms: ^2.1.3
|
||||
|
@ -12064,6 +12074,7 @@ __metadata:
|
|||
version: 0.0.0-use.local
|
||||
resolution: "root-workspace-0b6124@workspace:."
|
||||
dependencies:
|
||||
eslint: ^8.42.0
|
||||
prettier: ^2.8.8
|
||||
prettier-plugin-sh: ^0.12.8
|
||||
languageName: unknown
|
||||
|
|
Loading…
Reference in New Issue