-
-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
57 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,6 @@ | ||
// @ts-check | ||
import styleMigrate from '@stylistic/eslint-plugin-migrate' | ||
import JITI from 'jiti' | ||
import { bundleRequire } from 'bundle-require' | ||
|
||
const jiti = JITI(import.meta.url) | ||
/** | ||
* @type {import('./src').default} | ||
*/ | ||
const antfu = jiti('./src').default | ||
|
||
export default antfu( | ||
{ | ||
vue: true, | ||
react: true, | ||
solid: true, | ||
svelte: true, | ||
astro: true, | ||
typescript: true, | ||
formatters: true, | ||
}, | ||
{ | ||
ignores: [ | ||
'fixtures', | ||
'_fixtures', | ||
], | ||
}, | ||
{ | ||
files: ['src/**/*.ts'], | ||
rules: { | ||
'perfectionist/sort-objects': 'error', | ||
}, | ||
}, | ||
{ | ||
files: ['src/configs/*.ts'], | ||
plugins: { | ||
'style-migrate': styleMigrate, | ||
}, | ||
rules: { | ||
'style-migrate/migrate': ['error', { namespaceTo: 'style' }], | ||
}, | ||
}, | ||
) | ||
export default bundleRequire({ | ||
filepath: './eslint.config.ts', | ||
}).then(r => r.mod.default) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// @ts-expect-error missing types | ||
import styleMigrate from '@stylistic/eslint-plugin-migrate' | ||
import { antfu } from './src' | ||
|
||
export default antfu( | ||
{ | ||
vue: true, | ||
react: true, | ||
solid: true, | ||
svelte: true, | ||
astro: true, | ||
typescript: true, | ||
formatters: true, | ||
}, | ||
{ | ||
ignores: [ | ||
'fixtures', | ||
'_fixtures', | ||
], | ||
}, | ||
{ | ||
files: ['src/**/*.ts'], | ||
rules: { | ||
'perfectionist/sort-objects': 'error', | ||
}, | ||
}, | ||
{ | ||
files: ['src/configs/*.ts'], | ||
plugins: { | ||
'style-migrate': styleMigrate, | ||
}, | ||
rules: { | ||
'style-migrate/migrate': ['error', { namespaceTo: 'style' }], | ||
}, | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.