eslint-plugin-putout 13.8.0 → 13.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,10 +16,7 @@ const RELATIVE = '\\.\\.?\\/?';
|
|
|
16
16
|
const isRelativeStart = (a) => RegExp(`^${RELATIVE}`).test(a);
|
|
17
17
|
const isRelativeEnd = (a) => RegExp(`${RELATIVE}$`).test(a);
|
|
18
18
|
const getDir = (a) => a === '<input>' ? cwd : dirname(a);
|
|
19
|
-
const getValue = (
|
|
20
|
-
const {source} = node;
|
|
21
|
-
return source?.value;
|
|
22
|
-
};
|
|
19
|
+
const getValue = ({source}) => source?.value;
|
|
23
20
|
|
|
24
21
|
module.exports.category = 'errors';
|
|
25
22
|
module.exports.report = () => 'Always add an extension to relative imports';
|