Initial commit
This commit is contained in:
commit
56fb2646df
31 files changed
+3961
No files matched your search
@@ -0,0 +1,35 @@
|
||||
import pluginJs from '@eslint/js';
|
||||
import globals from 'globals';
|
||||
import tseslint from 'typescript-eslint';
|
||||
|
||||
/** @type {import('eslint').Linter.Config[]} */
|
||||
export default [
|
||||
{ files: ['**/*.{js,mjs,cjs,ts}'] },
|
||||
{ languageOptions: { globals: globals.node } },
|
||||
pluginJs.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
{
|
||||
ignores: [
|
||||
'**/node_modules/**',
|
||||
'**/build/**',
|
||||
'scripts/**',
|
||||
'.yarn/**',
|
||||
'**/*.json',
|
||||
'**/*.md',
|
||||
],
|
||||
},
|
||||
{
|
||||
rules: {
|
||||
// Disallow console.log but allow console.error, console.warn, and console.info
|
||||
'no-console': ['error', { allow: ['error', 'warn', 'info'] }],
|
||||
|
||||
// TypeScript specific rules
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'error',
|
||||
{ argsIgnorePattern: '^_' },
|
||||
],
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||
},
|
||||
},
|
||||
];
|
||||
Reference in new issue
Block a user