forked from reactjs/react-modal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add linting * Make specs pass linter * Make lib/helpers pass linter * Make lib/components pass linter This also does some signfiicant refactoring of the code to appease the linter's pro-ES2015+ stance. closes reactjs#289 closes reactjs#286 * Make travis run the lint task as well as specs closes reactjs#284
- Loading branch information
1 parent
d2fbe55
commit 1c326a1
Showing
7 changed files
with
679 additions
and
92 deletions.
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,25 @@ | ||
module.exports = { | ||
"env": { | ||
"es6": true, | ||
"browser": true | ||
}, | ||
"extends": "airbnb", | ||
"parserOptions": { | ||
"ecmaVersion": 7, | ||
"ecmaFeatures": { | ||
"experimentalObjectRestSpread": true, | ||
"jsx": true | ||
}, | ||
"sourceType": "module" | ||
}, | ||
"parser": "babel-eslint", | ||
rules: { | ||
"comma-dangle": [2, "only-multiline"], | ||
"max-len": [1, {"code": 140}], | ||
"no-continue": [0], | ||
"no-plusplus": [0], | ||
"space-before-function-paren": [2, "always"], | ||
"import/no-extraneous-dependencies": [2, {"devDependencies": true}], | ||
"react/jsx-filename-extension": ["error", {"extensions": [".js"]}] | ||
}, | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
const testsContext = require.context('.', true, /spec$/); | ||
testsContext.keys().forEach(function(path) { | ||
try { | ||
testsContext(path); | ||
} catch(err) { | ||
debugger | ||
console.error(`[ERROR] WITH SPEC FILE: ${path}`); | ||
console.error(err); | ||
} | ||
testsContext.keys().forEach((path) => { | ||
try { | ||
testsContext(path); | ||
} catch (err) { | ||
console.error(`[ERROR] WITH SPEC FILE: ${path}`); | ||
console.error(err); | ||
} | ||
}); |
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,7 +1,8 @@ | ||
var commonConfig = require('./webpack.config'); | ||
const commonConfig = require('./webpack.config'); | ||
|
||
commonConfig.plugins = []; | ||
commonConfig.entry = undefined; | ||
commonConfig.debug = true; | ||
commonConfig.devtool = 'inline-source-map'; | ||
|
||
module.exports = commonConfig; |
Oops, something went wrong.