Skip to content

Commit

Permalink
chore: Edited configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
iliubinskii committed Jul 18, 2024
1 parent 570a8da commit 22540bb
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 66 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ const config = {
"import/no-commonjs": "off"
}
},
{
files: "*.js",
rules: { "@typescript-eslint/explicit-function-return-type": "off" }
},
{
files: "*.mjs",
rules: { "@typescript-eslint/explicit-function-return-type": "off" }
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout master branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: master
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: lts/*
- name: Install dependencies
run: npm install
- name: Publish to npm
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
86 changes: 43 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@
"@types/minimatch": "^5",
"@types/natural-compare": "^1",
"javascript-stringify": "^2",
"lodash-commonjs-es": "^1",
"lodash-commonjs-es": "^1.1.0",
"minimatch": "^9",
"natural-compare": "^1",
"tslib": "^2",
"tsutils": "^3",
"typescript-misc": "^1"
"typescript-misc": "^1.2.0"
},
"devDependencies": {
"@commitlint/cli": "^19",
Expand Down Expand Up @@ -101,7 +101,7 @@
"eslint-plugin-jest": "^28",
"eslint-plugin-jest-extended": "^2",
"eslint-plugin-jsdoc": "^48",
"eslint-plugin-misc": "^3",
"eslint-plugin-misc": "^3.1.0",
"eslint-plugin-n": "^16",
"eslint-plugin-no-type-assertion": "^1",
"eslint-plugin-no-use-extend-native": "^0.5",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"incremental": true,
"isolatedModules": true,
"jsx": "preserve",
"lib": ["DOM", "ES2022"],
"lib": ["ES2022"],
"module": "ES2022",
"moduleResolution": "Node10",
"newLine": "lf",
Expand All @@ -28,7 +28,7 @@
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist",
"outDir": "temp",
"paths": {
"@": ["./src"],
"@/*": ["./src/*"]
Expand Down
21 changes: 7 additions & 14 deletions utils/build-doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,13 @@ const templates = {
} as const;

const documentedRules = o.entries(
o.sort(
o.omit(
rules,
(_rule, name) =>
name.startsWith("project-chore/") || name.startsWith("typescript-misc/")
),
(_value1, _value2, key1, key2) => {
if (key1.includes("/") && !key2.includes("/")) return 1;

if (key2.includes("/") && !key1.includes("/")) return -1;

return key1.localeCompare(key2);
}
)
o.sort(rules, (_value1, _value2, key1, key2) => {
if (key1.includes("/") && !key2.includes("/")) return 1;

if (key2.includes("/") && !key1.includes("/")) return -1;

return key1.localeCompare(key2);
})
);

const customChecks = new ReadonlySet([
Expand Down

0 comments on commit 22540bb

Please sign in to comment.