Skip to content

Commit

Permalink
close #71, close #72
Browse files Browse the repository at this point in the history
  • Loading branch information
EmranMR committed Sep 18, 2024
1 parent 335b2a4 commit a9997ce
Show file tree
Hide file tree
Showing 7 changed files with 7,960 additions and 7,828 deletions.
12 changes: 6 additions & 6 deletions eslint.config.js → eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import globals from "globals"
import google from "eslint-config-google"
import globals from 'globals';
import google from 'eslint-config-google';

export default [
{
Expand All @@ -9,20 +9,20 @@ export default [
globals: {
...globals.commonjs,
...globals.es2021,
}
},
},
...google,
rules: {
indent: ['error', 2, { SwitchCase: 1 }],
'max-len': [
'error',
{
code: 120,
code: 125,
ignoreComments: true,
ignoreUrls: true,
ignoreStrings: true,
},
],
},
}
]
},
];
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = grammar({
// !keywords
keyword: ($) =>
alias(
/@(csrf|viteReactRefresh|livewireStyles|livewireScripts|livewireScriptConfig|parent)/,
/@(csrf|viteReactRefresh|livewireStyles|livewireScripts|livewireScriptConfig|parent|inertia|inertiaHead|routes)/,
$.directive,
),
// ! PHP Statements
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"funding": "https://github.com/sponsors/EmranMR",
"scripts": {
"build": "tree-sitter generate",
"lint": "eslint grammar.cjs",
"lint": "eslint grammar.js",
"test": "tree-sitter test",
"test-examples": "script/parse-examples"
},
Expand All @@ -28,7 +28,7 @@
"nan": "^2.17.0"
},
"devDependencies": {
"eslint": ">=8.54.0",
"eslint": "^9.10.0",
"eslint-config-google": "^0.14.0",
"globals": "^15.9.0",
"tree-sitter-cli": "^0.20.8"
Expand Down
1 change: 0 additions & 1 deletion script/known-failures.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
examples/breeze/stubs/default/resources/views/components/input-error.blade.php
examples/breeze/stubs/default/resources/views/components/modal.blade.php
2 changes: 1 addition & 1 deletion src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"type": "ALIAS",
"content": {
"type": "PATTERN",
"value": "@(csrf|viteReactRefresh|livewireStyles|livewireScripts|livewireScriptConfig|parent)"
"value": "@(csrf|viteReactRefresh|livewireStyles|livewireScripts|livewireScriptConfig|parent|inertia|inertiaHead|routes)"
},
"named": true,
"value": "directive"
Expand Down
Loading

0 comments on commit a9997ce

Please sign in to comment.