mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 11:11:30 +00:00
33 lines
785 B
JavaScript
33 lines
785 B
JavaScript
module.exports = {
|
|
plugins: ["import"],
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
sourceType: "module"
|
|
},
|
|
"settings": {
|
|
"import/parsers": {
|
|
"@typescript-eslint/parser": [".ts"]
|
|
},
|
|
"import/resolver": {
|
|
"typescript": {
|
|
"alwaysTryTypes": true,
|
|
}
|
|
}
|
|
},
|
|
rules: {
|
|
"import/no-restricted-paths": [
|
|
warn,
|
|
{
|
|
zones: [
|
|
{
|
|
"target": "./src/types/*",
|
|
"from": "./src",
|
|
"except": [
|
|
"./src/types/index.ts"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|