-
-
Notifications
You must be signed in to change notification settings - Fork 638
Resolve 14.1.1 incompatibility with eslint & make sure that spec/dummy is linted by eslint #1693
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
Changes from 7 commits
9c3972d
eb9b227
e8bdc88
60e36b6
ff274a8
7878e9b
07e9e2b
83d0d2e
e844e79
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,10 +1,14 @@ | ||||||
| node_modules | ||||||
| coverage | ||||||
| spec/react_on_rails/dummy-for-generators | ||||||
| spec/dummy | ||||||
| spec/dummy/.yalc | ||||||
| spec/dummy/public | ||||||
| spec/dummy/vendor | ||||||
| spec/dummy/tmp | ||||||
| spec/dummy/app/assets/config/manifest.js | ||||||
| spec/dummy/client/node_modules | ||||||
| spec/dummy/client/app/components/HelloWorldReScript.res.js | ||||||
|
Collaborator
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.
Suggested change
just in case we want to add more Rescript components later. |
||||||
| node_package/lib/ | ||||||
| node_package/tests/node_modules | ||||||
| node_package/webpack.config.js | ||||||
| **/node_modules/** | ||||||
| **/assets/webpack/** | ||||||
| **/public/webpack/** | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -41,14 +41,18 @@ rules: | |||||
| object-curly-newline: 0 | ||||||
| no-restricted-syntax: ["error", "SequenceExpression"] | ||||||
| # https://stackoverflow.com/a/59268871/5241481 | ||||||
| import/extensions: ['error', 'ignorePackages', {"js": 'never',"ts": "never"}] | ||||||
| import/extensions: ['error', 'ignorePackages', {"js": 'never', "jsx": 'never', "ts": "never", " ": "never"}] | ||||||
Judahmeek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| # https://github.com/benmosher/eslint-plugin-import/issues/340 | ||||||
| import/no-extraneous-dependencies: 0 | ||||||
|
|
||||||
| react/forbid-prop-types: 0 | ||||||
| jsx-a11y/anchor-is-valid: 0 | ||||||
|
|
||||||
| settings: | ||||||
| import/core-modules: | ||||||
| - react-redux | ||||||
| import/resolver: | ||||||
| alias: [ ["Assets", "./spec/dummy/client/app/assets"] ] | ||||||
| node: | ||||||
| extensions: [".js", ".ts", ".d.ts"] | ||||||
| extensions: [".js", ".jsx", ".ts", ".d.ts"] | ||||||
|
Collaborator
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.
Suggested change
to avoid forgetting if we add TSX examples later. |
||||||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ import css from '../components/HelloWorld.module.scss'; | |
| const HelloTurboStream = ({ helloTurboStreamData, railsContext }) => { | ||
| const [name, setName] = useState(helloTurboStreamData.name); | ||
| const nameDomRef = useRef(null); | ||
|
|
||
| // eslint-disable-next-line no-unused-vars | ||
| const handleChange = () => { | ||
|
||
| setName(nameDomRef.current.value); | ||
| }; | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,7 +5,7 @@ const baseClientWebpackConfig = generateWebpackConfig(); | |||||||
|
|
||||||||
| const webpack = require('webpack'); | ||||||||
|
|
||||||||
| const aliasConfig = require('./alias.js'); | ||||||||
| const aliasConfig = require('./alias'); | ||||||||
|
|
||||||||
| const commonOptions = { | ||||||||
| resolve: { | ||||||||
|
|
@@ -23,7 +23,7 @@ const sassLoaderConfig = { | |||||||
|
|
||||||||
| const scssConfigIndex = baseClientWebpackConfig.module.rules.findIndex((config) => | ||||||||
| '.scss'.match(config.test), | ||||||||
| ); | ||||||||
| ); // eslint-disable-next-line no-undef | ||||||||
|
Collaborator
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.
Suggested change
|
||||||||
| baseClientWebpackConfig.module.rules[scssConfigIndex]?.use.push(sassLoaderConfig); | ||||||||
|
|
||||||||
| // add jquery | ||||||||
|
|
||||||||
Uh oh!
There was an error while loading. Please reload this page.