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