-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update js, rust, and system tools. Switch to the new eslint config file format.
- Loading branch information
Showing
9 changed files
with
500 additions
and
656 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ path = "bindings/rust/lib.rs" | |
tree-sitter = "~0.20.10" | ||
|
||
[build-dependencies] | ||
cc = "~1.0.83" | ||
cc = "~1.0.100" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import globals from "globals"; | ||
import google from "eslint-config-google"; | ||
import prettier from "eslint-config-prettier"; | ||
|
||
export default [ | ||
{ | ||
ignores: ["repositories/", "target/"], | ||
}, | ||
prettier, | ||
{ | ||
...google, | ||
languageOptions: { | ||
globals: { | ||
...globals.commonjs, | ||
...globals.es2021, | ||
}, | ||
|
||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
|
||
rules: { | ||
indent: [ | ||
"error", | ||
2, | ||
{ | ||
SwitchCase: 1, | ||
}, | ||
], | ||
|
||
"max-len": [ | ||
"error", | ||
{ | ||
code: 120, | ||
ignoreComments: true, | ||
ignoreUrls: true, | ||
ignoreStrings: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.