Skip to content

Commit

Permalink
chore: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinhuish committed Dec 21, 2024
1 parent 336a95a commit e5e724e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
6 changes: 1 addition & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
{
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,

// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
"source.fixAll.eslint": "explicit"
},

// Silent the stylistic rules in you IDE, but still auto fix them
Expand Down
8 changes: 0 additions & 8 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ export default antfu(
singleline: { delimiter: 'semi', requireLast: false },
multilineDetection: 'brackets',
}],
'import/order': [
'warn',
{
groups: ['type', 'builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object'],
alphabetize: { order: 'asc', caseInsensitive: true },
warnOnUnassignedImports: false,
},
],
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/pages-json/src/vite/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { UserConfig } from '../config';
import type { Plugin } from 'vite';
import type { UserConfig } from '../config';
import { spawn } from 'node:child_process';
import process from 'node:process';
import chokidar from 'chokidar';
Expand Down

0 comments on commit e5e724e

Please sign in to comment.