-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use the typescript variant for the local linting rule
referring to https://github.com/cletusw/eslint-plugin-local-rules?tab=readme-ov-file#usage-typescript - move configuration to separate subdirectory - move rule file to separate subdirectory
- Loading branch information
Showing
3 changed files
with
17,019 additions
and
19,959 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import tsNode from 'ts-node' | ||
|
||
let defaultExport | ||
|
||
const loadRules = async () => { | ||
tsNode.register({ | ||
transpileOnly: true, | ||
compilerOptions: { | ||
module: 'commonjs', | ||
}, | ||
}) | ||
|
||
const rulesModule = await import('./rules') | ||
defaultExport = rulesModule.default | ||
} | ||
|
||
loadRules() | ||
export default defaultExport |
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.