@ni/eslint-config-typescript
Version:
NI's TypeScript ESLint Shareable Config
24 lines (19 loc) • 659 B
JavaScript
module.exports = {
rules: {
// Defined by Airbnb
'dot-notation': 'off',
'@typescript-eslint/dot-notation': ['error', { allowKeywords: true }],
// Defined by Airbnb
'no-implied-eval': 'off',
'@typescript-eslint/no-implied-eval': 'error',
// Defined by Airbnb
'no-throw-literal': 'off',
'@typescript-eslint/no-throw-literal': 'error',
// Defined by NI
'require-await': 'off',
'@typescript-eslint/require-await': 'error',
// Defined by Airbnb
'no-return-await': 'off',
'@typescript-eslint/return-await': ['error', 'always'],
}
};