haveno-ui/.eslintrc.json
Ahmed Bouhuolia 07a984bb52
chore(dev): eslint import rules
---

Co-authored-by: @schowdhuri 
Reviewed-by: @schowdhuri
2022-06-04 00:00:55 +05:30

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"
]
}
}
}
}