summaryrefslogtreecommitdiffstats
path: root/docs/code-quality/lint/linters/eslint-plugin-mozilla/reject-osfile.rst
blob: 1d5496567952cda7ac93b95b0f68a5212dd3d22e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
reject-osfile
=============

Rejects calls into ``OS.File`` and ``OS.Path``. This is configured as a warning.
You should use |IOUtils|_ and |PathUtils|_ respectively for new code.  If
modifying old code, please consider swapping it in if possible; if this is
tricky please ensure a bug is on file.

.. |IOUtils| replace:: ``IOUtils``
.. _IOUtils: https://searchfox.org/mozilla-central/source/dom/chrome-webidl/IOUtils.webidl

.. |PathUtils| replace:: ``PathUtils``
.. _PathUtils: https://searchfox.org/mozilla-central/source/dom/chrome-webidl/PathUtils.webidl