forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into master
- Loading branch information
Showing
46 changed files
with
3,247 additions
and
597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,53 @@ | ||
|
||
const allowedModules = require("./allowedModules"); | ||
const allowedModules = require('./allowedModules.js'); | ||
|
||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"commonjs": true | ||
env: { | ||
browser: true, | ||
commonjs: true | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"moduleDirectory": ["node_modules", "./"] | ||
settings: { | ||
'import/resolver': { | ||
node: { | ||
moduleDirectory: ['node_modules', './'] | ||
} | ||
} | ||
}, | ||
"extends": "standard", | ||
"plugins": [ | ||
"prebid", | ||
"import" | ||
extends: 'standard', | ||
plugins: [ | ||
'prebid', | ||
'import' | ||
], | ||
"globals": { | ||
"$$PREBID_GLOBAL$$": false | ||
globals: { | ||
'$$PREBID_GLOBAL$$': false, | ||
'BROWSERSTACK_USERNAME': false, | ||
'BROWSERSTACK_KEY': false | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module" | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2018, | ||
}, | ||
"rules": { | ||
"comma-dangle": "off", | ||
"semi": "off", | ||
"space-before-function-paren": "off", | ||
"import/extensions": ["error", "ignorePackages"], | ||
rules: { | ||
'comma-dangle': 'off', | ||
semi: 'off', | ||
'space-before-function-paren': 'off', | ||
'import/extensions': ['error', 'ignorePackages'], | ||
|
||
// Exceptions below this line are temporary, so that eslint can be added into the CI process. | ||
// Violations of these styles should be fixed, and the exceptions removed over time. | ||
// | ||
// See Issue #1111. | ||
"eqeqeq": "off", | ||
"no-return-assign": "off", | ||
"no-throw-literal": "off", | ||
"no-undef": 2, | ||
"no-useless-escape": "off", | ||
"no-console": "error" | ||
eqeqeq: 'off', | ||
'no-return-assign': 'off', | ||
'no-throw-literal': 'off', | ||
'no-undef': 2, | ||
'no-useless-escape': 'off', | ||
'no-console': 'error' | ||
}, | ||
"overrides": Object.keys(allowedModules).map((key) => ({ | ||
"files": key + "/**/*.js", | ||
"rules": { | ||
"prebid/validate-imports": ["error", allowedModules[key]] | ||
overrides: Object.keys(allowedModules).map((key) => ({ | ||
files: key + '/**/*.js', | ||
rules: { | ||
'prebid/validate-imports': ['error', allowedModules[key]] | ||
} | ||
})) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.