Closed ronny1020 closed 1 year ago
Hi @ronny1020,
I've just tested it using the off
rule and it should be working. Could I see the eslintrc file or at least part of it to have a look?
A suggestion would be if you have it the same as below, try restarting the ESLint Server
eslint config
module.exports = {
root: true,
plugins: ['prefer-smart-quotes'],
rules: {
'prefer-smart-quotes/prefer': ['error', 'all'],
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'prefer-smart-quotes/prefer': 'off',
},
},
],
}
ts file
- Doesn't error
const test = 'Hello my name is "Bob"'
js file
- Does error
const test = 'Hello my name is "Bob"'
I'm very sorry. It works perfectly now. I'm not sure what stupid mistake I had done. Anyway, thanks for your reply.
I'm very sorry. It works perfectly now. I'm not sure what stupid mistake I had done. Anyway, thanks for your reply.
No worries at all!
Hi, I would like to turn off this rule in my test file. And I add this rule to the overrides in
eslintrc
file withoff
. I think it's not working with off. Could this feature be added to this? Thanks.