ecode: Added linter and formatter support for JSX.

This commit is contained in:
Martín Lucas Golini
2023-02-27 23:56:11 -03:00
parent 1d371796de
commit ec4d5e87de
2 changed files with 4 additions and 4 deletions

View File

@@ -7,8 +7,8 @@
},
"formatters": [
{
"language": ["javascript", "typescript"],
"file_patterns": ["%.js$", "%.ts$"],
"language": ["javascript", "typescript", "JSX"],
"file_patterns": ["%.js$", "%.ts$", "%.jsx$", "%.tsx$"],
"command": "prettier $FILENAME"
},
{

View File

@@ -21,8 +21,8 @@
"use_tmp_folder": true
},
{
"language": ["javascript", "typescript"],
"file_patterns": ["%.js$", "%.ts$"],
"language": ["javascript", "typescript", "JSX"],
"file_patterns": ["%.js$", "%.ts$", "%.jsx$", "%.tsx$"],
"warning_pattern": "[^:]:(%d+):(%d+): ([^%[]+)%[([^\n]+)",
"warning_pattern_order": { "line": 1, "col": 2, "message": 3, "type": 4 },
"command": "eslint --no-ignore --format unix $FILENAME"