@perfective/eslint-config 0.29.0 → 0.29.2
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/README.adoc +1 -2
- package/README.md +1 -2
- package/cypress.d.ts +1 -0
- package/cypress.js +3 -5
- package/index.d.ts +1732 -0
- package/index.js +11 -12
- package/jest-dom.d.ts +1 -0
- package/jest.d.ts +1 -0
- package/package.json +17 -7
- package/rules/array-func/index.d.ts +14 -0
- package/rules/cypress/index.d.ts +21 -0
- package/rules/eslint/index.d.ts +339 -0
- package/rules/eslint/layout-formatting.d.ts +64 -0
- package/rules/eslint/possible-problems.d.ts +96 -0
- package/rules/eslint/suggestions.d.ts +181 -0
- package/rules/eslint-comments/best-practices.d.ts +8 -0
- package/rules/eslint-comments/index.d.ts +21 -0
- package/rules/eslint-comments/stylistic-issues.d.ts +9 -0
- package/rules/import/helpful-warnings.d.ts +10 -0
- package/rules/import/index.d.ts +78 -0
- package/rules/import/module-systems.d.ts +10 -0
- package/rules/import/static-analysis.d.ts +26 -0
- package/rules/import/style-guide.d.ts +33 -0
- package/rules/jest/index.d.ts +124 -0
- package/rules/jest/typescript-eslint.d.ts +5 -0
- package/rules/jest-dom/index.d.ts +32 -0
- package/rules/jsdoc/index.d.ts +134 -0
- package/rules/n/index.d.ts +66 -0
- package/rules/prefer-arrow/index.d.ts +14 -0
- package/rules/promise/index.d.ts +35 -0
- package/rules/rxjs/index.d.ts +60 -0
- package/rules/security/index.d.ts +22 -0
- package/rules/simple-import-sort/index.d.ts +10 -0
- package/rules/stylistic/js/index.d.ts +197 -0
- package/rules/stylistic/jsx/index.d.ts +81 -0
- package/rules/stylistic/plus/index.d.ts +14 -0
- package/rules/stylistic/ts/index.d.ts +135 -0
- package/rules/testing-library/index.d.ts +62 -0
- package/rules/typescript-eslint/extension-rules.d.ts +113 -0
- package/rules/typescript-eslint/index.d.ts +369 -0
- package/rules/typescript-eslint/supported-rules.d.ts +253 -0
- package/rules/unicorn/index.d.ts +178 -0
- package/rxjs.d.ts +1 -0
- package/rxjs.js +3 -3
- package/testing-library.d.ts +1 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
export declare const jsdocConfig: {
|
|
2
|
+
plugins: {
|
|
3
|
+
jsdoc: {
|
|
4
|
+
rules: Record<string, import("eslint").Rule.RuleModule> | undefined;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
settings: {
|
|
8
|
+
jsdoc: {
|
|
9
|
+
tagNamePreference: {
|
|
10
|
+
augments: {
|
|
11
|
+
message: string;
|
|
12
|
+
replacement: string;
|
|
13
|
+
};
|
|
14
|
+
todo: {
|
|
15
|
+
message: string;
|
|
16
|
+
};
|
|
17
|
+
fires: {
|
|
18
|
+
replacement: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
ignoreReplacesDocs: boolean;
|
|
22
|
+
overrideReplacesDocs: boolean;
|
|
23
|
+
augmentsExtendsReplacesDocs: boolean;
|
|
24
|
+
implementsReplacesDoc: boolean;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
rules: {
|
|
28
|
+
'jsdoc/check-access': string;
|
|
29
|
+
'jsdoc/check-alignment': string;
|
|
30
|
+
'jsdoc/check-examples': string;
|
|
31
|
+
'jsdoc/check-indentation': string;
|
|
32
|
+
'jsdoc/check-line-alignment': string[];
|
|
33
|
+
'jsdoc/check-param-names': (string | {
|
|
34
|
+
allowExtraTrailingParamDocs: boolean;
|
|
35
|
+
checkDestructured: boolean;
|
|
36
|
+
checkRestProperty: boolean;
|
|
37
|
+
disableExtraPropertyReporting: boolean;
|
|
38
|
+
disableMissingParamChecks: boolean;
|
|
39
|
+
enableFixer: boolean;
|
|
40
|
+
useDefaultObjectProperties: boolean;
|
|
41
|
+
})[];
|
|
42
|
+
'jsdoc/check-property-names': (string | {
|
|
43
|
+
enableFixer: boolean;
|
|
44
|
+
})[];
|
|
45
|
+
'jsdoc/check-syntax': string;
|
|
46
|
+
'jsdoc/check-tag-names': (string | {
|
|
47
|
+
definedTags: string[];
|
|
48
|
+
jsxTags: boolean;
|
|
49
|
+
})[];
|
|
50
|
+
'jsdoc/check-template-names': string;
|
|
51
|
+
'jsdoc/check-types': (string | {
|
|
52
|
+
noDefaults: boolean;
|
|
53
|
+
})[];
|
|
54
|
+
'jsdoc/check-values': string;
|
|
55
|
+
'jsdoc/convert-to-jsdoc-comments': string;
|
|
56
|
+
'jsdoc/empty-tags': (string | {
|
|
57
|
+
tags: string[];
|
|
58
|
+
})[];
|
|
59
|
+
'jsdoc/implements-on-classes': string;
|
|
60
|
+
'jsdoc/imports-as-dependencies': string;
|
|
61
|
+
'jsdoc/lines-before-block': string;
|
|
62
|
+
'jsdoc/match-description': string;
|
|
63
|
+
'jsdoc/match-name': string;
|
|
64
|
+
'jsdoc/multiline-blocks': (string | {
|
|
65
|
+
noZeroLineText: boolean;
|
|
66
|
+
noFinalLineText: boolean;
|
|
67
|
+
noSingleLineBlocks: boolean;
|
|
68
|
+
singleLineTags: string[];
|
|
69
|
+
noMultilineBlocks: boolean;
|
|
70
|
+
multilineTags: string[];
|
|
71
|
+
allowMultipleTags: boolean;
|
|
72
|
+
})[];
|
|
73
|
+
'jsdoc/no-bad-blocks': (string | {
|
|
74
|
+
ignore: string[];
|
|
75
|
+
preventAllMultiAsteriskBlocks: boolean;
|
|
76
|
+
})[];
|
|
77
|
+
'jsdoc/no-blank-blocks': string;
|
|
78
|
+
'jsdoc/no-blank-block-descriptions': string;
|
|
79
|
+
'jsdoc/no-defaults': string;
|
|
80
|
+
'jsdoc/no-missing-syntax': string;
|
|
81
|
+
'jsdoc/no-multi-asterisks': (string | {
|
|
82
|
+
allowWhitespace: boolean;
|
|
83
|
+
preventAtMiddleLines: boolean;
|
|
84
|
+
preventAtEnd: boolean;
|
|
85
|
+
})[];
|
|
86
|
+
'jsdoc/no-restricted-syntax': string;
|
|
87
|
+
'jsdoc/no-types': string;
|
|
88
|
+
'jsdoc/no-undefined-types': string;
|
|
89
|
+
'jsdoc/require-asterisk-prefix': string[];
|
|
90
|
+
'jsdoc/require-description': (string | {
|
|
91
|
+
exemptedBy: string[];
|
|
92
|
+
})[];
|
|
93
|
+
'jsdoc/require-description-complete-sentence': string;
|
|
94
|
+
'jsdoc/require-example': string;
|
|
95
|
+
'jsdoc/require-file-overview': string;
|
|
96
|
+
'jsdoc/require-hyphen-before-param-description': string[];
|
|
97
|
+
'jsdoc/require-jsdoc': string;
|
|
98
|
+
'jsdoc/require-param': string;
|
|
99
|
+
'jsdoc/require-param-description': string;
|
|
100
|
+
'jsdoc/require-param-name': string;
|
|
101
|
+
'jsdoc/require-param-type': string;
|
|
102
|
+
'jsdoc/require-property': string;
|
|
103
|
+
'jsdoc/require-property-description': string;
|
|
104
|
+
'jsdoc/require-property-name': string;
|
|
105
|
+
'jsdoc/require-property-type': string;
|
|
106
|
+
'jsdoc/require-returns': string;
|
|
107
|
+
'jsdoc/require-returns-check': string;
|
|
108
|
+
'jsdoc/require-returns-description': string;
|
|
109
|
+
'jsdoc/require-returns-type': string;
|
|
110
|
+
'jsdoc/require-template': (string | {
|
|
111
|
+
requireSeparateTemplates: boolean;
|
|
112
|
+
})[];
|
|
113
|
+
'jsdoc/require-throws': string;
|
|
114
|
+
'jsdoc/require-yields': string;
|
|
115
|
+
'jsdoc/require-yields-check': string;
|
|
116
|
+
'jsdoc/sort-tags': (string | {
|
|
117
|
+
tagSequence: {
|
|
118
|
+
tags: string[];
|
|
119
|
+
}[];
|
|
120
|
+
alphabetizeExtras: boolean;
|
|
121
|
+
linesBetween: number;
|
|
122
|
+
reportTagGroupSpacing: boolean;
|
|
123
|
+
reportIntraTagGroupSpacing: boolean;
|
|
124
|
+
})[];
|
|
125
|
+
'jsdoc/tag-lines': (string | {
|
|
126
|
+
count: number;
|
|
127
|
+
startLines: number;
|
|
128
|
+
endLines: number;
|
|
129
|
+
applyToEndTag: boolean;
|
|
130
|
+
tags: {};
|
|
131
|
+
})[];
|
|
132
|
+
'jsdoc/valid-types': string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as eslintPluginN from 'eslint-plugin-n';
|
|
2
|
+
export declare const nConfig: {
|
|
3
|
+
plugins: {
|
|
4
|
+
n: import("eslint").ESLint.Plugin & {
|
|
5
|
+
configs: eslintPluginN.Configs;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
rules: {
|
|
9
|
+
'n/callback-return': (string | string[])[];
|
|
10
|
+
'n/exports-style': (string | {
|
|
11
|
+
allowBatchAssign: boolean;
|
|
12
|
+
})[];
|
|
13
|
+
'n/file-extension-in-import': string;
|
|
14
|
+
'n/global-require': string;
|
|
15
|
+
'n/handle-callback-err': string;
|
|
16
|
+
'n/hashbang': string;
|
|
17
|
+
'n/no-callback-literal': string;
|
|
18
|
+
'n/no-deprecated-api': string;
|
|
19
|
+
'n/no-exports-assign': string;
|
|
20
|
+
'n/no-extraneous-import': string;
|
|
21
|
+
'n/no-extraneous-require': string;
|
|
22
|
+
'n/no-hide-core-modules': string;
|
|
23
|
+
'n/no-missing-import': string;
|
|
24
|
+
'n/no-missing-require': string;
|
|
25
|
+
'n/no-mixed-requires': string;
|
|
26
|
+
'n/no-new-require': string;
|
|
27
|
+
'n/no-path-concat': string;
|
|
28
|
+
'n/no-process-env': string;
|
|
29
|
+
'n/no-process-exit': string;
|
|
30
|
+
'n/no-restricted-import': string;
|
|
31
|
+
'n/no-restricted-require': string;
|
|
32
|
+
'n/no-sync': (string | {
|
|
33
|
+
allowAtRootLevel: boolean;
|
|
34
|
+
})[];
|
|
35
|
+
'n/no-unpublished-bin': string;
|
|
36
|
+
'n/no-unpublished-import': (string | {
|
|
37
|
+
ignorePrivate: boolean;
|
|
38
|
+
})[];
|
|
39
|
+
'n/no-unpublished-require': (string | {
|
|
40
|
+
allowModules: never[];
|
|
41
|
+
ignorePrivate: boolean;
|
|
42
|
+
tryExtensions: string[];
|
|
43
|
+
})[];
|
|
44
|
+
'n/no-unsupported-features/es-builtins': (string | {
|
|
45
|
+
version: string;
|
|
46
|
+
ignores: never[];
|
|
47
|
+
})[];
|
|
48
|
+
'n/no-unsupported-features/es-syntax': string;
|
|
49
|
+
'n/no-unsupported-features/node-builtins': (string | {
|
|
50
|
+
version: string;
|
|
51
|
+
ignores: never[];
|
|
52
|
+
})[];
|
|
53
|
+
'n/prefer-global/buffer': string[];
|
|
54
|
+
'n/prefer-global/console': string[];
|
|
55
|
+
'n/prefer-global/process': string[];
|
|
56
|
+
'n/prefer-global/text-decoder': string[];
|
|
57
|
+
'n/prefer-global/text-encoder': string[];
|
|
58
|
+
'n/prefer-global/url': string[];
|
|
59
|
+
'n/prefer-global/url-search-params': string[];
|
|
60
|
+
'n/prefer-node-protocol': string;
|
|
61
|
+
'n/prefer-promises/dns': string;
|
|
62
|
+
'n/prefer-promises/fs': string;
|
|
63
|
+
'n/process-exit-as-throw': string;
|
|
64
|
+
'n/shebang': string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as eslintPluginPreferArrow from 'eslint-plugin-prefer-arrow';
|
|
2
|
+
export declare const preferArrowConfig: {
|
|
3
|
+
plugins: {
|
|
4
|
+
'prefer-arrow': typeof eslintPluginPreferArrow;
|
|
5
|
+
};
|
|
6
|
+
rules: {
|
|
7
|
+
'prefer-arrow/prefer-arrow-functions': (string | {
|
|
8
|
+
allowStandaloneDeclarations: boolean;
|
|
9
|
+
classPropertiesAllowed: boolean;
|
|
10
|
+
disallowPrototype: boolean;
|
|
11
|
+
singleReturnOnly: boolean;
|
|
12
|
+
})[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as eslintPluginPromise from 'eslint-plugin-promise';
|
|
2
|
+
export declare const promiseConfig: {
|
|
3
|
+
plugins: {
|
|
4
|
+
promise: typeof eslintPluginPromise;
|
|
5
|
+
};
|
|
6
|
+
rules: {
|
|
7
|
+
'promise/catch-or-return': (string | {
|
|
8
|
+
allowThen: boolean;
|
|
9
|
+
allowThenStrict: boolean;
|
|
10
|
+
allowFinally: boolean;
|
|
11
|
+
})[];
|
|
12
|
+
'promise/no-return-wrap': string;
|
|
13
|
+
'promise/param-names': string;
|
|
14
|
+
'promise/always-return': (string | {
|
|
15
|
+
ignoreAssignmentVariable: string[];
|
|
16
|
+
})[];
|
|
17
|
+
'promise/no-multiple-resolved': string;
|
|
18
|
+
'promise/no-native': string;
|
|
19
|
+
'promise/no-nesting': string;
|
|
20
|
+
'promise/no-promise-in-callback': string;
|
|
21
|
+
'promise/no-callback-in-promise': (string | {
|
|
22
|
+
timeoutsErr: boolean;
|
|
23
|
+
})[];
|
|
24
|
+
'promise/avoid-new': string;
|
|
25
|
+
'promise/no-new-statics': string;
|
|
26
|
+
'promise/no-return-in-finally': string;
|
|
27
|
+
'promise/prefer-catch': string;
|
|
28
|
+
'promise/spec-only': (string | {
|
|
29
|
+
allowedMethods: never[];
|
|
30
|
+
})[];
|
|
31
|
+
'promise/valid-params': string;
|
|
32
|
+
'promise/prefer-await-to-then': string;
|
|
33
|
+
'promise/prefer-await-to-callbacks': string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as eslintPluginRxjs from '@smarttools/eslint-plugin-rxjs';
|
|
2
|
+
export declare const rxjsConfig: {
|
|
3
|
+
plugins: {
|
|
4
|
+
'@smarttools/rxjs': typeof eslintPluginRxjs;
|
|
5
|
+
};
|
|
6
|
+
rules: {
|
|
7
|
+
'@smarttools/rxjs/ban-observables': string;
|
|
8
|
+
'@smarttools/rxjs/ban-operators': (string | {
|
|
9
|
+
tap: boolean;
|
|
10
|
+
})[];
|
|
11
|
+
'@smarttools/rxjs/finnish': (string | {
|
|
12
|
+
functions: boolean;
|
|
13
|
+
methods: boolean;
|
|
14
|
+
names: {};
|
|
15
|
+
parameters: boolean;
|
|
16
|
+
properties: boolean;
|
|
17
|
+
strict: boolean;
|
|
18
|
+
types: {};
|
|
19
|
+
variables: boolean;
|
|
20
|
+
})[];
|
|
21
|
+
'@smarttools/rxjs/just': string;
|
|
22
|
+
'@smarttools/rxjs/no-async-subscribe': string;
|
|
23
|
+
'@smarttools/rxjs/no-compat': string;
|
|
24
|
+
'@smarttools/rxjs/no-connectable': string;
|
|
25
|
+
'@smarttools/rxjs/no-create': string;
|
|
26
|
+
'@smarttools/rxjs/no-cyclic-action': string;
|
|
27
|
+
'@smarttools/rxjs/no-explicit-generics': string;
|
|
28
|
+
'@smarttools/rxjs/no-exposed-subjects': string;
|
|
29
|
+
'@smarttools/rxjs/no-finnish': string;
|
|
30
|
+
'@smarttools/rxjs/no-ignored-error': string;
|
|
31
|
+
'@smarttools/rxjs/no-ignored-notifier': string;
|
|
32
|
+
'@smarttools/rxjs/no-ignored-observable': string;
|
|
33
|
+
'@smarttools/rxjs/no-ignored-replay-buffer': string;
|
|
34
|
+
'@smarttools/rxjs/no-ignored-subscribe': string;
|
|
35
|
+
'@smarttools/rxjs/no-ignored-subscription': string;
|
|
36
|
+
'@smarttools/rxjs/no-ignored-takewhile-value': string;
|
|
37
|
+
'@smarttools/rxjs/no-implicit-any-catch': (string | {
|
|
38
|
+
allowExplicitAny: boolean;
|
|
39
|
+
})[];
|
|
40
|
+
'@smarttools/rxjs/no-index': string;
|
|
41
|
+
'@smarttools/rxjs/no-internal': string;
|
|
42
|
+
'@smarttools/rxjs/no-nested-subscribe': string;
|
|
43
|
+
'@smarttools/rxjs/no-redundant-notify': string;
|
|
44
|
+
'@smarttools/rxjs/no-sharereplay': string;
|
|
45
|
+
'@smarttools/rxjs/no-subclass': string;
|
|
46
|
+
'@smarttools/rxjs/no-subject-unsubscribe': string;
|
|
47
|
+
'@smarttools/rxjs/no-subject-value': string;
|
|
48
|
+
'@smarttools/rxjs/no-subscribe-handlers': string;
|
|
49
|
+
'@smarttools/rxjs/no-topromise': string;
|
|
50
|
+
'@smarttools/rxjs/no-unbound-methods': string;
|
|
51
|
+
'@smarttools/rxjs/no-unsafe-catch': string;
|
|
52
|
+
'@smarttools/rxjs/no-unsafe-first': string;
|
|
53
|
+
'@smarttools/rxjs/no-unsafe-subject-next': string;
|
|
54
|
+
'@smarttools/rxjs/no-unsafe-switchmap': string;
|
|
55
|
+
'@smarttools/rxjs/no-unsafe-takeuntil': string;
|
|
56
|
+
'@smarttools/rxjs/prefer-observer': string;
|
|
57
|
+
'@smarttools/rxjs/suffix-subjects': string;
|
|
58
|
+
'@smarttools/rxjs/throw-error': string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as eslintPluginSecurity from 'eslint-plugin-security';
|
|
2
|
+
export declare const securityConfig: {
|
|
3
|
+
plugins: {
|
|
4
|
+
security: typeof eslintPluginSecurity;
|
|
5
|
+
};
|
|
6
|
+
rules: {
|
|
7
|
+
'security/detect-bidi-characters': string;
|
|
8
|
+
'security/detect-buffer-noassert': string;
|
|
9
|
+
'security/detect-child-process': string;
|
|
10
|
+
'security/detect-disable-mustache-escape': string;
|
|
11
|
+
'security/detect-eval-with-expression': string;
|
|
12
|
+
'security/detect-new-buffer': string;
|
|
13
|
+
'security/detect-no-csrf-before-method-override': string;
|
|
14
|
+
'security/detect-non-literal-fs-filename': string;
|
|
15
|
+
'security/detect-non-literal-regexp': string;
|
|
16
|
+
'security/detect-non-literal-require': string;
|
|
17
|
+
'security/detect-object-injection': string;
|
|
18
|
+
'security/detect-possible-timing-attacks': string;
|
|
19
|
+
'security/detect-pseudoRandomBytes': string;
|
|
20
|
+
'security/detect-unsafe-regex': string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const simpleImportSortConfig: {
|
|
2
|
+
files: string[];
|
|
3
|
+
plugins: {
|
|
4
|
+
'simple-import-sort': import("eslint").ESLint.Plugin;
|
|
5
|
+
};
|
|
6
|
+
rules: {
|
|
7
|
+
'simple-import-sort/exports': string;
|
|
8
|
+
'simple-import-sort/imports': (string | import("./rules/imports").SimpleImportSortImports)[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import * as eslintPluginStylisticJs from '@stylistic/eslint-plugin-js';
|
|
2
|
+
export declare const stylisticJsConfig: {
|
|
3
|
+
plugins: {
|
|
4
|
+
'@stylistic/js': typeof eslintPluginStylisticJs;
|
|
5
|
+
};
|
|
6
|
+
rules: {
|
|
7
|
+
'@stylistic/js/array-bracket-newline': string[];
|
|
8
|
+
'@stylistic/js/array-bracket-spacing': string[];
|
|
9
|
+
'@stylistic/js/array-element-newline': string[];
|
|
10
|
+
'@stylistic/js/arrow-parens': string[];
|
|
11
|
+
'@stylistic/js/arrow-spacing': (string | {
|
|
12
|
+
before: boolean;
|
|
13
|
+
after: boolean;
|
|
14
|
+
})[];
|
|
15
|
+
'@stylistic/js/block-spacing': string[];
|
|
16
|
+
'@stylistic/js/brace-style': (string | {
|
|
17
|
+
allowSingleLine: boolean;
|
|
18
|
+
})[];
|
|
19
|
+
'@stylistic/js/comma-dangle': (string | {
|
|
20
|
+
arrays: string;
|
|
21
|
+
objects: string;
|
|
22
|
+
imports: string;
|
|
23
|
+
exports: string;
|
|
24
|
+
functions: string;
|
|
25
|
+
})[];
|
|
26
|
+
'@stylistic/js/comma-spacing': (string | {
|
|
27
|
+
before: boolean;
|
|
28
|
+
after: boolean;
|
|
29
|
+
})[];
|
|
30
|
+
'@stylistic/js/comma-style': string[];
|
|
31
|
+
'@stylistic/js/computed-property-spacing': string[];
|
|
32
|
+
'@stylistic/js/dot-location': string[];
|
|
33
|
+
'@stylistic/js/eol-last': string[];
|
|
34
|
+
'@stylistic/js/func-call-spacing': string;
|
|
35
|
+
'@stylistic/js/function-call-argument-newline': string[];
|
|
36
|
+
'@stylistic/js/function-call-spacing': string[];
|
|
37
|
+
'@stylistic/js/function-paren-newline': string[];
|
|
38
|
+
'@stylistic/js/generator-star-spacing': (string | {
|
|
39
|
+
before: boolean;
|
|
40
|
+
after: boolean;
|
|
41
|
+
})[];
|
|
42
|
+
'@stylistic/js/implicit-arrow-linebreak': string[];
|
|
43
|
+
'@stylistic/js/indent': (string | number | {
|
|
44
|
+
SwitchCase: number;
|
|
45
|
+
})[];
|
|
46
|
+
'@stylistic/js/jsx-quotes': string[];
|
|
47
|
+
'@stylistic/js/key-spacing': (string | {
|
|
48
|
+
beforeColon: boolean;
|
|
49
|
+
afterColon: boolean;
|
|
50
|
+
mode: string;
|
|
51
|
+
})[];
|
|
52
|
+
'@stylistic/js/keyword-spacing': (string | {
|
|
53
|
+
before: boolean;
|
|
54
|
+
after: boolean;
|
|
55
|
+
})[];
|
|
56
|
+
'@stylistic/js/line-comment-position': (string | {
|
|
57
|
+
position: string;
|
|
58
|
+
ignorePattern: string;
|
|
59
|
+
})[];
|
|
60
|
+
'@stylistic/js/linebreak-style': string[];
|
|
61
|
+
'@stylistic/js/lines-around-comment': (string | {
|
|
62
|
+
beforeBlockComment: boolean;
|
|
63
|
+
afterBlockComment: boolean;
|
|
64
|
+
beforeLineComment: boolean;
|
|
65
|
+
afterLineComment: boolean;
|
|
66
|
+
allowBlockStart: boolean;
|
|
67
|
+
allowBlockEnd: boolean;
|
|
68
|
+
allowObjectStart: boolean;
|
|
69
|
+
allowObjectEnd: boolean;
|
|
70
|
+
allowArrayStart: boolean;
|
|
71
|
+
allowArrayEnd: boolean;
|
|
72
|
+
allowClassStart: boolean;
|
|
73
|
+
allowClassEnd: boolean;
|
|
74
|
+
afterHashbangComment: boolean;
|
|
75
|
+
})[];
|
|
76
|
+
'@stylistic/js/lines-between-class-members': (string | {
|
|
77
|
+
exceptAfterSingleLine: boolean;
|
|
78
|
+
})[];
|
|
79
|
+
'@stylistic/js/max-len': (string | {
|
|
80
|
+
code: number;
|
|
81
|
+
tabWidth: number;
|
|
82
|
+
ignoreRegExpLiterals: boolean;
|
|
83
|
+
ignoreUrls: boolean;
|
|
84
|
+
})[];
|
|
85
|
+
'@stylistic/js/max-statements-per-line': (string | {
|
|
86
|
+
max: number;
|
|
87
|
+
})[];
|
|
88
|
+
'@stylistic/js/multiline-comment-style': (string | {
|
|
89
|
+
checkJSDoc: boolean;
|
|
90
|
+
})[];
|
|
91
|
+
'@stylistic/js/multiline-ternary': string[];
|
|
92
|
+
'@stylistic/js/new-parens': string;
|
|
93
|
+
'@stylistic/js/newline-per-chained-call': (string | {
|
|
94
|
+
ignoreChainWithDepth: number;
|
|
95
|
+
})[];
|
|
96
|
+
'@stylistic/js/no-confusing-arrow': (string | {
|
|
97
|
+
allowParens: boolean;
|
|
98
|
+
onlyOneSimpleParam: boolean;
|
|
99
|
+
})[];
|
|
100
|
+
'@stylistic/js/no-extra-parens': (string | {
|
|
101
|
+
ignoreJSX: string;
|
|
102
|
+
nestedBinaryExpressions: boolean;
|
|
103
|
+
enforceForArrowConditionals: boolean;
|
|
104
|
+
ternaryOperandBinaryExpressions: boolean;
|
|
105
|
+
})[];
|
|
106
|
+
'@stylistic/js/no-extra-semi': string;
|
|
107
|
+
'@stylistic/js/no-floating-decimal': string;
|
|
108
|
+
'@stylistic/js/no-mixed-operators': (string | {
|
|
109
|
+
groups: string[][];
|
|
110
|
+
allowSamePrecedence: boolean;
|
|
111
|
+
})[];
|
|
112
|
+
'@stylistic/js/no-mixed-spaces-and-tabs': string;
|
|
113
|
+
'@stylistic/js/no-multi-spaces': string;
|
|
114
|
+
'@stylistic/js/no-multiple-empty-lines': (string | {
|
|
115
|
+
max: number;
|
|
116
|
+
maxEOF: number;
|
|
117
|
+
maxBOF: number;
|
|
118
|
+
})[];
|
|
119
|
+
'@stylistic/js/no-tabs': string;
|
|
120
|
+
'@stylistic/js/no-trailing-spaces': string;
|
|
121
|
+
'@stylistic/js/no-whitespace-before-property': string;
|
|
122
|
+
'@stylistic/js/nonblock-statement-body-position': string[];
|
|
123
|
+
'@stylistic/js/object-curly-newline': (string | {
|
|
124
|
+
ImportDeclaration: {
|
|
125
|
+
multiline: boolean;
|
|
126
|
+
};
|
|
127
|
+
ExportDeclaration: {
|
|
128
|
+
multiline: boolean;
|
|
129
|
+
};
|
|
130
|
+
})[];
|
|
131
|
+
'@stylistic/js/object-curly-spacing': (string | {
|
|
132
|
+
arraysInObjects: boolean;
|
|
133
|
+
objectsInObjects: boolean;
|
|
134
|
+
})[];
|
|
135
|
+
'@stylistic/js/object-property-newline': (string | {
|
|
136
|
+
allowAllPropertiesOnSameLine: boolean;
|
|
137
|
+
})[];
|
|
138
|
+
'@stylistic/js/one-var-declaration-per-line': string[];
|
|
139
|
+
'@stylistic/js/operator-linebreak': (string | {
|
|
140
|
+
overrides: {
|
|
141
|
+
'=': string;
|
|
142
|
+
'==': string;
|
|
143
|
+
'!=': string;
|
|
144
|
+
'>=': string;
|
|
145
|
+
'<=': string;
|
|
146
|
+
'===': string;
|
|
147
|
+
'+=': string;
|
|
148
|
+
};
|
|
149
|
+
})[];
|
|
150
|
+
'@stylistic/js/padded-blocks': string[];
|
|
151
|
+
'@stylistic/js/padding-line-between-statements': string;
|
|
152
|
+
'@stylistic/js/quote-props': string[];
|
|
153
|
+
'@stylistic/js/quotes': (string | {
|
|
154
|
+
avoidEscape: boolean;
|
|
155
|
+
allowTemplateLiterals: boolean;
|
|
156
|
+
ignoreStringLiterals: boolean;
|
|
157
|
+
})[];
|
|
158
|
+
'@stylistic/js/rest-spread-spacing': string[];
|
|
159
|
+
'@stylistic/js/semi': string[];
|
|
160
|
+
'@stylistic/js/semi-spacing': (string | {
|
|
161
|
+
before: boolean;
|
|
162
|
+
after: boolean;
|
|
163
|
+
})[];
|
|
164
|
+
'@stylistic/js/semi-style': string[];
|
|
165
|
+
'@stylistic/js/space-before-blocks': string[];
|
|
166
|
+
'@stylistic/js/space-before-function-paren': (string | {
|
|
167
|
+
anonymous: string;
|
|
168
|
+
named: string;
|
|
169
|
+
asyncArrow: string;
|
|
170
|
+
})[];
|
|
171
|
+
'@stylistic/js/space-in-parens': string[];
|
|
172
|
+
'@stylistic/js/space-infix-ops': (string | {
|
|
173
|
+
int32Hint: boolean;
|
|
174
|
+
})[];
|
|
175
|
+
'@stylistic/js/space-unary-ops': (string | {
|
|
176
|
+
words: boolean;
|
|
177
|
+
nonwords: boolean;
|
|
178
|
+
})[];
|
|
179
|
+
'@stylistic/js/spaced-comment': (string | {
|
|
180
|
+
line: {
|
|
181
|
+
markers: string[];
|
|
182
|
+
};
|
|
183
|
+
})[];
|
|
184
|
+
'@stylistic/js/switch-colon-spacing': (string | {
|
|
185
|
+
after: boolean;
|
|
186
|
+
before: boolean;
|
|
187
|
+
})[];
|
|
188
|
+
'@stylistic/js/template-curly-spacing': string[];
|
|
189
|
+
'@stylistic/js/template-tag-spacing': string[];
|
|
190
|
+
'@stylistic/js/wrap-iife': string[];
|
|
191
|
+
'@stylistic/js/wrap-regex': string;
|
|
192
|
+
'@stylistic/js/yield-star-spacing': (string | {
|
|
193
|
+
before: boolean;
|
|
194
|
+
after: boolean;
|
|
195
|
+
})[];
|
|
196
|
+
};
|
|
197
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as eslintPluginStylisticJsx from '@stylistic/eslint-plugin-jsx';
|
|
2
|
+
export declare const stylisticJsxConfig: {
|
|
3
|
+
plugins: {
|
|
4
|
+
'@stylistic/jsx': typeof eslintPluginStylisticJsx;
|
|
5
|
+
};
|
|
6
|
+
rules: {
|
|
7
|
+
'@stylistic/jsx/jsx-child-element-spacing': string;
|
|
8
|
+
'@stylistic/jsx/jsx-closing-bracket-location': (string | {
|
|
9
|
+
selfClosing: string;
|
|
10
|
+
nonEmpty: string;
|
|
11
|
+
})[];
|
|
12
|
+
'@stylistic/jsx/jsx-closing-tag-location': string[];
|
|
13
|
+
'@stylistic/jsx/jsx-curly-brace-presence': (string | {
|
|
14
|
+
props: string;
|
|
15
|
+
children: string;
|
|
16
|
+
propElementValues: string;
|
|
17
|
+
})[];
|
|
18
|
+
'@stylistic/jsx/jsx-curly-newline': string[];
|
|
19
|
+
'@stylistic/jsx/jsx-curly-spacing': (string | {
|
|
20
|
+
when: string;
|
|
21
|
+
attributes: {
|
|
22
|
+
allowMultiline: boolean;
|
|
23
|
+
};
|
|
24
|
+
children: {
|
|
25
|
+
allowMultiline: boolean;
|
|
26
|
+
};
|
|
27
|
+
})[];
|
|
28
|
+
'@stylistic/jsx/jsx-equals-spacing': string[];
|
|
29
|
+
'@stylistic/jsx/jsx-first-prop-new-line': string[];
|
|
30
|
+
'@stylistic/jsx/jsx-function-call-newline': string[];
|
|
31
|
+
'@stylistic/jsx/jsx-indent': string;
|
|
32
|
+
'@stylistic/jsx/jsx-indent-props': (string | {
|
|
33
|
+
indentMode: number;
|
|
34
|
+
ignoreTernaryOperator: boolean;
|
|
35
|
+
})[];
|
|
36
|
+
'@stylistic/jsx/jsx-max-props-per-line': (string | {
|
|
37
|
+
maximum: number;
|
|
38
|
+
when: string;
|
|
39
|
+
})[];
|
|
40
|
+
'@stylistic/jsx/jsx-newline': string;
|
|
41
|
+
'@stylistic/jsx/jsx-one-expression-per-line': (string | {
|
|
42
|
+
allow: string;
|
|
43
|
+
})[];
|
|
44
|
+
'@stylistic/jsx/jsx-pascal-case': (string | {
|
|
45
|
+
allowAllCaps: boolean;
|
|
46
|
+
allowLeadingUnderscore: boolean;
|
|
47
|
+
allowNamespace: boolean;
|
|
48
|
+
ignore: never[];
|
|
49
|
+
})[];
|
|
50
|
+
'@stylistic/jsx/jsx-props-no-multi-spaces': string;
|
|
51
|
+
'@stylistic/jsx/jsx-self-closing-comp': (string | {
|
|
52
|
+
component: boolean;
|
|
53
|
+
html: boolean;
|
|
54
|
+
})[];
|
|
55
|
+
'@stylistic/jsx/jsx-sort-props': (string | {
|
|
56
|
+
ignoreCase: boolean;
|
|
57
|
+
callbacksLast: boolean;
|
|
58
|
+
shorthandFirst: boolean;
|
|
59
|
+
shorthandLast: boolean;
|
|
60
|
+
multiline: string;
|
|
61
|
+
noSortAlphabetically: boolean;
|
|
62
|
+
reservedFirst: boolean;
|
|
63
|
+
locale: string;
|
|
64
|
+
})[];
|
|
65
|
+
'@stylistic/jsx/jsx-tag-spacing': (string | {
|
|
66
|
+
closingSlash: string;
|
|
67
|
+
beforeSelfClosing: string;
|
|
68
|
+
afterOpening: string;
|
|
69
|
+
beforeClosing: string;
|
|
70
|
+
})[];
|
|
71
|
+
'@stylistic/jsx/jsx-wrap-multilines': (string | {
|
|
72
|
+
declaration: string;
|
|
73
|
+
assignment: string;
|
|
74
|
+
return: string;
|
|
75
|
+
arrow: string;
|
|
76
|
+
condition: string;
|
|
77
|
+
logical: string;
|
|
78
|
+
prop: string;
|
|
79
|
+
})[];
|
|
80
|
+
};
|
|
81
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as eslintPluginStylisticPlus from '@stylistic/eslint-plugin-plus';
|
|
2
|
+
export declare const stylisticPlusConfig: {
|
|
3
|
+
plugins: {
|
|
4
|
+
'@stylistic/plus': typeof eslintPluginStylisticPlus;
|
|
5
|
+
};
|
|
6
|
+
rules: {
|
|
7
|
+
'@stylistic/plus/curly-newline': (string | {
|
|
8
|
+
minElements: number;
|
|
9
|
+
})[];
|
|
10
|
+
'@stylistic/plus/indent-binary-ops': (string | number)[];
|
|
11
|
+
'@stylistic/plus/type-generic-spacing': string;
|
|
12
|
+
'@stylistic/plus/type-named-tuple-spacing': string;
|
|
13
|
+
};
|
|
14
|
+
};
|