yvvki / rusted-warfare-vscode

Workspace detection, syntax highlighting, code completion and format checker for Rusted Warfare
https://marketplace.visualstudio.com/items?itemName=yvvki.rusted-warfare-vscode
MIT License
2 stars 0 forks source link

Linter refactor #4

Closed yvvki closed 9 months ago

yvvki commented 9 months ago

Currently this project uses the XO linter which is a wrapper to ESLint, but currently the configuration is broken due to the line:

ignores: ['!.*.{cjs, js}'],

This makes the XO includes its own configuration file (.xo-config.cjs) but I will ignore other files (see xojs/xo#673).

We would still use Prettier as it is the formatter for non Javascript files.

Solution

Move the .xo-config.cjs and .prettierrc.cjs configuration to package.json as it is the practice applied in the XO repo.