Skip to content

Instantly share code, notes, and snippets.

@bcomnes
Last active September 30, 2021 20:06
Embed
What would you like to do?
Sublime custom syntax reference
{
"folders":
[
{
"path": ".",
}
],
"settings": {
"project_syntaxes": [
{
"syntax": "User/JS Custom/Syntaxes/React",
"rules": [
{"file_path": ".*\\.js$",},
],
}
],
},
}
{
"folders":
[
{
"path": ".",
},
],
"settings": {
"SublimeLinter.linters.eslint.selector": "source.jsx, source.tsx, source.ts, source.js - meta.attribute-with-value",
"project_syntaxes": [
{
"syntax": "User/JS Custom/Syntaxes/React",
"rules": [
{"file_path": ".*\\.js$",},
],
}
],
},
}
{
"folders":
[
{
"path": ".",
},
],
"settings": {
"SublimeLinter.linters.eslint.selector": "source.jsx, source.tsx, source.ts, source.js - meta.attribute-with-value",
"project_syntaxes": [
{
"syntax": "User/JS Custom/Syntaxes/React",
"rules": [
{"file_path": ".*\\.js$",},
],
}
],
"standard_format": {
"format_on_save": true,
"commands": [
["eslint_d", "--stdin", "--fix-to-stdout", "--stdin-filename", "{FILENAME}"]
]
}
},
}
{
"folders":
[
{
"path": ".",
},
],
"settings": {
"SublimeLinter.linters.eslint.selector": "source.jsx, source.tsx, source.ts, source.js - meta.attribute-with-value"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment