mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-29 10:05:53 +00:00
41 lines
No EOL
1.2 KiB
JavaScript
41 lines
No EOL
1.2 KiB
JavaScript
const eslint = require('@eslint/js');
|
|
const tseslint = require('typescript-eslint');
|
|
const prettierConfig = require('eslint-config-prettier');
|
|
const prettierPlugin = require('eslint-plugin-prettier');
|
|
|
|
module.exports = tseslint.config(
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
prettierConfig,
|
|
{
|
|
ignores: ['dist/**', 'public/**', 'node_modules/**', '*.js', '!eslint.config.js'],
|
|
},
|
|
{
|
|
files: ['src/**/*.ts', 'src/**/*.tsx'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
project: ['./tsconfig.json', './tsconfig.client.json', './tsconfig.sw.json', './tsconfig.test.json'],
|
|
tsconfigRootDir: __dirname,
|
|
},
|
|
},
|
|
plugins: {
|
|
prettier: prettierPlugin,
|
|
},
|
|
rules: {
|
|
'prettier/prettier': 'error',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^_',
|
|
caughtErrorsIgnorePattern: '^_',
|
|
},
|
|
],
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
'@typescript-eslint/no-non-null-assertion': 'warn',
|
|
'@typescript-eslint/no-require-imports': 'off',
|
|
'no-empty': ['error', { allowEmptyCatch: true }],
|
|
},
|
|
}
|
|
); |