repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump @typescript-eslint/eslint-plugin from 5.31.0 to 5.32.0 (#500)
[poolifier.git]
/
.eslintrc.js
diff --git
a/.eslintrc.js
b/.eslintrc.js
index 10597e776699b03b200b20a14e1881cb28256ef5..93a3c1bdc09c590ba0ff0986dedafab0e8d4e0e8 100644
(file)
--- a/
.eslintrc.js
+++ b/
.eslintrc.js
@@
-1,44
+1,28
@@
-module.exports = {
+// @ts-check
+const { defineConfig } = require('eslint-define-config')
+
+module.exports = defineConfig({
env: {
es2021: true,
node: true,
mocha: true
},
env: {
es2021: true,
node: true,
mocha: true
},
- parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
parserOptions: {
ecmaVersion: 2020,
- sourceType: 'module',
- warnOnUnsupportedTypeScriptVersion: false
+ sourceType: 'module'
},
},
- plugins: [
- '@typescript-eslint',
- 'promise',
- 'prettierx',
- 'jsdoc',
- 'spellcheck'
- ],
+ plugins: ['promise', 'prettierx', 'jsdoc', 'spellcheck'],
extends: [
'standard',
'eslint:recommended',
extends: [
'standard',
'eslint:recommended',
- 'plugin:@typescript-eslint/recommended',
- 'plugin:import/errors',
- 'plugin:import/warnings',
- 'plugin:import/typescript',
+ 'plugin:import/recommended',
+ 'plugin:jsdoc/recommended',
'plugin:promise/recommended',
'plugin:promise/recommended',
- 'plugin:prettierx/standardx',
- 'plugin:prettierx/@typescript-eslint'
+ 'plugin:prettierx/standardx'
],
rules: {
'no-void': 'off',
],
rules: {
'no-void': 'off',
- // We have some intentionally empty functions
- '@typescript-eslint/no-empty-function': 'off',
-
- '@typescript-eslint/no-inferrable-types': [
- 'error',
- { ignoreProperties: true }
- ],
-
'sort-imports': [
'warn',
{
'sort-imports': [
'warn',
{
@@
-52,11
+36,11
@@
module.exports = {
{
skipWords: [
'christopher',
{
skipWords: [
'christopher',
+ 'comparator',
'ecma',
'enum',
'inheritdoc',
'jsdoc',
'ecma',
'enum',
'inheritdoc',
'jsdoc',
- 'pioardi',
'poolifier',
'readonly',
'serializable',
'poolifier',
'readonly',
'serializable',
@@
-69,17
+53,30
@@
module.exports = {
},
overrides: [
{
},
overrides: [
{
- files: ['src/**/*.ts'],
- extends: 'plugin:jsdoc/recommended',
+ files: ['**/*.ts'],
+ parser: '@typescript-eslint/parser',
+ plugins: ['@typescript-eslint'],
+ extends: [
+ 'plugin:@typescript-eslint/recommended',
+ 'plugin:import/typescript'
+ ],
rules: {
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',
'jsdoc/match-description': [
'warn',
{
'no-useless-constructor': 'off',
'jsdoc/match-description': [
'warn',
{
- mainDescription:
- '/^[A-Z`].+?(\\.|:)(\\n\\n.*((\\n{1,2}- .+)|(_.+_)|`.+`|\\n\\n---))?$/us',
- matchDescription: '^[A-Z`].+(\\.|`.+`)$',
+
//
mainDescription:
+
//
'/^[A-Z`].+?(\\.|:)(\\n\\n.*((\\n{1,2}- .+)|(_.+_)|`.+`|\\n\\n---))?$/us',
+
//
matchDescription: '^[A-Z`].+(\\.|`.+`)$',
contexts: ['any'],
tags: {
param: true,
contexts: ['any'],
tags: {
param: true,
@@
-110,23
+107,33
@@
module.exports = {
}
},
{
}
},
{
- files: ['*.js'],
- extends: 'plugin:node/recommended',
+ files: ['**/*.js'],
+ extends: 'plugin:node/recommended'
+ },
+ {
+ files: ['tests/**/*.js'],
rules: {
rules: {
- '@typescript-eslint/no-unused-vars': 'off',
- '@typescript-eslint/no-var-requires': 'off'
+ 'jsdoc/require-jsdoc': 'off'
}
},
{
}
},
{
- files: ['
examples/typescript/**/*.t
s'],
+ files: ['
benchmarks/**/*.j
s'],
rules: {
rules: {
- '
import/no-unresolved
': 'off'
+ '
jsdoc/require-jsdoc
': 'off'
}
},
{
files: ['examples/**/*.js'],
rules: {
}
},
{
files: ['examples/**/*.js'],
rules: {
- 'node/no-missing-require': 'off'
+ 'node/no-missing-require': 'off',
+ 'jsdoc/require-jsdoc': 'off'
+ }
+ },
+ {
+ files: ['examples/typescript/**/*.ts'],
+ rules: {
+ 'import/no-unresolved': 'off',
+ 'jsdoc/require-jsdoc': 'off'
}
}
],
}
}
],
@@
-135,4
+142,4
@@
module.exports = {
mode: 'typescript'
}
}
mode: 'typescript'
}
}
-}
+}
)