bf5129adc1
In addition to the changes in this commit, gjs now restricts the use of the Format module and initFormat. We can't really replace those for translatable strings until xgettext gains support for template strings, so leave that bit out for now. The other notable change is that gjs now requires jsdoc comments. We can't plainly enable those options without a massive amount of work first, but let's see how requiring doc comments for new code goes. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1949>
29 lines
765 B
YAML
29 lines
765 B
YAML
rules:
|
|
eqeqeq: off
|
|
indent:
|
|
- error
|
|
- 4
|
|
- ignoredNodes:
|
|
- 'CallExpression[callee.object.name=GObject][callee.property.name=registerClass] > ClassExpression:first-child'
|
|
CallExpression:
|
|
arguments: first
|
|
ArrayExpression: first
|
|
ObjectExpression: first
|
|
MemberExpression: off
|
|
jsdoc/check-alignment: off
|
|
jsdoc/check-param-names: off
|
|
jsdoc/check-tag-names: off
|
|
jsdoc/check-types: off
|
|
jsdoc/implements-on-classes: off
|
|
jsdoc/newline-after-description: off
|
|
jsdoc/require-jsdoc: off
|
|
jsdoc/require-param: off
|
|
jsdoc/require-param-description: off
|
|
jsdoc/require-param-name: off
|
|
jsdoc/require-param-type: off
|
|
object-curly-newline:
|
|
- error
|
|
- consistent: true
|
|
prefer-template: off
|
|
quotes: off
|