-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade linters to ESLint with stricter code style #1111
Changes from 7 commits
ebdf056
1a6d051
bf59f5d
acf69e0
377273f
dcf82ee
b0232a7
eec545b
5cf3257
b7cfe31
b94f88b
55155bc
92d70af
0edfb26
4d3fef5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
}, | ||
"extends": "standard", | ||
"globals": { | ||
"$$PREBID_GLOBAL$$": false, | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module", | ||
}, | ||
"rules": { | ||
"comma-dangle": "off", | ||
"semi": "off", | ||
"space-before-function-paren": "off", | ||
|
||
// 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. | ||
"brace-style": "off", | ||
"camelcase": "off", | ||
"eqeqeq": "off", | ||
"import/first": "off", | ||
"no-control-regex": "off", | ||
"no-mixed-operators": "off", | ||
"no-multiple-empty-lines": "off", | ||
"no-redeclare": "off", | ||
"no-return-assign": "off", | ||
"no-throw-literal": "off", | ||
"no-undef": "off", | ||
"no-unused-vars": "off", | ||
"no-use-before-define": "off", | ||
"no-useless-call": "off", | ||
"no-useless-escape": "off", | ||
"one-var": "off", | ||
"standard/no-callback-literal": "off", | ||
"standard/object-curly-even-spacing": "off", | ||
"valid-typeof": "off" | ||
}, | ||
}; |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,17 +31,21 @@ | |
"del": "^2.2.0", | ||
"ejs": "^2.5.1", | ||
"es5-shim": "^4.5.2", | ||
"eslint-config-standard": "^10.2.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-node": "^4.2.2", | ||
"eslint-plugin-promise": "^3.5.0", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"faker": "^3.1.0", | ||
"fs.extra": "^1.3.2", | ||
"gulp": "^3.8.7", | ||
"gulp-babel": "^6.1.2", | ||
"gulp-clean": "^0.3.1", | ||
"gulp-clean": "^0.3.2", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we're updating dependencies, the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good catch ^^. Done. |
||
"gulp-concat": "^2.6.0", | ||
"gulp-connect": "^2.0.6", | ||
"gulp-eslint": "^3.0.1", | ||
"gulp-header": "^1.7.1", | ||
"gulp-jscs": "^3.0.2", | ||
"gulp-jsdoc-to-markdown": "^1.2.1", | ||
"gulp-jshint": "^1.8.4", | ||
"gulp-karma": "0.0.4", | ||
"gulp-mocha": "^2.2.0", | ||
"gulp-optimize-js": "^1.1.0", | ||
|
@@ -54,7 +58,6 @@ | |
"gulp-zip": "^3.1.0", | ||
"istanbul": "^0.3.2", | ||
"istanbul-instrumenter-loader": "^0.1.2", | ||
"jshint-stylish": "^2.2.1", | ||
"json-loader": "^0.5.1", | ||
"karma": "^0.13.2", | ||
"karma-babel-preprocessor": "^6.0.1", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want this to lint the test folder as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed & done.