Convert function to arrow function in UT
[poolifier.git] / .eslintrc.js
index 93a3c1bdc09c590ba0ff0986dedafab0e8d4e0e8..ca01b306546da789593b9de39c479763bacf7640 100644 (file)
@@ -7,10 +7,6 @@ module.exports = defineConfig({
     node: true,
     mocha: true
   },
-  parserOptions: {
-    ecmaVersion: 2020,
-    sourceType: 'module'
-  },
   plugins: ['promise', 'prettierx', 'jsdoc', 'spellcheck'],
   extends: [
     'standard',
@@ -39,6 +35,7 @@ module.exports = defineConfig({
           'comparator',
           'ecma',
           'enum',
+          'fibonacci',
           'inheritdoc',
           'jsdoc',
           'poolifier',
@@ -55,9 +52,16 @@ module.exports = defineConfig({
     {
       files: ['**/*.ts'],
       parser: '@typescript-eslint/parser',
+      parserOptions: {
+        ecmaVersion: 2020,
+        sourceType: 'module',
+        project: './tsconfig.json'
+      },
       plugins: ['@typescript-eslint'],
       extends: [
+        'plugin:@typescript-eslint/eslint-recommended',
         'plugin:@typescript-eslint/recommended',
+        'plugin:@typescript-eslint/recommended-requiring-type-checking',
         'plugin:import/typescript'
       ],
       rules: {
@@ -74,9 +78,6 @@ module.exports = defineConfig({
         'jsdoc/match-description': [
           'warn',
           {
-            // mainDescription:
-            //   '/^[A-Z`].+?(\\.|:)(\\n\\n.*((\\n{1,2}- .+)|(_.+_)|`.+`|\\n\\n---))?$/us',
-            // matchDescription: '^[A-Z`].+(\\.|`.+`)$',
             contexts: ['any'],
             tags: {
               param: true,
@@ -128,13 +129,6 @@ module.exports = defineConfig({
         'node/no-missing-require': 'off',
         'jsdoc/require-jsdoc': 'off'
       }
-    },
-    {
-      files: ['examples/typescript/**/*.ts'],
-      rules: {
-        'import/no-unresolved': 'off',
-        'jsdoc/require-jsdoc': 'off'
-      }
     }
   ],
   settings: {