Turn on ESLint in examples directory, apply examples-specific exceptions
This commit is contained in:
parent
9a1e51af24
commit
80d7ff4912
@ -2,7 +2,6 @@ build/
|
||||
l10n/
|
||||
docs/
|
||||
node_modules/
|
||||
examples/
|
||||
external/bcmaps/
|
||||
external/webL10n/
|
||||
external/cmapscompress/
|
||||
|
24
examples/.eslintrc
Normal file
24
examples/.eslintrc
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"extends": [
|
||||
"../.eslintrc"
|
||||
],
|
||||
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 5,
|
||||
},
|
||||
|
||||
"env": {
|
||||
"es6": false,
|
||||
},
|
||||
|
||||
"globals": {
|
||||
"pdfjsImageDecoders": false,
|
||||
"pdfjsLib": false,
|
||||
"pdfjsViewer": false,
|
||||
"Uint8Array": false,
|
||||
},
|
||||
|
||||
"rules": {
|
||||
"object-shorthand": ["error", "never"]
|
||||
}
|
||||
}
|
9
examples/node/.eslintrc
Normal file
9
examples/node/.eslintrc
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": [
|
||||
"../.eslintrc"
|
||||
],
|
||||
|
||||
"env": {
|
||||
"node": true,
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user