mirror of
https://github.com/haveno-dex/haveno-ui.git
synced 2024-10-01 07:35:39 -04:00
07a984bb52
--- Co-authored-by: @schowdhuri Reviewed-by: @schowdhuri
46 lines
1.1 KiB
JSON
46 lines
1.1 KiB
JSON
{
|
|
"root": true,
|
|
"env": {
|
|
"es2021": true,
|
|
"node": true,
|
|
"browser": false
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:prettier/recommended",
|
|
"plugin:import/recommended",
|
|
"plugin:import/typescript"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": 12,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": ["@typescript-eslint", "import"],
|
|
"ignorePatterns": ["node_modules/**", "**/dist/**"],
|
|
"rules": {
|
|
"@typescript-eslint/no-unused-vars": "error",
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"import/no-named-as-default": "off",
|
|
"prettier/prettier": "error",
|
|
"import/newline-after-import": ["error", { "count": 1 }],
|
|
"import/order": "error"
|
|
},
|
|
"settings": {
|
|
"import/resolver": {
|
|
"node": {
|
|
"extensions": [".js", ".jsx", ".ts", ".tsx"]
|
|
},
|
|
"typescript": {
|
|
"project": [
|
|
"packages/main/tsconfig.json",
|
|
"packages/preload/tsconfig.json"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|