mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
35 lines
798 B
JavaScript
35 lines
798 B
JavaScript
|
module.exports = {
|
||
|
"env": {
|
||
|
"es6": true,
|
||
|
"node": true
|
||
|
},
|
||
|
"parser": "@typescript-eslint/parser",
|
||
|
"parserOptions": {
|
||
|
"project": "tsconfig.json",
|
||
|
"sourceType": "module"
|
||
|
},
|
||
|
"plugins": [
|
||
|
"@typescript-eslint"
|
||
|
],
|
||
|
"rules": {
|
||
|
"@typescript-eslint/member-delimiter-style": [
|
||
|
"error",
|
||
|
{
|
||
|
"multiline": {
|
||
|
"delimiter": "semi",
|
||
|
"requireLast": true
|
||
|
},
|
||
|
"singleline": {
|
||
|
"delimiter": "semi",
|
||
|
"requireLast": false
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"@typescript-eslint/semi": [
|
||
|
"error",
|
||
|
"always"
|
||
|
],
|
||
|
"prefer-const": "error"
|
||
|
}
|
||
|
};
|