| Summary: | Web Inspector: eslint configuration should be stored as .eslintrc | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jonathan Wells <jonowells> | ||||||
| Component: | Web Inspector | Assignee: | Jonathan Wells <jonowells> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | commit-queue, graouts, joepeck, timothy, webkit-bug-importer | ||||||
| Priority: | P3 | Keywords: | InRadar | ||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Attachments: |
|
||||||||
|
Description
Jonathan Wells
2014-08-13 16:52:25 PDT
Created attachment 236565 [details]
[PATCH] adding .eslintrc
Comment on attachment 236565 [details] [PATCH] adding .eslintrc View in context: https://bugs.webkit.org/attachment.cgi?id=236565&action=review I think this is a reasonable starting point. This will be fun to extend! > Source/WebInspectorUI/.eslintrc:38 > + "globals": { > + "ConsoleAgent": true, > + "DOMAgent": true, > + "InspectorBackend": true, > + "InspectorFrontendHost": true, > + "PageAgent": true, > + "WebInspector": true > + }, All of the agents will need to be defined in here: shell> cd Source shell> find . | egrep 'protocol\/.*?json$' | xargs basename | sed -e 's/\.json/Agent/' ConsoleAgent DebuggerAgent GenericTypesAgent # Note we this is a supplemental file so you don't want it. InspectorDomainAgent # Note this would just be "InspectorAgent". ProfilerAgent RuntimeAgent ApplicationCacheAgent CSSAgent DatabaseAgent DOMAgent DOMDebuggerAgent DOMStorageAgent IndexedDBAgent LayerTreeAgent NetworkAgent PageAgent ReplayAgent TimelineAgent WorkerAgent And we will want: CodeMirror > Source/WebInspectorUI/.eslintrc:40 > + "eqeqeq": 0, Whoa whoa. We certainly want this on! Maybe not inside UserInterface/External for CodeMirror / Esprima. Comment on attachment 236565 [details] [PATCH] adding .eslintrc View in context: https://bugs.webkit.org/attachment.cgi?id=236565&action=review >> Source/WebInspectorUI/.eslintrc:40 >> + "eqeqeq": 0, > > Whoa whoa. We certainly want this on! Maybe not inside UserInterface/External for CodeMirror / Esprima. I completely agree, but there were instances of == being used I've found. I'll consider those errors and turn this into a 2, and I'll add an .eslintrc file for CodeMirror and Esprima. Created attachment 236569 [details]
[PATCH] adding .eslintrc, review feedback.
Comment on attachment 236569 [details] [PATCH] adding .eslintrc, review feedback. Clearing flags on attachment: 236569 Committed r172547: <http://trac.webkit.org/changeset/172547> All reviewed patches have been landed. Closing bug. |