Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[dev-2.0] style: fix eslint warnings#8055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
sevenc-nanashi wants to merge5 commits intoprocessing:dev-2.0
base:dev-2.0
Choose a base branch
Loading
fromsevenc-nanashi:v2/style/format-utils
Open
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
style: fix eslint warnings
  • Loading branch information
@sevenc-nanashi
sevenc-nanashi committedAug 26, 2025
commit94eb5fad61729df0389e38fd453d836a19705d5a
4 changes: 4 additions & 0 deletionsdocs/parameterData.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4655,6 +4655,10 @@
},
"modify": {
"overloads": [
[
"Function",
"Object?"
],
Comment on lines +4658 to +4661

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

parameterData.json might be out of date. I think it's nice to have a CI that checks parameterData.json is up-to-date.

[
"Object?"
]
Expand Down
4 changes: 2 additions & 2 deletionseslint.config.mjs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -80,7 +80,7 @@ const commonRules = {
'@stylistic/max-len': [
warn,
{
code:80,
code:120,
ignoreComments: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
Expand DownExpand Up@@ -272,4 +272,4 @@ export default defineConfig([
// * contributor_docs/zh-Hans/unit_testing.md 35:1 error Parsing error: Unexpected token
// * rfc_p5js_2.md 205:50 error Parsing error: Binding arguments in strict mode
// ...markdown.configs.processor
]);
]);
10 changes: 5 additions & 5 deletionsutils/convert.mjs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -232,11 +232,11 @@ function getParams(entry) {
// string, so we match these params to the Documentation.js-provided `params`
// array and grab the description from those.
return (entry.tags || [])

// Filter out the nested parameters (eg. options.extrude),
// to be treated as part of parent parameters (eg. options)
// and not separate entries
.filter(t => t.title === 'param' && !t.name.includes('.'))
.filter(t => t.title === 'param' && !t.name.includes('.'))
.map(node => {
const param = (entry.params || []).find(param => param.name === node.name);
return {
Expand DownExpand Up@@ -522,7 +522,7 @@ function cleanUpClassItems(data) {
return Object.values(overload.params).map(param => processParam(param));
}
return overload;
}
};

// To simplify `parameterData.json`, instead of having a separate field for
// optional parameters, we'll add a ? to the end of parameter type to
Expand All@@ -536,7 +536,7 @@ function cleanUpClassItems(data) {
type = `...${type}[]`;
}
return type;
}
};

// In some cases, even when the arguments are intended to mean different
// things, their types and order are identical. Since the exact meaning
Expand All@@ -549,7 +549,7 @@ function cleanUpClassItems(data) {
}
uniqueOverloads.add(overloadString);
return true;
}
};

for (const [key, value] of Object.entries(funcObj)) {
if (value && typeof value === 'object' && value.overloads) {
Expand Down
6 changes: 3 additions & 3 deletionsutils/generate-types.mjs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,7 +3,7 @@ import path from 'path';
import { fileURLToPath } from 'url';
import {
generateTypeDefinitions
} from"./helper.mjs";
} from'./helper.mjs';

// Fix for __dirname equivalent in ES modules
const __filename = fileURLToPath(import.meta.url);
Expand All@@ -19,7 +19,7 @@ function findDtsFiles(dir, files = []) {
}

const entries = fs.readdirSync(dir, { withFileTypes: true });

for (const entry of entries) {
const fullPath = path.join(dir, entry.name);
if (entry.isDirectory()) {
Expand All@@ -44,7 +44,7 @@ export function generateAllDeclarationFiles() {
fileTypes.forEach((content, filePath) => {
const parsedPath = path.parse(filePath);
const relativePath = path.relative(
path.join(__dirname,"../src"),
path.join(__dirname,'../src'),
filePath
);
const dtsPath = path.join(
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp