@egy186/eslint-config 1.1.0 → 1.2.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/dist/typescript.d.ts +8 -3
- package/dist/typescript.js +7 -2
- package/package.json +1 -1
package/dist/typescript.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { ESLint, Linter } from 'eslint';
|
|
2
|
+
import type { configs } from 'typescript-eslint';
|
|
3
|
+
type ParserOptions = NonNullable<(NonNullable<typeof configs.base.languageOptions>)['parserOptions']>;
|
|
2
4
|
declare const config: {
|
|
3
5
|
readonly files: ["**/*.{ts,tsx,mts,cts}"];
|
|
4
6
|
readonly languageOptions: {
|
|
@@ -175,6 +177,11 @@ declare const config: {
|
|
|
175
177
|
readonly 'consistent-return': "off";
|
|
176
178
|
readonly 'default-param-last': "off";
|
|
177
179
|
readonly 'dot-notation': "off";
|
|
180
|
+
readonly 'import/default': "off";
|
|
181
|
+
readonly 'import/named': "off";
|
|
182
|
+
readonly 'import/namespace': "off";
|
|
183
|
+
readonly 'import/no-named-as-default-member': "off";
|
|
184
|
+
readonly 'import/no-unresolved': "off";
|
|
178
185
|
readonly 'init-declarations': "off";
|
|
179
186
|
readonly 'max-params': "off";
|
|
180
187
|
readonly 'no-array-constructor': "off";
|
|
@@ -207,8 +214,6 @@ declare const config: {
|
|
|
207
214
|
};
|
|
208
215
|
};
|
|
209
216
|
};
|
|
210
|
-
declare const typescriptConfig: (parserOptions:
|
|
211
|
-
project: readonly string[] | boolean | string;
|
|
212
|
-
}>) => Linter.FlatConfig;
|
|
217
|
+
declare const typescriptConfig: (parserOptions: ParserOptions) => Linter.FlatConfig;
|
|
213
218
|
export { config as typescript, typescriptConfig };
|
|
214
219
|
export default config;
|
package/dist/typescript.js
CHANGED
|
@@ -179,6 +179,11 @@ const config = {
|
|
|
179
179
|
'consistent-return': 'off',
|
|
180
180
|
'default-param-last': 'off',
|
|
181
181
|
'dot-notation': 'off',
|
|
182
|
+
'import/default': 'off',
|
|
183
|
+
'import/named': 'off',
|
|
184
|
+
'import/namespace': 'off',
|
|
185
|
+
'import/no-named-as-default-member': 'off',
|
|
186
|
+
'import/no-unresolved': 'off',
|
|
182
187
|
'init-declarations': 'off',
|
|
183
188
|
'max-params': 'off',
|
|
184
189
|
'no-array-constructor': 'off',
|
|
@@ -222,13 +227,13 @@ const config = {
|
|
|
222
227
|
}
|
|
223
228
|
}
|
|
224
229
|
};
|
|
230
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
225
231
|
const typescriptConfig = (parserOptions) => ({
|
|
226
232
|
...config,
|
|
227
233
|
languageOptions: {
|
|
228
234
|
...config.languageOptions,
|
|
229
235
|
parserOptions: {
|
|
230
|
-
|
|
231
|
-
projectService: false,
|
|
236
|
+
sourceType: 'module',
|
|
232
237
|
...parserOptions
|
|
233
238
|
}
|
|
234
239
|
}
|