haveno-ui/packages/renderer/.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

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