X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=.eslintrc.js;h=c4f0c6d26777bb3cf6710aac51448dce92372577;hb=396360a789e4806699533ddf899c79dc2b7ae868;hp=bdf03e9c964623a1e09cf94426d11fa31575841f;hpb=3aa14de15a7d73872c345e0bfe961157980d0f27;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index bdf03e9c..c4f0c6d2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,15 +1,14 @@ -// @ts-check 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'], @@ -31,6 +30,7 @@ module.exports = defineConfig({ 'warn', { skipWords: [ + 'Benoit', 'benny', 'browserslist', 'builtins', @@ -40,19 +40,27 @@ module.exports = defineConfig({ 'cpu', 'cpus', 'ctx', + 'deprecations', + 'dequeue', 'ecma', + 'enqueue', 'enum', + 'errored', + 'esm', 'fibonacci', 'fs', 'inheritDoc', 'jsdoc', 'microjob', + 'mjs', 'num', 'os', 'piscina', + 'pnpm', 'poolifier', 'poolify', 'readonly', + 'resize', 'serializable', 'sinon', 'threadjs', @@ -63,7 +71,8 @@ module.exports = defineConfig({ 'unlink', 'unregister', 'utf8', - 'workerpool' + 'workerpool', + 'wwr' ], skipIfMatch: ['^@.*', '^plugin:.*'] } @@ -75,7 +84,7 @@ module.exports = defineConfig({ plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'], parser: '@typescript-eslint/parser', parserOptions: { - project: './tsconfig.json' + project: './tsconfig.eslint.json' }, extends: [ 'plugin:@typescript-eslint/eslint-recommended', @@ -89,7 +98,7 @@ module.exports = defineConfig({ 'error', { ignoreProperties: true } ], - 'tsdoc/syntax': 'error' + 'tsdoc/syntax': 'warn' } }, { @@ -102,7 +111,7 @@ module.exports = defineConfig({ } }, { - files: ['**/*.js'], + files: ['**/*.js', '**/*.mjs'], plugins: ['jsdoc'], extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard'] },