repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update npmpublish.yml
[poolifier.git]
/
.eslintrc.js
diff --git
a/.eslintrc.js
b/.eslintrc.js
index c3c51fe731d28df4f2f5268a849cd84e24849d18..15fcb940ae0e8025076ceebc05196192d900e010 100644
(file)
--- a/
.eslintrc.js
+++ b/
.eslintrc.js
@@
-1,4
+1,7
@@
-module.exports = {
+// @ts-check
+const { defineConfig } = require('eslint-define-config')
+
+module.exports = defineConfig({
env: {
es2021: true,
node: true,
env: {
es2021: true,
node: true,
@@
-7,7
+10,8
@@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
- sourceType: 'module'
+ sourceType: 'module',
+ warnOnUnsupportedTypeScriptVersion: false
},
plugins: [
'@typescript-eslint',
},
plugins: [
'@typescript-eslint',
@@
-24,8
+28,7
@@
module.exports = {
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:promise/recommended',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:promise/recommended',
- 'plugin:prettierx/standardx',
- 'plugin:prettierx/@typescript-eslint'
+ 'plugin:prettierx/standardx'
],
rules: {
'no-void': 'off',
],
rules: {
'no-void': 'off',
@@
-50,12
+53,13
@@
module.exports = {
'warn',
{
skipWords: [
'warn',
{
skipWords: [
- 'poolifier',
'christopher',
'christopher',
+ 'comparator',
'ecma',
'enum',
'ecma',
'enum',
+ 'inheritdoc',
'jsdoc',
'jsdoc',
- 'p
ioardi
',
+ 'p
oolifier
',
'readonly',
'serializable',
'unregister',
'readonly',
'serializable',
'unregister',
@@
-70,6
+74,8
@@
module.exports = {
files: ['src/**/*.ts'],
extends: 'plugin:jsdoc/recommended',
rules: {
files: ['src/**/*.ts'],
extends: 'plugin:jsdoc/recommended',
rules: {
+ 'no-useless-constructor': 'off',
+
'jsdoc/match-description': [
'warn',
{
'jsdoc/match-description': [
'warn',
{
@@
-131,4
+137,4
@@
module.exports = {
mode: 'typescript'
}
}
mode: 'typescript'
}
}
-}
+}
)