X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=.eslintrc.js;h=c4f0c6d26777bb3cf6710aac51448dce92372577;hb=396360a789e4806699533ddf899c79dc2b7ae868;hp=2e396436b0d6d4c95af5a4764cb024fe2d1016ef;hpb=fe18768dfcb34de4cce12a7dfd1abd2b92e8d8ce;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index 2e396436..c4f0c6d2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,4 +1,3 @@ -// @ts-check const { defineConfig } = require('eslint-define-config') module.exports = defineConfig({ @@ -31,6 +30,7 @@ module.exports = defineConfig({ 'warn', { skipWords: [ + 'Benoit', 'benny', 'browserslist', 'builtins', @@ -40,8 +40,12 @@ module.exports = defineConfig({ 'cpu', 'cpus', 'ctx', + 'deprecations', + 'dequeue', 'ecma', + 'enqueue', 'enum', + 'errored', 'esm', 'fibonacci', 'fs', @@ -52,9 +56,11 @@ module.exports = defineConfig({ 'num', 'os', 'piscina', + 'pnpm', 'poolifier', 'poolify', 'readonly', + 'resize', 'serializable', 'sinon', 'threadjs', @@ -65,7 +71,8 @@ module.exports = defineConfig({ 'unlink', 'unregister', 'utf8', - 'workerpool' + 'workerpool', + 'wwr' ], skipIfMatch: ['^@.*', '^plugin:.*'] } @@ -77,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', @@ -91,7 +98,7 @@ module.exports = defineConfig({ 'error', { ignoreProperties: true } ], - 'tsdoc/syntax': 'error' + 'tsdoc/syntax': 'warn' } }, { @@ -104,7 +111,7 @@ module.exports = defineConfig({ } }, { - files: ['**/*.js'], + files: ['**/*.js', '**/*.mjs'], plugins: ['jsdoc'], extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard'] },