haveno-ui/packages/renderer/.eslintrc.json

48 lines
1.2 KiB
JSON
Raw Normal View History

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