godaddy / eslint-plugin-i18n-json

Fully extendable eslint plugin for JSON i18n translation files.
https://godaddy.github.io/2018/04/02/introducing-eslint-plugin-i18n-json/
MIT License
182 stars 25 forks source link

`--fix` flag is not recognized #30

Open jeffmaher opened 4 years ago

jeffmaher commented 4 years ago

In running the tool against a locale file, the --fix is not recognized.

/app # npx eslint --fix config/locales/en.json 

/app/config/locales/en.json
  0:0  error  Keys should be sorted, please use --fix  i18n-json/sorted-keys

✖ 1 problem (1 error, 0 warnings)
  1 error and 0 warnings potentially fixable with the `--fix` option.

Note that this command is run with the --fix option.

mayank23 commented 4 years ago

Thanks for the issue. Will take a look. What version of both the i18n plugin and eslint are you on?

jeffmaher commented 4 years ago

Used the latest release of both on the day this was posted. I moved off the project that was going to use this, but can check to confirm.