mirror of
https://github.com/haveno-dex/haveno-ui.git
synced 2024-12-11 00:54:31 -05:00
07a984bb52
--- Co-authored-by: @schowdhuri Reviewed-by: @schowdhuri
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"node": false
|
|
},
|
|
"extends": [
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:react/jsx-runtime",
|
|
"plugin:prettier/recommended",
|
|
"plugin:import/recommended",
|
|
"plugin:import/typescript"
|
|
],
|
|
"parserOptions": {
|
|
"parser": "@typescript-eslint/parser",
|
|
"ecmaVersion": 12,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": ["@typescript-eslint", "react", "import"],
|
|
"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",
|
|
"react/jsx-curly-brace-presence": "error",
|
|
"import/order": "error",
|
|
"import/newline-after-import": "error"
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
},
|
|
"import/parsers": {
|
|
"@typescript-eslint/parser": [".ts", ".tsx"]
|
|
},
|
|
"import/resolver": {
|
|
"node": {
|
|
"extensions": [".js", ".jsx", ".ts", ".tsx"]
|
|
},
|
|
"typescript": {
|
|
"project": ["packages/renderer/tsconfig.json"]
|
|
}
|
|
}
|
|
}
|
|
}
|