mirror of
https://github.com/Modernizr/Modernizr.git
synced 2026-01-06 22:33:53 -05:00
* 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
36 lines
914 B
Plaintext
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"
|
|
}
|
|
}
|