We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Idea is use ESLint's no-restricted-syntax for that.
See also #87
The text was updated successfully, but these errors were encountered:
Gio-2.0.Cancellable.connect
Here is an implementation for the rule targetting Gio.Cancellable.connect:
Gio.Cancellable.connect
{ "eslintConfig": { "env": { "node": false, "es2021": true, "browser": false, "commonjs": false, "shared-node-browser": false }, "rules": { "no-restricted-syntax": [ "warn", { "selector": "CallExpression[callee.property.name='connect'][arguments.length=2][arguments.0.value='cancelled'][arguments.1.type='FunctionExpression']", "message": "Calling .connect('cancelled', () => {}) on Gio.Cancellable instances is wrong, see https://gjs-docs.gnome.org/gio20~2.66p/gio.cancellable#method-connect" }, { "selector": "CallExpression[callee.property.name='connect'][arguments.length=2][arguments.0.value='cancelled'][arguments.1.type='ArrowFunctionExpression']", "message": "Calling .connect('cancelled', () => {}) on Gio.Cancellable instances is wrong, see https://gjs-docs.gnome.org/gio20~2.66p/gio.cancellable#method-connect" } ] } }
This issue should depend on #94, right?
Sorry, something went wrong.
@HeavenVolkoff We do not need to depend this on #94, I think we can just add the option to generate a eslint config. Or what do you think?
No branches or pull requests
The Idea is use ESLint's no-restricted-syntax for that.
See also #87
The text was updated successfully, but these errors were encountered: