{"id":637,"hash":"62938a8a900e2bc5b241b737e502a2b2d54e720bb99f05738f0547485f14bf25","pattern":"How to disable eslint(prettier/prettier) single quotes error","full_message":"I have react-native code. I install ESLint. I use it but its show error.\n\nWhile I use single quotes it show me error\n\n  Replace 'react-native' with \"react-native\" eslint(prettier/prettier)\n\nAnd when I use double qoutes it show me another error\n\n  String must use singlequote. eslint(quotes)\n\nhere is the screenshot:\n\nWhat i want is, how to remove error messages about using single quotes? I prefer using single quotes instead double quotes.","ecosystem":"npm","package_name":"eslint","package_version":null,"solution":"In addition to @Barmar answer, you could also use prettier configuration on a .eslintrc.js file using the following, property:\n\nrules: {\n    // ...\n    'prettier/prettier': ['error', { singleQuote: true }]\n  }","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/57343517/how-to-disable-eslintprettier-prettier-single-quotes-error","votes":40,"created_at":"2026-04-19T04:51:25.710546+00:00","updated_at":"2026-04-19T04:51:25.710546+00:00"}