dired-enable-local-variables

dired-enable-local-variables is a variable defined in `dired-x.el'.
Its value is
t

  • This variable is obsolete since 24.1;
    use a standard `dir-locals-file' instead.
  • This variable may be risky if used as a file-local variable.

Documentation:
Control use of local-variables lists in Dired.
This temporarily overrides the value of `enable-local-variables' when
listing a directory. See also `dired-local-variables-file'.

You can customize this variable.