Skip to content

Commit

Permalink
feat: use builtin config from stylistic
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Nov 17, 2023
1 parent c3da352 commit a6f6ab9
Show file tree
Hide file tree
Showing 5 changed files with 417 additions and 227 deletions.
10 changes: 0 additions & 10 deletions eslint.config.js
@@ -1,5 +1,4 @@
// @ts-check
import styleMigrate from '@stylistic/eslint-plugin-migrate'
import antfu from './dist/index.js'

export default antfu(
Expand All @@ -17,13 +16,4 @@ export default antfu(
'perfectionist/sort-objects': 'error',
},
},
{
files: ['src/configs/*.ts'],
plugins: {
'style-migrate': styleMigrate,
},
rules: {
'style-migrate/migrate': ['error', { namespaceTo: 'style' }],
},
},
)
9 changes: 4 additions & 5 deletions package.json
Expand Up @@ -43,7 +43,7 @@
"@eslint-types/jsdoc": "46.8.2-1",
"@eslint-types/typescript-eslint": "^6.9.1",
"@eslint-types/unicorn": "^49.0.0",
"@stylistic/eslint-plugin": "^1.2.0",
"@stylistic/eslint-plugin": "^1.3.1",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"eslint-config-flat-gitignore": "^0.1.1",
Expand All @@ -55,7 +55,7 @@
"eslint-plugin-markdown": "^3.0.1",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-perfectionist": "^2.3.0",
"eslint-plugin-perfectionist": "^2.4.0",
"eslint-plugin-unicorn": "^49.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"eslint-plugin-vitest": "^0.3.9",
Expand All @@ -75,10 +75,9 @@
"devDependencies": {
"@antfu/eslint-config": "workspace:*",
"@antfu/ni": "^0.21.9",
"@stylistic/eslint-plugin-migrate": "^1.2.0",
"@types/eslint": "^8.44.7",
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.9.0",
"@types/node": "^20.9.1",
"@types/prompts": "^2.4.8",
"@types/yargs": "^17.0.31",
"bumpp": "^9.2.0",
Expand All @@ -90,7 +89,7 @@
"lint-staged": "^15.1.0",
"rimraf": "^5.0.5",
"simple-git-hooks": "^2.9.0",
"tsup": "^7.2.0",
"tsup": "^7.3.0",
"typescript": "^5.2.2",
"vitest": "^0.34.6"
},
Expand Down

0 comments on commit a6f6ab9

Please sign in to comment.