1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-deno/.eslintrc.json

46 lines
1.3 KiB
JSON
Raw Normal View History

{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"createDefaultProgram": true
},
"plugins": ["@typescript-eslint"],
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
],
"rules": {
2019-09-15 09:16:05 -04:00
"@typescript-eslint/array-type": ["error", { "default": "array-simple" }],
2020-08-24 19:43:54 -04:00
"@typescript-eslint/ban-ts-comment": ["off"],
"@typescript-eslint/explicit-member-accessibility": ["off"],
2020-08-24 19:43:54 -04:00
"@typescript-eslint/explicit-module-boundary-types": ["off"],
"@typescript-eslint/no-non-null-assertion": ["off"],
2019-07-16 00:19:26 -04:00
"@typescript-eslint/no-use-before-define": ["off"],
"@typescript-eslint/no-parameter-properties": ["off"],
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"@typescript-eslint/ban-ts-ignore": ["off"],
"@typescript-eslint/no-empty-function": ["off"],
2020-03-20 09:38:34 -04:00
"no-return-await": "error",
"require-await": "error",
"no-async-promise-executor": "error"
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/explicit-function-return-type": ["off"]
}
},
{
"files": ["tools/node_*.js"],
"rules": {
"@typescript-eslint/no-var-requires": ["off"]
}
}
]
}