Hi,
Thank you for this great plugin.
Configuration:
"lodash/path-style": ["error", "as-needed"]
consider the following code:
const obj = {
a: {
"b.c": {
d: 3
}
}
};
_.get(obj, ['a', 'b.c', 'd']); // -> 3
The rule will mark it as error and suggest to use a string for paths, but
_.get(obj, 'a.b.c.d');
Is not equivalent code and will not work.
My suggestion is that "as-needed" configuration will not warn if the strings in the array contain dots or square brackets.