@remcohaszing/eslint 14.0.0 → 14.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config.js +27 -12
- package/package.json +3 -4
- package/types/config.d.ts +2 -2
- package/types/config.d.ts.map +1 -1
package/lib/config.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @import {Linter} from 'eslint'
|
|
2
|
+
* @import { Linter } from 'eslint'
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { dirname, join } from 'node:path'
|
|
6
6
|
|
|
7
|
-
import { includeIgnoreFile } from '@eslint/compat'
|
|
8
7
|
import markdown from '@eslint/markdown'
|
|
9
8
|
import eslintCommunityEslintComments from '@eslint-community/eslint-plugin-eslint-comments'
|
|
10
9
|
import stylistic from '@stylistic/eslint-plugin'
|
|
11
10
|
import typescriptEslint from '@typescript-eslint/eslint-plugin'
|
|
12
11
|
import typescriptEslintParser from '@typescript-eslint/parser'
|
|
13
12
|
import confusingBrowserGlobals from 'confusing-browser-globals'
|
|
14
|
-
import { defineConfig } from 'eslint/config'
|
|
13
|
+
import { defineConfig, includeIgnoreFile } from 'eslint/config'
|
|
15
14
|
import importX from 'eslint-plugin-import-x'
|
|
16
15
|
import jsdoc from 'eslint-plugin-jsdoc'
|
|
17
16
|
import n from 'eslint-plugin-n'
|
|
@@ -329,7 +328,6 @@ const config = defineConfig([
|
|
|
329
328
|
'no-new': 'error',
|
|
330
329
|
'no-new-func': 'error',
|
|
331
330
|
'no-new-native-nonconstructor': 'error',
|
|
332
|
-
'no-new-wrappers': 'error',
|
|
333
331
|
'no-obj-calls': 'error',
|
|
334
332
|
'no-object-constructor': 'error',
|
|
335
333
|
'no-octal-escape': 'error',
|
|
@@ -384,7 +382,7 @@ const config = defineConfig([
|
|
|
384
382
|
'no-unused-expressions': ['error', { enforceForJSX: true }],
|
|
385
383
|
'no-unused-labels': 'error',
|
|
386
384
|
'no-unused-private-class-members': 'error',
|
|
387
|
-
'no-unused-vars': ['error', { ignoreRestSiblings: true }],
|
|
385
|
+
'no-unused-vars': ['error', { ignoreRestSiblings: true, ignoreUsingDeclarations: true }],
|
|
388
386
|
'no-use-before-define': 'error',
|
|
389
387
|
'no-useless-assignment': 'error',
|
|
390
388
|
'no-useless-backreference': 'error',
|
|
@@ -553,9 +551,27 @@ const config = defineConfig([
|
|
|
553
551
|
'jsdoc/check-access': 'error',
|
|
554
552
|
'jsdoc/check-indentation': [
|
|
555
553
|
'error',
|
|
556
|
-
{
|
|
554
|
+
{
|
|
555
|
+
excludeTags: [
|
|
556
|
+
'example',
|
|
557
|
+
'param',
|
|
558
|
+
'property',
|
|
559
|
+
'returns',
|
|
560
|
+
'template',
|
|
561
|
+
'throws',
|
|
562
|
+
'todo',
|
|
563
|
+
'typedef'
|
|
564
|
+
]
|
|
565
|
+
}
|
|
566
|
+
],
|
|
567
|
+
'jsdoc/check-line-alignment': [
|
|
568
|
+
'error',
|
|
569
|
+
'never',
|
|
570
|
+
{
|
|
571
|
+
wrapIndent: ' ',
|
|
572
|
+
tags: ['example', 'param', 'property', 'returns', 'template', 'throws', 'todo', 'typedef']
|
|
573
|
+
}
|
|
557
574
|
],
|
|
558
|
-
'jsdoc/check-line-alignment': ['error', 'never', { wrapIndent: ' ' }],
|
|
559
575
|
'jsdoc/check-param-names': ['error', { checkDestructured: false }],
|
|
560
576
|
'jsdoc/check-tag-names': ['error', { jsxTags: true }],
|
|
561
577
|
'jsdoc/check-template-names': 'error',
|
|
@@ -621,7 +637,6 @@ const config = defineConfig([
|
|
|
621
637
|
]
|
|
622
638
|
}
|
|
623
639
|
],
|
|
624
|
-
'jsdoc/no-undefined-types': 'error',
|
|
625
640
|
'jsdoc/prefer-import-tag': ['error', { exemptTypedefs: false, outputType: 'named-import' }],
|
|
626
641
|
'jsdoc/reject-any-type': 'error',
|
|
627
642
|
'jsdoc/reject-function-type': 'error',
|
|
@@ -780,7 +795,6 @@ const config = defineConfig([
|
|
|
780
795
|
'unicorn/no-array-for-each': 'error',
|
|
781
796
|
'unicorn/no-array-method-this-argument': 'error',
|
|
782
797
|
'unicorn/no-array-reduce': 'error',
|
|
783
|
-
'unicorn/no-array-sort': 'error',
|
|
784
798
|
'unicorn/no-await-in-promise-methods': 'error',
|
|
785
799
|
'unicorn/no-console-spaces': 'error',
|
|
786
800
|
'unicorn/no-document-cookie': 'error',
|
|
@@ -788,7 +802,6 @@ const config = defineConfig([
|
|
|
788
802
|
'unicorn/no-for-loop': 'error',
|
|
789
803
|
'unicorn/no-hex-escape': 'error',
|
|
790
804
|
'unicorn/no-immediate-mutation': 'error',
|
|
791
|
-
'unicorn/no-instanceof-builtins': 'error',
|
|
792
805
|
'unicorn/no-invalid-fetch-options': 'error',
|
|
793
806
|
'unicorn/no-invalid-remove-event-listener': 'error',
|
|
794
807
|
'unicorn/no-lonely-if': 'error',
|
|
@@ -1017,11 +1030,13 @@ const config = defineConfig([
|
|
|
1017
1030
|
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
|
1018
1031
|
'@typescript-eslint/no-unsafe-function-type': 'error',
|
|
1019
1032
|
'@typescript-eslint/no-unused-expressions': ['error', { enforceForJSX: true }],
|
|
1020
|
-
'@typescript-eslint/no-unused-vars': [
|
|
1033
|
+
'@typescript-eslint/no-unused-vars': [
|
|
1034
|
+
'error',
|
|
1035
|
+
{ ignoreRestSiblings: true, ignoreUsingDeclarations: true }
|
|
1036
|
+
],
|
|
1021
1037
|
'@typescript-eslint/no-use-before-define': 'error',
|
|
1022
1038
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
1023
1039
|
'@typescript-eslint/no-useless-empty-export': 'error',
|
|
1024
|
-
'@typescript-eslint/no-wrapper-object-types': 'error',
|
|
1025
1040
|
'@typescript-eslint/parameter-properties': 'error',
|
|
1026
1041
|
'@typescript-eslint/prefer-as-const': 'error',
|
|
1027
1042
|
'@typescript-eslint/prefer-for-of': 'error',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remcohaszing/eslint",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.1.0",
|
|
4
4
|
"description": "A strict ESLint configuration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -30,15 +30,14 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.0.0",
|
|
33
|
-
"@eslint/compat": "^2.0.0",
|
|
34
33
|
"@eslint/markdown": "^8.0.0",
|
|
35
34
|
"@stylistic/eslint-plugin": "^5.0.0",
|
|
36
35
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
37
36
|
"@typescript-eslint/parser": "^8.0.0",
|
|
38
37
|
"confusing-browser-globals": "^1.0.0",
|
|
39
38
|
"eslint-plugin-import-x": "^4.0.0",
|
|
40
|
-
"eslint-plugin-jsdoc": "^
|
|
41
|
-
"eslint-plugin-n": "^
|
|
39
|
+
"eslint-plugin-jsdoc": "^63.0.0",
|
|
40
|
+
"eslint-plugin-n": "^18.0.0",
|
|
42
41
|
"eslint-plugin-perfectionist": "^5.0.0",
|
|
43
42
|
"eslint-plugin-unicorn": "^64.0.0",
|
|
44
43
|
"find-up": "^5.0.0"
|
package/types/config.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export function define(overrides: Linter.Config | Linter.Config[]): Linter.Config[];
|
|
10
10
|
export default config;
|
|
11
|
-
export const typechecking: import("
|
|
11
|
+
export const typechecking: import("eslint/config").Config[];
|
|
12
12
|
import type { Linter } from 'eslint';
|
|
13
|
-
declare const config: import("
|
|
13
|
+
declare const config: import("eslint/config").Config[];
|
|
14
14
|
//# sourceMappingURL=config.d.ts.map
|
package/types/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../lib/config.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../lib/config.js"],"names":[],"mappings":"AAgtCA;;;;;;;GAOG;AACH,kCALW,aAAa,GAAG,aAAa,EAAE,GAE7B,aAAa,EAAE,CAK3B;;AAxFD,4DA4EE;4BA7sCyB,QAAQ;AA4HnC,uDAigCE"}
|