module.exports = defineConfig({
root: true,
env: {
- es2021: true,
+ es2022: true,
node: true,
mocha: true
},
parserOptions: {
- ecmaVersion: 2021,
+ ecmaVersion: 2022,
sourceType: 'module'
},
plugins: ['promise', 'spellcheck'],
'plugin:promise/recommended'
],
rules: {
- 'no-void': 'off',
-
'sort-imports': [
'warn',
{
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
- 'standard-with-typescript',
- 'plugin:import/typescript'
+ 'plugin:import/typescript',
+ 'standard-with-typescript'
],
rules: {
- // We have some intentionally empty functions
- '@typescript-eslint/no-empty-function': 'off',
-
'@typescript-eslint/no-inferrable-types': [
'error',
{ ignoreProperties: true }
],
-
- 'no-useless-constructor': 'off',
-
- 'tsdoc/syntax': 'warn'
+ 'tsdoc/syntax': 'error'
}
},
{
{
files: ['**/*.js'],
plugins: ['jsdoc'],
- extends: ['plugin:n/recommended', 'standard', 'plugin:jsdoc/recommended']
+ extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
},
{
files: ['tests/**/*.js'],