mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 10:29:35 +03:00
34 lines
785 B
JavaScript
34 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"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|