Skip to content

Instantly share code, notes, and snippets.

@k0pernikus
Last active December 9, 2024 12:25
Show Gist options
  • Save k0pernikus/50e41c8151e9bd183fbc19bede817332 to your computer and use it in GitHub Desktop.
Save k0pernikus/50e41c8151e9bd183fbc19bede817332 to your computer and use it in GitHub Desktop.
Unexpected inline config
console.log('this should be reported');
/* eslint quotes: ["error", "double"], curly: 2 */
const thisShouldNotBeReported = 'this is unexpected';
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.
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