Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

25 changes: 0 additions & 25 deletions .eslintrc.cjs

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
node_modules
oclif.manifest.json
*.tgz
tsconfig.tsbuildinfo
/test/fixtures/**/dist
15 changes: 0 additions & 15 deletions .mocharc.json

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A command-line interface (CLI) to help develop [swup](https://swup.js.org/) site

- Validate your website in CI/CD
- Create plugins and themes from a best-practice template
- Bundle plugins and themes using microbundle
- Bundle plugins and themes using tsdown

![terminal screenshot](https://github.com/swup/cli/assets/869813/0d59b849-0801-4043-a325-801ed2d2982d)

Expand Down Expand Up @@ -125,7 +125,7 @@ FLAGS
DESCRIPTION
Build package

Build package code for distribution using microbundle
Build package code for distribution using tsdown

EXAMPLES
$ swup package:build
Expand Down Expand Up @@ -171,7 +171,7 @@ FLAGS
DESCRIPTION
Develop package

Build package code for development using microbundle and watch for changes
Build package code for development using tsdown and watch for changes

EXAMPLES
$ swup package:dev
Expand Down
33 changes: 33 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { defineConfig } from 'eslint/config';
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import prettierRecommended from 'eslint-plugin-prettier/recommended';

export default defineConfig(
{
ignores: ['dist/', 'node_modules/', 'test/', 'bin/', '**/*.cjs', '**/*.js']
},
eslint.configs.recommended,
tseslint.configs.recommended,
prettierRecommended,
{
files: ['src/**/*.ts'],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname
}
},
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ vars: 'all', args: 'none', caughtErrors: 'none' }
],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],
// This CLI deliberately formats caught errors into human-readable messages.
'preserve-caught-error': 'off'
}
}
);
Loading