Skip to content

Commit

Permalink
Merge pull request #89 from mkslanc/sql-linters
Browse files Browse the repository at this point in the history
Add ace-sql-linter extension
  • Loading branch information
mkslanc committed Dec 21, 2023
2 parents dc03eea + f9aad12 commit 953b3ff
Show file tree
Hide file tree
Showing 58 changed files with 954 additions and 305 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ Ace linters supports the following languages by default with webworkers approach
- XML *powered by* [XML-Tools](https://github.com/SAP/xml-tools)
- Javascript, JSX *powered by* [Eslint](https://github.com/eslint/eslint)
- Python *powered by* [Ruff](https://github.com/charliermarsh/ruff)
## Supported languages via extensions
- MySQL, FlinkSQL, SparkSQL, HiveSQL, TrinoSQL, PostgreSQL, Impala SQL, PL/SQL *with* [ace-sql-linter](https://www.npmjs.com/package/ace-sql-linter)
## Installation
To install Ace linters, you can use the following command:
Expand Down
39 changes: 37 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "ace-linters-root",
"version": "1.0.0",
"version": "1.0.1",
"scripts": {
"build:ace-linters": "cd packages/ace-linters && npm run build",
"build": "npm run build:ace-linters && webpack",
"start": "npm run build:ace-linters && webpack-dev-server",
"build:ace-sql-linter": "cd packages/ace-sql-linter && npm run build",
"build:parts": "npm run build:ace-linters && npm run build:ace-sql-linter",
"build": "npm run build:parts && webpack",
"start": "npm run build:parts && webpack-dev-server",
"start-dev": "webpack-dev-server"
},
"dependencies": {
Expand Down
6 changes: 5 additions & 1 deletion packages/ace-linters/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let worker = new Worker(new URL('./webworker.js', import.meta.url));

// Create an Ace editor
let editor = ace.edit("container", {
mode: new TypescriptMode() // Set the mode of the editor to Typescript
mode: new TypescriptMode() // Set the mode of the editor to Typescript
});

// Create a language provider for web worker (
Expand Down Expand Up @@ -181,6 +181,10 @@ Ace linters supports the following languages by default with webworkers approach
- XML *powered by* [XML-Tools](https://github.com/SAP/xml-tools)
- Javascript, JSX *powered by* [Eslint](https://github.com/eslint/eslint)
- Python *powered by* [Ruff](https://github.com/charliermarsh/ruff)
## Supported languages via extensions
- MySQL, FlinkSQL, SparkSQL, HiveSQL, TrinoSQL, PostgreSQL, Impala SQL, PL/SQL *with* [ace-sql-linter](https://www.npmjs.com/package/ace-sql-linter)
## Installation
To install Ace linters, you can use the following command:
Expand Down
2 changes: 1 addition & 1 deletion packages/ace-linters/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ace-linters",
"author": "Azat Alimov <mkslanc@gmail.com>",
"version": "1.0.0",
"version": "1.0.1",
"scripts": {
"clean": "rimraf build",
"prebuild": "node prebuild.js",
Expand Down
22 changes: 18 additions & 4 deletions packages/ace-linters/prebuild.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 953b3ff

Please sign in to comment.