X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=.eslintrc.js;h=6dcbf08c555060355cb041c17d01eb5f1e60a85e;hb=dcb582f3a195c6c7040b92c1852d7c38752209a8;hp=7448b400d0814fad77f4338920cccba9799afce0;hpb=c3eb346ba7a74c06cb386de7bdb1043362913db8;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index 7448b400..6dcbf08c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -4,12 +4,12 @@ const { defineConfig } = require('eslint-define-config') module.exports = defineConfig({ root: true, env: { - es2021: true, + es2022: true, node: true, mocha: true }, parserOptions: { - ecmaVersion: 2021, + ecmaVersion: 2022, sourceType: 'module' }, plugins: ['promise', 'spellcheck'], @@ -19,8 +19,6 @@ module.exports = defineConfig({ 'plugin:promise/recommended' ], rules: { - 'no-void': 'off', - 'sort-imports': [ 'warn', { @@ -83,20 +81,14 @@ module.exports = defineConfig({ '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': 'error' } }, @@ -112,7 +104,7 @@ module.exports = defineConfig({ { files: ['**/*.js'], plugins: ['jsdoc'], - extends: ['plugin:n/recommended', 'standard', 'plugin:jsdoc/recommended'] + extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard'] }, { files: ['tests/**/*.js'],