avoid_escaping_inner_quotes

Group: style

Maturity: stable

Dart SDK: >= 2.8.1 • (Linter v0.1.111)

Since info is static, may be stale
has-fix

View all Lint Rules

Using the Linter

Avoid escaping inner quotes by converting surrounding quotes.

BAD:

var s = 'It\'s not fun';

GOOD:

var s = "It's not fun";

Usage

To enable the avoid_escaping_inner_quotes lint, add avoid_escaping_inner_quotes under linter > rules in your analysis_options.yaml file:

linter:
  rules:
    - avoid_escaping_inner_quotes