refactor: Linting in andere workspaces
This commit is contained in:
parent
65ebf1a083
commit
103af06cc9
2 changed files with 4 additions and 7 deletions
|
@ -55,4 +55,4 @@ const doc = {
|
||||||
const outputFile = './swagger.json';
|
const outputFile = './swagger.json';
|
||||||
const routes = ['../../backend/src/app.ts'];
|
const routes = ['../../backend/src/app.ts'];
|
||||||
|
|
||||||
swaggerAutogen({ openapi: '3.1.0' })(outputFile, routes, doc);
|
await swaggerAutogen({ openapi: '3.1.0' })(outputFile, routes, doc);
|
||||||
|
|
|
@ -6,9 +6,9 @@ import { includeIgnoreFile } from '@eslint/compat';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
const filename = fileURLToPath(import.meta.url);
|
||||||
const __dirname = path.dirname(__filename);
|
const dirname = path.dirname(filename);
|
||||||
const gitignorePath = path.resolve(__dirname, '.gitignore');
|
const gitignorePath = path.resolve(dirname, '.gitignore');
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
pluginJs.configs.recommended,
|
pluginJs.configs.recommended,
|
||||||
|
@ -194,14 +194,11 @@ export default [
|
||||||
'no-console': 'warn',
|
'no-console': 'warn',
|
||||||
'no-continue': 'warn',
|
'no-continue': 'warn',
|
||||||
'no-else-return': 'warn',
|
'no-else-return': 'warn',
|
||||||
'no-empty-function': 'warn',
|
|
||||||
'no-eq-null': 'error',
|
'no-eq-null': 'error',
|
||||||
'no-eval': 'error',
|
'no-eval': 'error',
|
||||||
'no-extend-native': 'error',
|
'no-extend-native': 'error',
|
||||||
'no-extra-label': 'error',
|
'no-extra-label': 'error',
|
||||||
'no-implicit-coercion': 'warn',
|
'no-implicit-coercion': 'warn',
|
||||||
'no-implied-eval': 'error',
|
|
||||||
'no-invalid-this': 'error',
|
|
||||||
'no-iterator': 'error',
|
'no-iterator': 'error',
|
||||||
'no-label-var': 'warn',
|
'no-label-var': 'warn',
|
||||||
'no-labels': 'warn',
|
'no-labels': 'warn',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue