This project is supporting the How to test your ESLint config article on my blog.
Remixing on Glitch will allow you to have access to a terminal to run npm run lint
or npm run test:eslintConfig
. You could experiment with commenting/uncommenting certain parts of this repo and see how it affects these 2 npm scripts.
To access the terminal on Glitch, you can go into
Tools
(bottom left corner) >Terminal
, or press CTRL + SHIFT + X.
For example, you could try:
- to remove the configuration which restricts
date-fns/locale
from being imported; - to add an
// eslint-disable-next-line
inindex.js
to suppress the linting error; - to copy
index.js
into a nested folder and add your own.eslintrc.js
file which would override theno-restricted-import
rule (this should keepnpm run test:eslintConfig
passing...); - to harden this setup with the suggestions from my How to test your ESLint config article.
See LICENSE