@matrixai/lint 0.2.9 → 0.2.10
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.md +3 -3
- package/dist/configs/js.d.ts +63 -63
- package/dist/configs/js.js +140 -140
- package/dist/configs/prettier.config.d.mts +2 -14
- package/dist/configs/prettier.config.mjs +15 -13
- package/dist/configs/prettier.config.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,14 +108,14 @@ Valid config filenames:
|
|
|
108
108
|
|
|
109
109
|
```ts
|
|
110
110
|
// eslint.config.js
|
|
111
|
-
import matrixai from
|
|
111
|
+
import matrixai from '@matrixai/lint/config';
|
|
112
112
|
|
|
113
113
|
export default [
|
|
114
114
|
...matrixai,
|
|
115
115
|
{
|
|
116
116
|
rules: {
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
|
118
|
+
'no-console': 'off',
|
|
119
119
|
},
|
|
120
120
|
},
|
|
121
121
|
];
|
package/dist/configs/js.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { EcmaVersion } from
|
|
2
|
-
import tsParser from
|
|
1
|
+
import type { EcmaVersion } from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
import tsParser from '@typescript-eslint/parser';
|
|
3
3
|
declare const config: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | {
|
|
4
4
|
plugins: {
|
|
5
5
|
import: import("eslint").ESLint.Plugin;
|
|
6
|
-
|
|
6
|
+
'@matrixai': {
|
|
7
7
|
meta: {
|
|
8
8
|
name: string;
|
|
9
9
|
version: string;
|
|
@@ -825,7 +825,7 @@ declare const config: (import("eslint").Linter.Config<import("eslint").Linter.Ru
|
|
|
825
825
|
};
|
|
826
826
|
};
|
|
827
827
|
rules: {
|
|
828
|
-
|
|
828
|
+
'@matrixai/no-aliased-imports': (string | {
|
|
829
829
|
aliases: {
|
|
830
830
|
prefix: string;
|
|
831
831
|
target: string;
|
|
@@ -833,65 +833,65 @@ declare const config: (import("eslint").Linter.Config<import("eslint").Linter.Ru
|
|
|
833
833
|
includeFolders: string[];
|
|
834
834
|
autoFix: boolean;
|
|
835
835
|
})[];
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
836
|
+
'react/react-in-jsx-scope': number;
|
|
837
|
+
'react/no-unknown-property': string;
|
|
838
|
+
'react/button-has-type': string;
|
|
839
|
+
'react/no-unused-prop-types': string;
|
|
840
|
+
'react/jsx-pascal-case': string;
|
|
841
|
+
'react/jsx-no-script-url': string;
|
|
842
|
+
'react/no-children-prop': string;
|
|
843
|
+
'react/no-danger': string;
|
|
844
|
+
'react/no-danger-with-children': string;
|
|
845
|
+
'react/no-unstable-nested-components': (string | {
|
|
846
846
|
allowAsProps: boolean;
|
|
847
847
|
})[];
|
|
848
|
-
|
|
849
|
-
|
|
848
|
+
'react/jsx-fragments': string;
|
|
849
|
+
'react/destructuring-assignment': (string | {
|
|
850
850
|
destructureInSignature: string;
|
|
851
851
|
})[];
|
|
852
|
-
|
|
852
|
+
'react/jsx-no-leaked-render': (string | {
|
|
853
853
|
validStrategies: string[];
|
|
854
854
|
})[];
|
|
855
|
-
|
|
855
|
+
'react/function-component-definition': (string | {
|
|
856
856
|
namedComponents: string;
|
|
857
857
|
})[];
|
|
858
|
-
|
|
858
|
+
'react/jsx-key': (string | {
|
|
859
859
|
checkFragmentShorthand: boolean;
|
|
860
860
|
checkKeyMustBeforeSpread: boolean;
|
|
861
861
|
warnOnDuplicates: boolean;
|
|
862
862
|
})[];
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
863
|
+
'react/jsx-no-useless-fragment': string;
|
|
864
|
+
'react/jsx-curly-brace-presence': string;
|
|
865
|
+
'react/no-typos': string;
|
|
866
|
+
'react/display-name': string;
|
|
867
|
+
'react/jsx-sort-props': string;
|
|
868
|
+
'react/jsx-one-expression-per-line': string;
|
|
869
|
+
'react/prop-types': string;
|
|
870
|
+
'@typescript-eslint/no-floating-promises': (string | {
|
|
871
871
|
ignoreVoid: boolean;
|
|
872
872
|
ignoreIIFE: boolean;
|
|
873
873
|
})[];
|
|
874
|
-
|
|
874
|
+
'@typescript-eslint/no-misused-promises': (string | {
|
|
875
875
|
checksVoidReturn: boolean;
|
|
876
876
|
})[];
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
877
|
+
'@typescript-eslint/await-thenable': string[];
|
|
878
|
+
'@typescript-eslint/no-empty-object-type': string;
|
|
879
|
+
'@typescript-eslint/no-unsafe-declaration-merging': string;
|
|
880
|
+
'linebreak-style': string[];
|
|
881
|
+
'no-empty': number;
|
|
882
|
+
'no-useless-catch': number;
|
|
883
|
+
'no-prototype-builtins': number;
|
|
884
|
+
'no-constant-condition': number;
|
|
885
|
+
'no-useless-escape': number;
|
|
886
|
+
'no-console': string;
|
|
887
|
+
'no-restricted-globals': (string | {
|
|
888
888
|
name: string;
|
|
889
889
|
message: string;
|
|
890
890
|
})[];
|
|
891
|
-
|
|
892
|
-
|
|
891
|
+
'prefer-rest-params': number;
|
|
892
|
+
'require-yield': number;
|
|
893
893
|
eqeqeq: string[];
|
|
894
|
-
|
|
894
|
+
'spaced-comment': (string | {
|
|
895
895
|
line: {
|
|
896
896
|
exceptions: string[];
|
|
897
897
|
};
|
|
@@ -900,39 +900,39 @@ declare const config: (import("eslint").Linter.Config<import("eslint").Linter.Ru
|
|
|
900
900
|
};
|
|
901
901
|
markers: string[];
|
|
902
902
|
})[];
|
|
903
|
-
|
|
903
|
+
'capitalized-comments': (string | {
|
|
904
904
|
ignoreInlineComments: boolean;
|
|
905
905
|
ignoreConsecutiveComments: boolean;
|
|
906
906
|
})[];
|
|
907
907
|
curly: string[];
|
|
908
|
-
|
|
908
|
+
'import/order': (string | {
|
|
909
909
|
groups: string[];
|
|
910
910
|
pathGroups: {
|
|
911
911
|
pattern: string;
|
|
912
912
|
group: string;
|
|
913
913
|
}[];
|
|
914
914
|
pathGroupsExcludedImportTypes: string[];
|
|
915
|
-
|
|
915
|
+
'newlines-between': string;
|
|
916
916
|
})[];
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
917
|
+
'@typescript-eslint/no-require-imports': number;
|
|
918
|
+
'@typescript-eslint/no-namespace': number;
|
|
919
|
+
'@typescript-eslint/no-explicit-any': number;
|
|
920
|
+
'@typescript-eslint/explicit-module-boundary-types': number;
|
|
921
|
+
'@typescript-eslint/no-unused-vars': (string | {
|
|
922
922
|
varsIgnorePattern: string;
|
|
923
923
|
argsIgnorePattern: string;
|
|
924
924
|
})[];
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
925
|
+
'@typescript-eslint/no-inferrable-types': number;
|
|
926
|
+
'@typescript-eslint/no-non-null-assertion': number;
|
|
927
|
+
'@typescript-eslint/no-this-alias': number;
|
|
928
|
+
'@typescript-eslint/no-var-requires': number;
|
|
929
|
+
'@typescript-eslint/no-empty-function': number;
|
|
930
|
+
'@typescript-eslint/no-empty-interface': number;
|
|
931
|
+
'@typescript-eslint/consistent-type-imports': string[];
|
|
932
|
+
'@typescript-eslint/consistent-type-exports': string[];
|
|
933
|
+
'no-throw-literal': string;
|
|
934
|
+
'@typescript-eslint/no-throw-literal': string;
|
|
935
|
+
'@typescript-eslint/naming-convention': (string | {
|
|
936
936
|
selector: string;
|
|
937
937
|
format: string[];
|
|
938
938
|
leadingUnderscore: string;
|
|
@@ -953,8 +953,8 @@ declare const config: (import("eslint").Linter.Config<import("eslint").Linter.Ru
|
|
|
953
953
|
leadingUnderscore?: undefined;
|
|
954
954
|
trailingUnderscore?: undefined;
|
|
955
955
|
})[];
|
|
956
|
-
|
|
957
|
-
|
|
956
|
+
'@typescript-eslint/ban-ts-comment': (string | {
|
|
957
|
+
'ts-ignore': string;
|
|
958
958
|
})[];
|
|
959
959
|
};
|
|
960
960
|
})[];
|
package/dist/configs/js.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import path from
|
|
2
|
-
import { fileURLToPath } from
|
|
3
|
-
import globals from
|
|
4
|
-
import _import from
|
|
5
|
-
import js from
|
|
6
|
-
import tsParser from
|
|
7
|
-
import { FlatCompat } from
|
|
8
|
-
import { fixupPluginRules } from
|
|
9
|
-
import matrixaiPlugin from
|
|
10
|
-
import { resolveMatrixConfig } from
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { fileURLToPath } from 'node:url';
|
|
3
|
+
import globals from 'globals';
|
|
4
|
+
import _import from 'eslint-plugin-import';
|
|
5
|
+
import js from '@eslint/js';
|
|
6
|
+
import tsParser from '@typescript-eslint/parser';
|
|
7
|
+
import { FlatCompat } from '@eslint/eslintrc';
|
|
8
|
+
import { fixupPluginRules } from '@eslint/compat';
|
|
9
|
+
import matrixaiPlugin from '../plugins/eslint-plugin-matrixai.js';
|
|
10
|
+
import { resolveMatrixConfig } from '../utils.js';
|
|
11
11
|
const filename = fileURLToPath(import.meta.url);
|
|
12
12
|
const dirname = path.dirname(filename);
|
|
13
13
|
const compat = new FlatCompat({
|
|
@@ -16,15 +16,15 @@ const compat = new FlatCompat({
|
|
|
16
16
|
allConfig: js.configs.all,
|
|
17
17
|
});
|
|
18
18
|
const config = [
|
|
19
|
-
...compat.extends(
|
|
19
|
+
...compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'plugin:react/recommended', 'plugin:react-hooks/recommended', 'plugin:tailwindcss/recommended', 'plugin:jsx-a11y/recommended'),
|
|
20
20
|
{
|
|
21
21
|
plugins: {
|
|
22
22
|
import: fixupPluginRules(_import),
|
|
23
|
-
|
|
23
|
+
'@matrixai': matrixaiPlugin,
|
|
24
24
|
},
|
|
25
25
|
settings: {
|
|
26
26
|
react: {
|
|
27
|
-
version:
|
|
27
|
+
version: 'detect',
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
30
|
languageOptions: {
|
|
@@ -36,207 +36,207 @@ const config = [
|
|
|
36
36
|
},
|
|
37
37
|
parser: tsParser,
|
|
38
38
|
ecmaVersion: 5,
|
|
39
|
-
sourceType:
|
|
39
|
+
sourceType: 'module',
|
|
40
40
|
parserOptions: {
|
|
41
41
|
project: resolveMatrixConfig().tsconfigPaths,
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
44
|
rules: {
|
|
45
45
|
// MatrixAI rules
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
'@matrixai/no-aliased-imports': [
|
|
47
|
+
'error',
|
|
48
48
|
{
|
|
49
|
-
aliases: [{ prefix:
|
|
50
|
-
includeFolders: [
|
|
49
|
+
aliases: [{ prefix: '#', target: 'src' }],
|
|
50
|
+
includeFolders: ['src'],
|
|
51
51
|
autoFix: true,
|
|
52
52
|
},
|
|
53
53
|
],
|
|
54
54
|
// React rules
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
{ destructureInSignature:
|
|
55
|
+
'react/react-in-jsx-scope': 0,
|
|
56
|
+
'react/no-unknown-property': 'off',
|
|
57
|
+
'react/button-has-type': 'error',
|
|
58
|
+
'react/no-unused-prop-types': 'error',
|
|
59
|
+
'react/jsx-pascal-case': 'error',
|
|
60
|
+
'react/jsx-no-script-url': 'error',
|
|
61
|
+
'react/no-children-prop': 'error',
|
|
62
|
+
'react/no-danger': 'error',
|
|
63
|
+
'react/no-danger-with-children': 'error',
|
|
64
|
+
'react/no-unstable-nested-components': ['error', { allowAsProps: true }],
|
|
65
|
+
'react/jsx-fragments': 'error',
|
|
66
|
+
'react/destructuring-assignment': [
|
|
67
|
+
'error',
|
|
68
|
+
'always',
|
|
69
|
+
{ destructureInSignature: 'always' },
|
|
70
70
|
],
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
{ namedComponents:
|
|
71
|
+
'react/jsx-no-leaked-render': ['error', { validStrategies: ['ternary'] }],
|
|
72
|
+
'react/function-component-definition': [
|
|
73
|
+
'warn',
|
|
74
|
+
{ namedComponents: 'arrow-function' },
|
|
75
75
|
],
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
'react/jsx-key': [
|
|
77
|
+
'error',
|
|
78
78
|
{
|
|
79
79
|
checkFragmentShorthand: true,
|
|
80
80
|
checkKeyMustBeforeSpread: true,
|
|
81
81
|
warnOnDuplicates: true,
|
|
82
82
|
},
|
|
83
83
|
],
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
84
|
+
'react/jsx-no-useless-fragment': 'warn',
|
|
85
|
+
'react/jsx-curly-brace-presence': 'warn',
|
|
86
|
+
'react/no-typos': 'warn',
|
|
87
|
+
'react/display-name': 'warn',
|
|
88
|
+
'react/jsx-sort-props': 'warn',
|
|
89
|
+
'react/jsx-one-expression-per-line': 'off',
|
|
90
|
+
'react/prop-types': 'off',
|
|
91
|
+
'@typescript-eslint/no-floating-promises': [
|
|
92
|
+
'error',
|
|
93
93
|
{
|
|
94
94
|
ignoreVoid: true,
|
|
95
95
|
ignoreIIFE: true,
|
|
96
96
|
},
|
|
97
97
|
],
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
'@typescript-eslint/no-misused-promises': [
|
|
99
|
+
'error',
|
|
100
100
|
{
|
|
101
101
|
checksVoidReturn: false,
|
|
102
102
|
},
|
|
103
103
|
],
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
{
|
|
117
|
-
name:
|
|
118
|
-
message:
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
name:
|
|
122
|
-
message:
|
|
104
|
+
'@typescript-eslint/await-thenable': ['error'],
|
|
105
|
+
'@typescript-eslint/no-empty-object-type': 'off',
|
|
106
|
+
'@typescript-eslint/no-unsafe-declaration-merging': 'off',
|
|
107
|
+
'linebreak-style': ['error', 'unix'],
|
|
108
|
+
'no-empty': 1,
|
|
109
|
+
'no-useless-catch': 1,
|
|
110
|
+
'no-prototype-builtins': 1,
|
|
111
|
+
'no-constant-condition': 0,
|
|
112
|
+
'no-useless-escape': 0,
|
|
113
|
+
'no-console': 'error',
|
|
114
|
+
'no-restricted-globals': [
|
|
115
|
+
'error',
|
|
116
|
+
{
|
|
117
|
+
name: 'global',
|
|
118
|
+
message: 'Use `globalThis` instead',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: 'window',
|
|
122
|
+
message: 'Use `globalThis` instead',
|
|
123
123
|
},
|
|
124
124
|
],
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
eqeqeq: [
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
'prefer-rest-params': 0,
|
|
126
|
+
'require-yield': 0,
|
|
127
|
+
eqeqeq: ['error', 'smart'],
|
|
128
|
+
'spaced-comment': [
|
|
129
|
+
'warn',
|
|
130
|
+
'always',
|
|
131
131
|
{
|
|
132
132
|
line: {
|
|
133
|
-
exceptions: [
|
|
133
|
+
exceptions: ['-'],
|
|
134
134
|
},
|
|
135
135
|
block: {
|
|
136
|
-
exceptions: [
|
|
136
|
+
exceptions: ['*'],
|
|
137
137
|
},
|
|
138
|
-
markers: [
|
|
138
|
+
markers: ['/'],
|
|
139
139
|
},
|
|
140
140
|
],
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
'capitalized-comments': [
|
|
142
|
+
'warn',
|
|
143
|
+
'always',
|
|
144
144
|
{
|
|
145
145
|
ignoreInlineComments: true,
|
|
146
146
|
ignoreConsecutiveComments: true,
|
|
147
147
|
},
|
|
148
148
|
],
|
|
149
|
-
curly: [
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
curly: ['error', 'multi-line', 'consistent'],
|
|
150
|
+
'import/order': [
|
|
151
|
+
'error',
|
|
152
152
|
{
|
|
153
153
|
groups: [
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
154
|
+
'type',
|
|
155
|
+
'builtin',
|
|
156
|
+
'external',
|
|
157
|
+
'internal',
|
|
158
|
+
'index',
|
|
159
|
+
'sibling',
|
|
160
|
+
'parent',
|
|
161
|
+
'object',
|
|
162
162
|
],
|
|
163
163
|
pathGroups: [
|
|
164
164
|
{
|
|
165
|
-
pattern:
|
|
166
|
-
group:
|
|
165
|
+
pattern: '@',
|
|
166
|
+
group: 'internal',
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
|
-
pattern:
|
|
170
|
-
group:
|
|
169
|
+
pattern: '@/**',
|
|
170
|
+
group: 'internal',
|
|
171
171
|
},
|
|
172
172
|
],
|
|
173
|
-
pathGroupsExcludedImportTypes: [
|
|
174
|
-
|
|
173
|
+
pathGroupsExcludedImportTypes: ['type'],
|
|
174
|
+
'newlines-between': 'never',
|
|
175
175
|
},
|
|
176
176
|
],
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
177
|
+
'@typescript-eslint/no-require-imports': 0,
|
|
178
|
+
'@typescript-eslint/no-namespace': 0,
|
|
179
|
+
'@typescript-eslint/no-explicit-any': 0,
|
|
180
|
+
'@typescript-eslint/explicit-module-boundary-types': 0,
|
|
181
|
+
'@typescript-eslint/no-unused-vars': [
|
|
182
|
+
'warn',
|
|
183
183
|
{
|
|
184
|
-
varsIgnorePattern:
|
|
185
|
-
argsIgnorePattern:
|
|
184
|
+
varsIgnorePattern: '^_',
|
|
185
|
+
argsIgnorePattern: '^_',
|
|
186
186
|
},
|
|
187
187
|
],
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
188
|
+
'@typescript-eslint/no-inferrable-types': 0,
|
|
189
|
+
'@typescript-eslint/no-non-null-assertion': 0,
|
|
190
|
+
'@typescript-eslint/no-this-alias': 0,
|
|
191
|
+
'@typescript-eslint/no-var-requires': 0,
|
|
192
|
+
'@typescript-eslint/no-empty-function': 0,
|
|
193
|
+
'@typescript-eslint/no-empty-interface': 0,
|
|
194
|
+
'@typescript-eslint/consistent-type-imports': ['error'],
|
|
195
|
+
'@typescript-eslint/consistent-type-exports': ['error'],
|
|
196
|
+
'no-throw-literal': 'off',
|
|
197
|
+
'@typescript-eslint/no-throw-literal': 'off',
|
|
198
|
+
'@typescript-eslint/naming-convention': [
|
|
199
|
+
'error',
|
|
200
200
|
{
|
|
201
|
-
selector:
|
|
202
|
-
format: [
|
|
203
|
-
leadingUnderscore:
|
|
204
|
-
trailingUnderscore:
|
|
201
|
+
selector: 'function',
|
|
202
|
+
format: ['camelCase', 'PascalCase'],
|
|
203
|
+
leadingUnderscore: 'allow',
|
|
204
|
+
trailingUnderscore: 'allowSingleOrDouble',
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
|
-
selector:
|
|
208
|
-
format: [
|
|
209
|
-
leadingUnderscore:
|
|
210
|
-
trailingUnderscore:
|
|
207
|
+
selector: 'variable',
|
|
208
|
+
format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
|
|
209
|
+
leadingUnderscore: 'allow',
|
|
210
|
+
trailingUnderscore: 'allowSingleOrDouble',
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
selector:
|
|
214
|
-
format: [
|
|
215
|
-
leadingUnderscore:
|
|
216
|
-
trailingUnderscore:
|
|
213
|
+
selector: 'parameter',
|
|
214
|
+
format: ['camelCase'],
|
|
215
|
+
leadingUnderscore: 'allow',
|
|
216
|
+
trailingUnderscore: 'allowSingleOrDouble',
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
|
-
selector:
|
|
220
|
-
format: [
|
|
221
|
-
trailingUnderscore:
|
|
219
|
+
selector: 'typeLike',
|
|
220
|
+
format: ['PascalCase'],
|
|
221
|
+
trailingUnderscore: 'allowSingleOrDouble',
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
|
-
selector:
|
|
225
|
-
format: [
|
|
224
|
+
selector: 'enumMember',
|
|
225
|
+
format: ['PascalCase', 'UPPER_CASE'],
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
|
-
selector:
|
|
228
|
+
selector: 'objectLiteralProperty',
|
|
229
229
|
format: null,
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
|
-
selector:
|
|
232
|
+
selector: 'typeProperty',
|
|
233
233
|
format: null,
|
|
234
234
|
},
|
|
235
235
|
],
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
'@typescript-eslint/ban-ts-comment': [
|
|
237
|
+
'error',
|
|
238
238
|
{
|
|
239
|
-
|
|
239
|
+
'ts-ignore': 'allow-with-description',
|
|
240
240
|
},
|
|
241
241
|
],
|
|
242
242
|
},
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export const trailingComma: "all";
|
|
4
|
-
export const singleQuote: true;
|
|
5
|
-
export const printWidth: 80;
|
|
6
|
-
export const tabWidth: 2;
|
|
7
|
-
export const useTabs: false;
|
|
8
|
-
export const endOfLine: "lf";
|
|
9
|
-
export const overrides: {
|
|
10
|
-
files: string[];
|
|
11
|
-
options: {
|
|
12
|
-
proseWrap: string;
|
|
13
|
-
};
|
|
14
|
-
}[];
|
|
1
|
+
declare const _default: import('prettier').Config;
|
|
2
|
+
export default _default;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
/** @type {import('prettier').Config} */
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
export default {
|
|
3
|
+
semi: true,
|
|
4
|
+
trailingComma: 'all',
|
|
5
|
+
singleQuote: true,
|
|
6
|
+
printWidth: 80,
|
|
7
|
+
tabWidth: 2,
|
|
8
|
+
useTabs: false,
|
|
9
|
+
endOfLine: 'lf',
|
|
10
|
+
overrides: [
|
|
11
|
+
{
|
|
12
|
+
files: ['*.md', '*.mdx'],
|
|
13
|
+
options: { proseWrap: 'always' },
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
};
|
|
15
17
|
//# sourceMappingURL=prettier.config.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.config.mjs","sourceRoot":"","sources":["../../src/configs/prettier.config.mjs"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"prettier.config.mjs","sourceRoot":"","sources":["../../src/configs/prettier.config.mjs"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,eAAe;IACb,IAAI,EAAE,IAAI;IACV,aAAa,EAAE,KAAK;IACpB,WAAW,EAAE,IAAI;IACjB,UAAU,EAAE,EAAE;IACd,QAAQ,EAAE,CAAC;IACX,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE;QACT;YACE,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;YACxB,OAAO,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE;SACjC;KACF;CACF,CAAC"}
|