create-nuxtus
Version:
npx command for generating a new Nuxtus boilerplate website.
30 lines (28 loc) • 738 B
JavaScript
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import jest from 'eslint-plugin-jest';
import eslintConfigPrettier from 'eslint-config-prettier/flat';
export default tseslint.config(
{
ignores: ['build/**', 'coverage/**', '*.js'],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
files: ['**/*.ts', '**/*.mts'],
languageOptions: {
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
},
rules: {
'@typescript-eslint/explicit-function-return-type': 'warn',
},
},
{
files: ['**/*.test.ts', '**/*.spec.ts', '**/__tests__/**/*.ts'],
...jest.configs['flat/recommended'],
},
eslintConfigPrettier,
);