Last active
December 9, 2024 12:25
-
-
Save k0pernikus/50e41c8151e9bd183fbc19bede817332 to your computer and use it in GitHub Desktop.
Unexpected inline config
This file contains hidden or 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
console.log('this should be reported'); | |
/* eslint quotes: ["error", "double"], curly: 2 */ | |
const thisShouldNotBeReported = 'this is unexpected'; |
This file contains hidden or 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
eslint --no-config-lookup --rule "no-console: error" having_inline_rule_enabled.js | |
1:1 error Unexpected console statement no-console | |
1:13 error Strings must use doublequote quotes | |
5:33 error Strings must use doublequote quotes | |
✖ 3 problems (3 errors, 0 warnings) | |
2 errors and 0 warnings potentially fixable with the `--fix` option. |
This file contains hidden or 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
eslint --no-inline-config --no-config-lookup --rule "no-console: error" having_inline_rule_enabled.js | |
/mnt/c/Users/philipp.kretzschmar/Documents/github/eslint_example/some.js | |
1:1 error Unexpected console statement no-console | |
✖ 1 problem (1 error, 0 warnings) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment