UNPKG

1.38 kBJavaScriptView Raw
1/*
2
3gregjoeval ESLint config
4
5ESLint Rule Documentation: https://eslint.org/docs/rules/
6AirBnB Javascript Style Guide: https://github.com/airbnb/javascript
7Tool for comparing configs: https://sqren.github.io/eslint-compare/
8Typescript ESLint: https://github.com/typescript-eslint/typescript-eslint
9
10*/
11
12module.exports = {
13 "parser": "@typescript-eslint/parser",
14 // extended configs should be ordered by least to greatest importance
15 "extends": [
16 "plugin:import/typescript",
17 "plugin:@typescript-eslint/eslint-recommended",
18 "plugin:@typescript-eslint/recommended",
19 "plugin:@typescript-eslint/recommended-requiring-type-checking",
20 "@gjv/eslint-config"
21 ],
22 "rules": {
23 // Typescript Plugin (https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin)
24 "@typescript-eslint/explicit-function-return-type": ["error", {
25 "allowExpressions": true,
26 "allowTypedFunctionExpressions": true,
27 "allowHigherOrderFunctions": true
28 }],
29 "@typescript-eslint/no-explicit-any": "off",
30 "@typescript-eslint/interface-name-prefix": ["error", {
31 "prefixWithI": "always",
32 "allowUnderscorePrefix": false
33 }],
34 "@typescript-eslint/promise-function-async": "error"
35 }
36};