@microfox/cli
Version:
Universal CLI tool for creating modern TypeScript packages with npm availability checking
49 lines (47 loc) • 1.12 kB
Plain Text
import js from '@eslint/js';
import tseslint from '@typescript-eslint/eslint-plugin';
import tsparser from '@typescript-eslint/parser';
export default [
js.configs.recommended,
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parser: tsparser,
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
globals: {
console: 'readonly',
process: 'readonly',
},
},
plugins: {
'@typescript-eslint': tseslint,
},
rules: {
...tseslint.configs.recommended.rules,
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['warn'],
'no-console': 'warn',
'react/prop-types': 'off',
'no-case-declarations': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-function': 'off',
},
},
{
ignores: [
'dist/**',
'node_modules/**',
'.turbo/**',
'coverage/**',
'**/*.js',
'**/*.test.ts',
],
},
];