Install dependencies with:
yarn add --dev eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-config-universe prettier eslint-config-prettier eslint-plugin-prettier
{ | |
"parser": "@typescript-eslint/parser", | |
"extends": [ | |
"plugin:@typescript-eslint/recommended", | |
"universe/native", | |
"plugin:prettier/recommended" | |
], | |
"plugins": ["@typescript-eslint"], | |
"settings": { | |
"import/resolver": { | |
"node": { | |
"extensions": [".js", ".jsx", ".ts", ".tsx"] | |
} | |
} | |
}, | |
"rules": { | |
"prettier/prettier": [ | |
"error", | |
{ | |
"singleQuote": true, | |
"trailingComma": "all" | |
} | |
], | |
"quotes": [ | |
"error", | |
"single", | |
{ | |
"avoidEscape": true | |
} | |
], | |
"indent": ["error", 2] | |
} | |
} |