Files
Modernizr/.eslintrc
Veeck 1e8f100f20 Update computedStyle usage (#2528)
* Fix getComputedStyle eslint rule

* Add TODO for ruby

* Use computed style in ruby test

* Use 3rd parameter in computedStyle

* Fix computedStyle usage

* Remove useless checks

* Update dependencies
2020-04-26 22:29:14 +02:00

36 lines
914 B
Plaintext

{
"extends": ["eslint:recommended", "plugin:jsdoc/recommended"],
"env": {
"amd": true,
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"globals": {
"DocumentTouch": true,
"Modernizr": true,
"requirejs": true,
"expect": true,
"$": true,
"_": true
},
"plugins": [
"jsdoc"
],
"rules": {
"getter-return": ["error", { "allowImplicit": true }],
"jsdoc/check-tag-names": ["error", { "definedTags": ["memberOf", "optionName", "optionProp"] }],
"jsdoc/require-jsdoc": "off",
"no-empty": "off",
"no-prototype-builtins": "off",
"no-restricted-syntax": ["error",
{
"selector": "CallExpression[callee.object.name='window'][callee.property.name='getComputedStyle']",
"message": "Do not use `getComputedStyle`, import and use the `computedStyle` helper"
}
],
"no-useless-escape": "off"
}
}