@ethang/eslint-config 15.0.0 → 15.0.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.md +1 -1
- package/build.mjs +1 -4
- package/eslint.config.js +5 -0
- package/package.json +2 -2
- package/index.js +0 -23
package/README.md
CHANGED
package/build.mjs
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-unsafe-call
|
|
3
|
-
import * as fs from "node:fs";
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
4
3
|
import { projectBuilder } from "@ethang/project-builder/project-builder.js";
|
|
5
4
|
|
|
6
|
-
fs.copyFileSync("index.js", "eslint.config.js");
|
|
7
|
-
|
|
8
5
|
await projectBuilder("eslint-config-ethang", "master", {
|
|
9
6
|
isLibrary: true,
|
|
10
7
|
postVersionBumpScripts: ["DEDUPE", "LINT"],
|
package/eslint.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethang/eslint-config",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
7
|
-
"main": "
|
|
7
|
+
"main": "eslint.config.js",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"lint": "eslint --fix",
|
|
10
10
|
"build": "node build.mjs"
|
package/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call */
|
|
2
|
-
import eslint from "@eslint/js";
|
|
3
|
-
import eslintConfigPrettier from "eslint-config-prettier";
|
|
4
|
-
import eslintPluginPrettier from "eslint-plugin-prettier/recommended";
|
|
5
|
-
import eslintPluginUnicorn from "eslint-plugin-unicorn";
|
|
6
|
-
import tseslint from "typescript-eslint";
|
|
7
|
-
|
|
8
|
-
export default tseslint.config(
|
|
9
|
-
eslint.configs.all,
|
|
10
|
-
...tseslint.configs.strictTypeChecked,
|
|
11
|
-
...tseslint.configs.stylisticTypeChecked,
|
|
12
|
-
eslintPluginUnicorn.configs["flat/all"],
|
|
13
|
-
eslintConfigPrettier,
|
|
14
|
-
eslintPluginPrettier,
|
|
15
|
-
{
|
|
16
|
-
languageOptions: {
|
|
17
|
-
parserOptions: {
|
|
18
|
-
project: true,
|
|
19
|
-
tsconfigRootDir: import.meta.dirname,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
);
|