This repository has been archived by the owner on Mar 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Removes jsHint in favour of ESLint. Adds Babel-Runtime polyfill and t… #293
Merged
Merged
Changes from 18 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
a309881
Configures webpack, not working nicely with bower
8653af1
Removes jsHint in favour of ESLint. Adds Babel-Runtime polyfill and t…
447eb8b
Passes new eslint rules and removed default rootDirectory path in bab…
dc51801
Merges master
08b17d1
Pushes eslint to v1
f651401
v4.0.0-beta.1
254d12a
don't allow overwriting of globals [consistent with obt]
matthew-andrews b0ae681
let npm publish obt with `.eslintrc`
matthew-andrews dc10ee2
Merge pull request #297 from Financial-Times/no-eslintrc
f26130e
v4.0.0-beta.2
31a343c
Merge pull request #295 from Financial-Times/globals
575972b
Fixes eslint rules and babel path resolver
5e35a46
Merge branch 'eslint' of https://github.com/Financial-Times/origami-b…
774a95a
v4.0.0-beta.3
0bb17d6
Linter now errors with undefined variables being used, like globals
7408015
v4.0.0-beta.4
ccef201
Stop linting multiple new lines and adds no-const-assign rule
d6535b4
v4.0.0-beta.5
55efaaf
v4.0.0-beta.6
97f27ff
Fixes merge conflicts
d4b2932
Removes destFolder test
542c597
Sets cwd for bower resolver and fixes bug where bower plugin was tryi…
5ffbf46
Adds custom loaders for babel runtime resolver and textrequirefy. The…
1411367
Fixes tests and verify
06edbe7
Adds hacky fix for textrequireify involving forked transform-loader t…
7fc0257
Removes hack for textrequireify as custom loader now works
59ebed7
Disables AMD modules, it was breaking the use of ftscroller
a6c1e0f
Adds proper webpack error logging. Now triggers error on dependency n…
23bd4fb
Adds a json loader to be able to require json files like in Node and …
63d9b0c
v4.0.0-beta.7
016d73e
Removed promise polyfill from tests
7a6fc6b
Adds tests for requireText, requiring JSONs and syntax and missing de…
419cc1f
Fix linting errors
2615f97
Adds comments, updates readme and adds support for having loaders in …
edeebcd
Merge pull request #302 from Financial-Times/webpack
fc484af
Fixes merge conflicts from master
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,29 @@ | ||
{ | ||
"env": { | ||
"node": true, | ||
"es6": true | ||
}, | ||
"ecmaFeatures": { | ||
"modules": false | ||
}, | ||
"rules": { | ||
"no-unused-vars": 2, | ||
"no-undef": 2, | ||
"eqeqeq": 2, | ||
"no-underscore-dangle": 0, | ||
"guard-for-in": 2, | ||
"no-extend-native": 2, | ||
"wrap-iife": 2, | ||
"new-cap": 2, | ||
"no-caller": 2, | ||
"strict": [2, "global"], | ||
"quotes": [1, "single"], | ||
"no-loop-func": 2, | ||
"no-irregular-whitespace": 1, | ||
"no-multi-spaces": 2, | ||
"one-var": [2, "never"] | ||
}, | ||
"globals": { | ||
"fetch": true | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
.idea/ | ||
test/ | ||
*.md | ||
.jshintrc | ||
gulpfile.js | ||
.travis.yml |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"ecmaFeatures": { | ||
"modules": true | ||
}, | ||
"env": { | ||
"es6": true, | ||
"browser": true | ||
}, | ||
"rules": { | ||
"no-unused-vars": 2, | ||
"no-undef": 2, | ||
"eqeqeq": 2, | ||
"guard-for-in": 2, | ||
"no-extend-native": 2, | ||
"wrap-iife": 2, | ||
"new-cap": 2, | ||
"no-caller": 2, | ||
"no-multi-str": 0, | ||
"dot-notation": 0, | ||
"strict": [2, "global"], | ||
"valid-jsdoc": 1, | ||
"no-irregular-whitespace": 1, | ||
"no-multi-spaces": 2, | ||
"one-var": [2, "never"], | ||
"constructor-super": 2, | ||
"no-this-before-super": 2, | ||
"no-var": 2, | ||
"prefer-const": 1, | ||
"no-const-assign": 2 | ||
}, | ||
"globals": { | ||
"require": false, | ||
"module": false, | ||
"exports": false, | ||
"requireText": false | ||
} | ||
} | ||
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
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.
Is this the same as config/.eslintrc? If so do we have to duplicate?
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.
No, it has a difference, that way we can test that it's using the custom config instead of the default one in its corresponding test