Skip to content

Commit 6da2e5b

Browse files
authored
test: add tests for eslint-plugin-import-x (#37)
* test: add test for `eslint-plugin-import-x` * test: add test for `extensions` and `first` * fix: set test cases' default options * test: add test for `default` * fix: move fixtures' tsconfig to own dir * test: add test for `export` * test: add test for `namespace` * test: add test for `named` * test: add test for `no-default-export` * test: add test for `no-deprecated` * test: add test for `no-internal-modules` * test: add test for `prefer-default-export` * test: add test for `order` * fix: ensure resolver reinitializes when options change * test: add test for `no-rename-default` * test: add test for `no-named-as-default` * fix: resolver's options for test * fix: ensure resolver reinitializes when options change * feat: bump `oxc-resolver` to 2.1.1 * ci: add type check * test: add test for `no-restricted-paths` * ci: fix type check * test: add test for `no-unresolved` * test: add test for `no-duplicates` * test: add test for `no-extraneous-dependencies` * test: add test for `no-cycle` * fix: use local file to test * chore: update lockfile * ci: try fix * ci: try fix * test: update cases related to `no-cycle`
1 parent 814139c commit 6da2e5b

File tree

89 files changed

+2941
-443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2941
-443
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ pnpm-debug.log*
1919
*.njsproj
2020
*.sln
2121
*.sw?
22+
23+
!tests/**/node_modules/

eslint.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
import { defineConfig } from '@vida0905/eslint-config'
33

44
export default defineConfig({
5-
settings: {
6-
'import-x/resolver': 'oxc',
7-
},
5+
ignores: ['**/fixtures/**'],
86
})

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"@vida0905/eslint-config": "^1.1.0",
6565
"bumpp": "^9.8.1",
6666
"eslint": "^9.15.0",
67+
"eslint-vitest-rule-tester": "^0.6.1",
6768
"lint-staged": "^15.2.10",
6869
"simple-git-hooks": "^2.11.1",
6970
"tsup": "^8.3.5",

0 commit comments

Comments
 (0)