Skip to content

Commit e88a979

Browse files
committed
feat: added linting
1 parent e7daecd commit e88a979

File tree

4 files changed

+2099
-97
lines changed

4 files changed

+2099
-97
lines changed

.eslintignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.eslintrc.js
2+
3+
# Ignore build output
4+
**/out/**
5+
**/dist/**
6+
**/node_modules/**
7+
**/coverage/**
8+
**/.nyc_output/**
9+
10+
# Ignore generated files
11+
**/generated/**
12+
**/*.d.ts
13+
**/*.test.ts
14+
15+
# Ignore test fixtures
16+
**/test/fixtures/**
17+
18+
# Ignore third-party code
19+
**/vendor/**
20+
21+
# Ignore script directories
22+
**/script/**
23+
**/scripts/**
24+

.eslintrc.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
parserOptions: {
5+
ecmaVersion: 'latest',
6+
sourceType: 'module',
7+
project: [
8+
'./tsconfig.json',
9+
'./types/tsconfig.json',
10+
'./runtimes/tsconfig.json',
11+
'./chat-client-ui-types/tsconfig.json',
12+
],
13+
tsconfigRootDir: __dirname,
14+
},
15+
plugins: ['@typescript-eslint'],
16+
extends: [
17+
'eslint:recommended',
18+
'plugin:@typescript-eslint/eslint-recommended',
19+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
20+
'plugin:@typescript-eslint/recommended',
21+
'plugin:prettier/recommended',
22+
],
23+
rules: {
24+
eqeqeq: 'error',
25+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
26+
'@typescript-eslint/explicit-module-boundary-types': 'off',
27+
'@typescript-eslint/no-explicit-any': 'off',
28+
'@typescript-eslint/no-non-null-assertion': 'error',
29+
'@typescript-eslint/no-unsafe-assignment': 'off',
30+
'@typescript-eslint/no-unsafe-member-access': 'off',
31+
'@typescript-eslint/no-redundant-type-constituents': 'error',
32+
'@typescript-eslint/unbound-method': 'error',
33+
'@typescript-eslint/no-misused-promises': 'warn',
34+
'@typescript-eslint/no-unsafe-return': 'off',
35+
'@typescript-eslint/no-unsafe-call': 'error',
36+
'@typescript-eslint/no-unsafe-argument': 'off',
37+
'@typescript-eslint/restrict-template-expressions': 'error',
38+
'@typescript-eslint/no-duplicate-type-constituents': 'error',
39+
'@typescript-eslint/no-floating-promises': 'error',
40+
'prettier/prettier': 'off',
41+
},
42+
}

0 commit comments

Comments
 (0)