Skip to content

Commit

Permalink
[#43] 👽️ Convert custom to flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
yongholeeme committed Dec 20, 2024
1 parent 1f6755d commit 1287cf2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/eslint-config/tests/custom.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
const {importOrder} = require('../custom')
const {checkErrorRule, createLinter} = require('./utils')
import {describe, test, expect} from 'vitest'
import importPlugin from 'eslint-plugin-import'
import {importOrder} from '../custom/index.js'
import {checkErrorRule, createLinter} from './utils/index.js'

describe('custom', () => {
describe('import/order', function () {
const ruleId = 'import/order'
const config = {
plugins: {
import: importPlugin,
},
rules: {
'import/order': importOrder({
ruleSeverities: 'warn',
Expand Down

0 comments on commit 1287cf2

Please sign in to comment.