diff --git a/js.js b/js.js index 26d162d..c2de750 100644 --- a/js.js +++ b/js.js @@ -30,11 +30,14 @@ module.exports = { 'no-implicit-coercion': 'error', 'no-loop-func': 'error', 'no-nested-ternary': 'warn', + 'no-return-await': 'off', 'no-script-url': 'error', 'no-warning-comments': 'warn', 'max-nested-callbacks': ['error', 4], 'max-depth': ['error', 4], + 'max-len': ['error', 120], 'require-yield': 'error', + 'yield-star-spacing': ['error', 'after'], // plugins 'no-only-tests/no-only-tests': 'error', 'jsdoc/check-alignment': 'error', diff --git a/ts.js b/ts.js index 9f1c118..ed21689 100644 --- a/ts.js +++ b/ts.js @@ -16,11 +16,12 @@ module.exports = { rules: { 'no-use-before-define': 'off', // Types often are recursive & no use before define is too restrictive 'etc/prefer-interface': 'error', // https://ncjamieson.com/prefer-interfaces/ - '@typescript-eslint/prefer-function-type': 'off', // conflicts with 'etc/prefer-interface' + '@typescript-eslint/await-thenable': 'error', // disallows awaiting a value that is not a "Thenable" '@typescript-eslint/explicit-function-return-type': 'error', // functions require return types '@typescript-eslint/no-this-alias': 'off', // allow 'const self = this' - '@typescript-eslint/await-thenable': 'error', // disallows awaiting a value that is not a "Thenable" + '@typescript-eslint/prefer-function-type': 'off', // conflicts with 'etc/prefer-interface' '@typescript-eslint/restrict-template-expressions': 'off', // allow values with `any` type in template literals + '@typescript-eslint/return-await': 'error', // disallows unnecessary return await 'jsdoc/require-param': 'off', // do not require jsdoc for params 'jsdoc/require-param-type': 'off' // allow compiler to derive param type }