Proposal for removing the jquery dependency #1
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.
I removed the jquery dependency from one of the modules (state). Let me know what you think.
I also added init methods, which means in a dependent project you would use castlecss-forms as follows:
require('castlecss-forms').Forms.init();
or
require('State').init();
I wasn't able to use the ESLint plugin because of the following error:
ERROR in ./js/Select.js Module build failed: Error: Failed to load plugin react: Cannot find module 'eslint-plugin-react' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.load (C:\dev\castlecss-forms\node_modules\eslint\lib\config\plugins.js:129:26) at Array.forEach (native) at Object.loadAll (C:\dev\castlecss-forms\node_modules\eslint\lib\config\plugins.js:151:21) at Object.load (C:\dev\castlecss-forms\node_modules\eslint\lib\config\config-file.js:504:21) at loadConfig (C:\dev\castlecss-forms\node_modules\eslint\lib\config.js:63:33) at getPersonalConfig (C:\dev\castlecss-forms\node_modules\eslint\lib\config.js:84:22) at getLocalConfig (C:\dev\castlecss-forms\node_modules\eslint\lib\config.js:155:32) at Config.getConfig (C:\dev\castlecss-forms\node_modules\eslint\lib\config.js:259:26) at processText (C:\dev\castlecss-forms\node_modules\eslint\lib\cli-engine.js:224:33) at CLIEngine.executeOnText (C:\dev\castlecss-forms\node_modules\eslint\lib\cli-engine.js:754:26) at lint (C:\dev\castlecss-forms\node_modules\eslint-loader\index.js:44:31) at Object.module.exports (C:\dev\castlecss-forms\node_modules\eslint-loader\index.js:181:3)