This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Add support for ESLint doc url meta, update dependencies, support TypeScript 2.7 #84
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
def956d
Update circleci from v1 to v2
kaelig f5ecd19
Update dependencies that support the new URL metadata
kaelig 086eb09
Add new rules coming from the dependency update
kaelig 20b09d2
Update changelog
kaelig 0fee24d
v20.0.0-beta.1
kaelig f21b18d
Fix rule name
kaelig 5662ed4
Improve eslint output
kaelig 55078ee
Use new --require flag (compilers is deprecated) for mocha
kaelig ed54a32
v20.0.0-beta.2
kaelig 5c712bf
Update rule to match the new implementation
kaelig f26e5b1
v20.0.0-beta.3
kaelig 5270272
Add missing .
kaelig d02b662
Mention new TypeScript version support in Changelog
kaelig d2f1785
Allow graphql, css, sass, scss, less, styl file extensions in imports
kaelig 23be4b8
Turn on jest/valid-expect-in-promise rule
kaelig f18da27
Turn rule react/no-this-in-sfc on
kaelig 9978763
Turn rule react/jsx-child-element-spacing on
kaelig 5c8f31e
Turn jest/lowercase-name rule off
kaelig c94a6f0
Rewrite rules in imperative tone
kaelig 1bd52b8
Add docs meta to custom rules
kaelig 1eabeb0
v20.0.0-beta.4
kaelig 5c2df96
Apply category changes - thanks @lemonmade ❤️
kaelig 8e08002
Merge pull request #87 from Shopify/docs-add-meta
kaelig 347d913
Merge pull request #86 from Shopify/docs-meta
kaelig 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,21 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
working_directory: ~/app | ||
docker: | ||
- image: circleci/node:8.9.4 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
# Find a cache corresponding to this specific package.json checksum | ||
# when this file is changed, this key will fail | ||
- v1-npm-deps-{{ arch }}-{{ checksum "yarn.lock" }} | ||
# Find the most recent cache used from any branch | ||
- v1-npm-deps-{{ arch }} # used if above checksum fails | ||
- run: yarn | ||
- save_cache: | ||
key: v1-npm-deps-{{ arch }}-{{ checksum "yarn.lock" }} | ||
paths: | ||
- node_modules | ||
- run: yarn run check | ||
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 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,8 @@ module.exports = { | |
'import/no-absolute-path': 'error', | ||
// Forbid Webpack loader syntax in imports | ||
'import/no-webpack-loader-syntax': 'error', | ||
// Ensures that there are no useless path segments | ||
'import/no-useless-path-segments': 'error', | ||
|
||
// Helpful warnings | ||
|
||
|
@@ -40,6 +42,8 @@ module.exports = { | |
'import/no-extraneous-dependencies': 'error', | ||
// Forbid the use of mutable exports with var or let. | ||
'import/no-mutable-exports': 'error', | ||
// Forbid a module from importing itself | ||
'import/no-self-import': 'error', | ||
|
||
// Module systems | ||
|
||
|
@@ -61,7 +65,23 @@ module.exports = { | |
// Report namespace imports | ||
'import/no-namespace': 'off', | ||
// Ensure consistent use of file extension within the import path | ||
'import/extensions': ['error', {js: 'never', json: 'always'}], | ||
'import/extensions': [ | ||
'error', | ||
{ | ||
js: 'never', | ||
json: 'always', | ||
svg: 'always', | ||
png: 'always', | ||
jpg: 'always', | ||
ico: 'always', | ||
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. Also want .graphql/ .css/ .scss? 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. Thanks, addressed in d2f1785 |
||
graphql: 'always', | ||
css: 'always', | ||
sass: 'always', | ||
scss: 'always', | ||
less: 'always', | ||
styl: 'always', | ||
}, | ||
], | ||
// Enforce a convention in module import order | ||
'import/order': [ | ||
'error', | ||
|
@@ -79,4 +99,8 @@ module.exports = { | |
'import/no-unassigned-import': 'off', | ||
// Forbid anonymous values as default exports | ||
'import/no-anonymous-default-export': 'error', | ||
// Prohibit default exports. Mostly an inverse of prefer-default-export. | ||
'import/no-default-export': 'off', | ||
// Reports when named exports are not grouped together in a single export declaration or when multiple assignments to CommonJS module.exports or exports object are present in a single file. | ||
'import/group-exports': 'off', | ||
}; |
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.
Probably would have been better as a separate PR?
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.
Yeah I got a bit carried away 😅