-
Notifications
You must be signed in to change notification settings - Fork 29
Add eslint linting #160
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
Merged
Merged
Add eslint linting #160
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2761786
Turn of modules for eslint to allow global returns
tunetheweb f738b9f
Add globals
tunetheweb 8eece0c
Ignore pull request template
tunetheweb 1afa863
aUpdate linting config
tunetheweb 67aaa59
Config update
tunetheweb a97eb6d
Fix config
tunetheweb 9208578
More updates
tunetheweb 4eb36ac
@tomayac's changes from #161
tunetheweb 5ab0c26
More lint fixes
tunetheweb 9eff4a3
Linting
tunetheweb 6eaa18c
Linting
tunetheweb c1ee46c
Update dist/avg_dom_depth.js
tunetheweb 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 hidden or 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,100 @@ | ||
| --- | ||
| env: | ||
| browser: true | ||
| es6: true | ||
| jest: true | ||
| node: true | ||
|
|
||
| extends: | ||
| - "eslint:recommended" | ||
|
|
||
| globals: | ||
| $WPT_ACCESSIBILITY_TREE: readonly | ||
| $WPT_BODIES: readonly | ||
| $WPT_COOKIES: readonly | ||
| $WPT_DNS: readonly | ||
| $WPT_REQUESTS: readonly | ||
| $WPT_TEST_URL: readonly | ||
| httparchive_enable_observations: writable | ||
| __REACT_DEVTOOLS_GLOBAL_HOOK__: writable | ||
| CSSUnparsedValue: readonly | ||
| LaunchParams: readonly | ||
|
|
||
| ignorePatterns: | ||
| - "!.*" | ||
| - "**/node_modules/.*" | ||
| - "/dist/third-parties.js" | ||
|
|
||
| plugins: | ||
| - n | ||
| - prettier | ||
|
|
||
| rules: | ||
| no-inner-declarations: off | ||
|
|
||
| overrides: | ||
| # JSON files | ||
| - files: | ||
| - "*.json" | ||
| extends: | ||
| - plugin:jsonc/recommended-with-json | ||
| parser: jsonc-eslint-parser | ||
| parserOptions: | ||
| jsonSyntax: JSON | ||
|
|
||
| # JSONC files | ||
| - files: | ||
| - "*.jsonc" | ||
| extends: | ||
| - plugin:jsonc/recommended-with-jsonc | ||
| parser: jsonc-eslint-parser | ||
| parserOptions: | ||
| jsonSyntax: JSONC | ||
|
|
||
| # JSON5 files | ||
| - files: | ||
| - "*.json5" | ||
| extends: | ||
| - plugin:jsonc/recommended-with-json5 | ||
| parser: jsonc-eslint-parser | ||
| parserOptions: | ||
| jsonSyntax: JSON5 | ||
|
|
||
| # Javascript files | ||
| - files: | ||
| - "**/*.js" | ||
| extends: | ||
| - "plugin:react/recommended" | ||
| parserOptions: | ||
| ecmaVersion: latest | ||
|
|
||
| - files: | ||
| - "**/*.mjs" | ||
| - "**/*.cjs" | ||
| - "**/*.jsx" | ||
| extends: | ||
| - "plugin:react/recommended" | ||
| parserOptions: | ||
| sourceType: module | ||
| ecmaVersion: latest | ||
| ecmaFeatures: | ||
| jsx: true | ||
| modules: true | ||
|
|
||
| # TypeScript files | ||
| - files: | ||
| - "**/*.ts" | ||
| - "**/*.cts" | ||
| - "**/*.mts" | ||
| - "**/*.tsx" | ||
| extends: | ||
| - "plugin:@typescript-eslint/recommended" | ||
| - plugin:n/recommended | ||
| - plugin:react/recommended | ||
| - prettier | ||
| parser: "@typescript-eslint/parser" | ||
| plugins: | ||
| - "@typescript-eslint" | ||
| parserOptions: | ||
| ecmaVersion: latest | ||
| sourceType: module |
This file contains hidden or 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 hidden or 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,2 +1,4 @@ | ||
| # ignore github markdown files (like pull request templates) | ||
| **/.github/**/*.md" | ||
| .github/*.md | ||
| .github/**/*.md | ||
|
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.