browsh/.eslintrc
Thomas Buckley-Houston be2b961cfe Sample text colour using monochar block font trick
Using JS's `getComputedStyle()` for every character is too CPU
intensive, so instead I'm experimenting with using a custom font
to take the canvas snapshot. The font is made up of only the unicode
block character, which basically fills the entire space given to a
monospace glyph. This also means that we can fairly reliably work out
the visibility (whether it's obscured or hidden with CSS) of text.
2018-01-01 22:10:10 +08:00

22 lines
393 B
Plaintext

{
"env" : {
"node" : true,
"browser" : true,
"webextensions": true,
"mocha": true
},
"globals": {
"DEVELOPMENT": true,
"PRODUCTION": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"extends": "eslint:recommended",
"rules": {
"no-console": 0,
"no-unused-vars": [2, {"args": "all", "argsIgnorePattern": "^_"}]
}
}