-
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
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ebdf056
Upgrade linters to ESLint with stricter code style
matthewlane 1a6d051
Ran eslint --fix to automatically fix errors.
dbemiller bf59f5d
Added exceptions for rules which Prebid already violates. Removed one…
dbemiller acf69e0
Merged from main. All conflicts resolved using git checkout --theirs.
dbemiller 377273f
Ran eslint --fix again. Added more exceptions for new violations that…
dbemiller dcf82ee
Hacked my way around the gulp eslint + mocha errors. This commit inte…
dbemiller b0232a7
Uncommented the last style check, and alphabetized the list. Linter i…
dbemiller eec545b
Merged from master. Fixed more conflicts.
dbemiller 5cf3257
Merged from master. Fixed more conflicts.
dbemiller b7cfe31
Merge branch 'master' of https://github.com/prebid/Prebid.js into eslint
dbemiller b94f88b
Fixed style issues.
dbemiller 55155bc
Extended linting to cover test folder. Added an override eslintrc to …
dbemiller 92d70af
Updated the yarn.lock file.
dbemiller 0edfb26
Merged from master. Fixed more style errors.
dbemiller 4d3fef5
Merged from master. Fixed conflicts and style errors.
dbemiller File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"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.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
If we're updating dependencies, the
yarn.lock
file should probably be updated 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.
good catch ^^. Done.