Skip to content

Instantly share code, notes, and snippets.

@bcomnes
Last active September 30, 2021 20:06
Show Gist options
  • Save bcomnes/2cefcc96d408a78a880dc3a489b998cb to your computer and use it in GitHub Desktop.
Save bcomnes/2cefcc96d408a78a880dc3a489b998cb to your computer and use it in GitHub Desktop.
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