@brybrant/eslint-config 1.0.3 → 1.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/dist/eslint.config.d.ts +2 -2
- package/dist/eslint.config.js +2 -3
- package/package.json +1 -1
package/dist/eslint.config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigWithExtends } from "@eslint/config-helpers";
|
|
1
|
+
import { ConfigObject, ConfigWithExtends } from "@eslint/config-helpers";
|
|
2
2
|
//#region eslint.config.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* ## ESLint Config Function
|
|
@@ -14,6 +14,6 @@ import { ConfigWithExtends } from "@eslint/config-helpers";
|
|
|
14
14
|
*
|
|
15
15
|
* @param configs - [ESLint config object(s)](https://eslint.org/docs/latest/use/configure/configuration-files#configuration-objects)
|
|
16
16
|
*/
|
|
17
|
-
declare const eslintConfig: (...configs: ConfigWithExtends[]) =>
|
|
17
|
+
declare const eslintConfig: (...configs: ConfigWithExtends[]) => ConfigObject[];
|
|
18
18
|
//#endregion
|
|
19
19
|
export { eslintConfig as default };
|
package/dist/eslint.config.js
CHANGED
|
@@ -9,7 +9,6 @@ import prettierConfig from "@brybrant/prettier-config";
|
|
|
9
9
|
/** https://typescript-eslint.io/rules/ */
|
|
10
10
|
const tseslintConfig = {
|
|
11
11
|
extends: tseslint.configs.strictTypeChecked,
|
|
12
|
-
files: ["./**/*.{ts,tsx,cts,mts}"],
|
|
13
12
|
languageOptions: {
|
|
14
13
|
parser: tseslint.parser,
|
|
15
14
|
globals: globals.nodeBuiltin,
|
|
@@ -18,7 +17,7 @@ const tseslintConfig = {
|
|
|
18
17
|
/** Required for rules which need type information */
|
|
19
18
|
projectService: true,
|
|
20
19
|
/** Root directory for relative TSConfig paths */
|
|
21
|
-
tsconfigRootDir:
|
|
20
|
+
tsconfigRootDir: process.cwd()
|
|
22
21
|
}
|
|
23
22
|
},
|
|
24
23
|
rules: { "@typescript-eslint/restrict-template-expressions": [1, {
|
|
@@ -80,7 +79,7 @@ const eslintConfig = (...configs) => {
|
|
|
80
79
|
tseslintConfig,
|
|
81
80
|
...configs,
|
|
82
81
|
{
|
|
83
|
-
files: ["./**/*.{js,ts,jsx,tsx,cjs,cts,mjs,mts}"],
|
|
82
|
+
files: ["./**/*.{js,ts,jsx,tsx,cjs,cts,mjs,mts,vue}"],
|
|
84
83
|
plugins: eslintPluginPrettier.plugins,
|
|
85
84
|
rules: {
|
|
86
85
|
...eslintPluginPrettier.rules,
|