Skip to content

Commit 8d7d14b

Browse files
fix: fix formatting
1 parent 26b45a4 commit 8d7d14b

File tree

28 files changed

+196
-196
lines changed

28 files changed

+196
-196
lines changed

packages/angular/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ const { resolvePrebuild } = require('@ast-grep/setup-lang')
55
function getLibPath() {
66
const prebuild = resolvePrebuild(__dirname)
77
if (prebuild) {
8-
return prebuild;
8+
return prebuild
99
}
1010

11-
const native = path.join(__dirname, 'parser.so');
11+
const native = path.join(__dirname, 'parser.so')
1212
if (fs.existsSync(native)) {
13-
return native;
13+
return native
1414
}
1515

16-
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.');
16+
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.')
1717
}
1818

19-
let libPath;
19+
let libPath
2020

2121
module.exports = {
2222
get libraryPath() {
2323
if (!libPath) {
24-
libPath = getLibPath();
24+
libPath = getLibPath()
2525
}
26-
return libPath;
26+
return libPath
2727
},
2828
extensions: ['html'],
2929
languageSymbol: 'tree_sitter_angular',

packages/bash/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ const { resolvePrebuild } = require('@ast-grep/setup-lang')
55
function getLibPath() {
66
const prebuild = resolvePrebuild(__dirname)
77
if (prebuild) {
8-
return prebuild;
8+
return prebuild
99
}
1010

11-
const native = path.join(__dirname, 'parser.so');
11+
const native = path.join(__dirname, 'parser.so')
1212
if (fs.existsSync(native)) {
13-
return native;
13+
return native
1414
}
1515

16-
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.');
16+
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.')
1717
}
1818

19-
let libPath;
19+
let libPath
2020

2121
module.exports = {
2222
get libraryPath() {
2323
if (!libPath) {
24-
libPath = getLibPath();
24+
libPath = getLibPath()
2525
}
26-
return libPath;
26+
return libPath
2727
},
2828
extensions: [
2929
'bash',

packages/c/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ const { resolvePrebuild } = require('@ast-grep/setup-lang')
55
function getLibPath() {
66
const prebuild = resolvePrebuild(__dirname)
77
if (prebuild) {
8-
return prebuild;
8+
return prebuild
99
}
1010

11-
const native = path.join(__dirname, 'parser.so');
11+
const native = path.join(__dirname, 'parser.so')
1212
if (fs.existsSync(native)) {
13-
return native;
13+
return native
1414
}
1515

16-
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.');
16+
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.')
1717
}
1818

19-
let libPath;
19+
let libPath
2020

2121
module.exports = {
2222
get libraryPath() {
2323
if (!libPath) {
24-
libPath = getLibPath();
24+
libPath = getLibPath()
2525
}
26-
return libPath;
26+
return libPath
2727
},
2828
extensions: ['c', 'h'],
2929
languageSymbol: 'tree_sitter_c',

packages/cpp/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ const { resolvePrebuild } = require('@ast-grep/setup-lang')
55
function getLibPath() {
66
const prebuild = resolvePrebuild(__dirname)
77
if (prebuild) {
8-
return prebuild;
8+
return prebuild
99
}
1010

11-
const native = path.join(__dirname, 'parser.so');
11+
const native = path.join(__dirname, 'parser.so')
1212
if (fs.existsSync(native)) {
13-
return native;
13+
return native
1414
}
1515

16-
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.');
16+
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.')
1717
}
1818

19-
let libPath;
19+
let libPath
2020

2121
module.exports = {
2222
get libraryPath() {
2323
if (!libPath) {
24-
libPath = getLibPath();
24+
libPath = getLibPath()
2525
}
26-
return libPath;
26+
return libPath
2727
},
2828
extensions: ['cc', 'hpp', 'cpp', 'hh', 'cxx', 'cu', 'ino'],
2929
languageSymbol: 'tree_sitter_cpp',

packages/csharp/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ const { resolvePrebuild } = require('@ast-grep/setup-lang')
55
function getLibPath() {
66
const prebuild = resolvePrebuild(__dirname)
77
if (prebuild) {
8-
return prebuild;
8+
return prebuild
99
}
1010

11-
const native = path.join(__dirname, 'parser.so');
11+
const native = path.join(__dirname, 'parser.so')
1212
if (fs.existsSync(native)) {
13-
return native;
13+
return native
1414
}
1515

16-
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.');
16+
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.')
1717
}
1818

19-
let libPath;
19+
let libPath
2020

2121
module.exports = {
2222
get libraryPath() {
2323
if (!libPath) {
24-
libPath = getLibPath();
24+
libPath = getLibPath()
2525
}
26-
return libPath;
26+
return libPath
2727
},
2828
extensions: ['cs'],
2929
languageSymbol: 'tree_sitter_c_sharp',

packages/css/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ const { resolvePrebuild } = require('@ast-grep/setup-lang')
55
function getLibPath() {
66
const prebuild = resolvePrebuild(__dirname)
77
if (prebuild) {
8-
return prebuild;
8+
return prebuild
99
}
1010

11-
const native = path.join(__dirname, 'parser.so');
11+
const native = path.join(__dirname, 'parser.so')
1212
if (fs.existsSync(native)) {
13-
return native;
13+
return native
1414
}
1515

16-
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.');
16+
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.')
1717
}
1818

19-
let libPath;
19+
let libPath
2020

2121
module.exports = {
2222
get libraryPath() {
2323
if (!libPath) {
24-
libPath = getLibPath();
24+
libPath = getLibPath()
2525
}
26-
return libPath;
26+
return libPath
2727
},
2828
extensions: ['css', 'scss'],
2929
languageSymbol: 'tree_sitter_css',

packages/dart/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ const { resolvePrebuild } = require('@ast-grep/setup-lang')
55
function getLibPath() {
66
const prebuild = resolvePrebuild(__dirname)
77
if (prebuild) {
8-
return prebuild;
8+
return prebuild
99
}
1010

11-
const native = path.join(__dirname, 'parser.so');
11+
const native = path.join(__dirname, 'parser.so')
1212
if (fs.existsSync(native)) {
13-
return native;
13+
return native
1414
}
1515

16-
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.');
16+
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.')
1717
}
1818

19-
let libPath;
19+
let libPath
2020

2121
module.exports = {
2222
get libraryPath() {
2323
if (!libPath) {
24-
libPath = getLibPath();
24+
libPath = getLibPath()
2525
}
26-
return libPath;
26+
return libPath
2727
},
2828
extensions: ['dart'],
2929
languageSymbol: 'tree_sitter_dart',

packages/elixir/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ const { resolvePrebuild } = require('@ast-grep/setup-lang')
55
function getLibPath() {
66
const prebuild = resolvePrebuild(__dirname)
77
if (prebuild) {
8-
return prebuild;
8+
return prebuild
99
}
1010

11-
const native = path.join(__dirname, 'parser.so');
11+
const native = path.join(__dirname, 'parser.so')
1212
if (fs.existsSync(native)) {
13-
return native;
13+
return native
1414
}
1515

16-
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.');
16+
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.')
1717
}
1818

19-
let libPath;
19+
let libPath
2020

2121
module.exports = {
2222
get libraryPath() {
2323
if (!libPath) {
24-
libPath = getLibPath();
24+
libPath = getLibPath()
2525
}
26-
return libPath;
26+
return libPath
2727
},
2828
extensions: ['ex', 'exs'],
2929
languageSymbol: 'tree_sitter_elixir',

packages/go/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ const { resolvePrebuild } = require('@ast-grep/setup-lang')
55
function getLibPath() {
66
const prebuild = resolvePrebuild(__dirname)
77
if (prebuild) {
8-
return prebuild;
8+
return prebuild
99
}
1010

11-
const native = path.join(__dirname, 'parser.so');
11+
const native = path.join(__dirname, 'parser.so')
1212
if (fs.existsSync(native)) {
13-
return native;
13+
return native
1414
}
1515

16-
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.');
16+
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.')
1717
}
1818

19-
let libPath;
19+
let libPath
2020

2121
module.exports = {
2222
get libraryPath() {
2323
if (!libPath) {
24-
libPath = getLibPath();
24+
libPath = getLibPath()
2525
}
26-
return libPath;
26+
return libPath
2727
},
2828
extensions: ['go'],
2929
languageSymbol: 'tree_sitter_go',

packages/haskell/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ const { resolvePrebuild } = require('@ast-grep/setup-lang')
55
function getLibPath() {
66
const prebuild = resolvePrebuild(__dirname)
77
if (prebuild) {
8-
return prebuild;
8+
return prebuild
99
}
1010

11-
const native = path.join(__dirname, 'parser.so');
11+
const native = path.join(__dirname, 'parser.so')
1212
if (fs.existsSync(native)) {
13-
return native;
13+
return native
1414
}
1515

16-
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.');
16+
throw new Error('No parser found. Please ensure the parser is built or a prebuild is available.')
1717
}
1818

19-
let libPath;
19+
let libPath
2020

2121
module.exports = {
2222
get libraryPath() {
2323
if (!libPath) {
24-
libPath = getLibPath();
24+
libPath = getLibPath()
2525
}
26-
return libPath;
26+
return libPath
2727
},
2828
extensions: ['hs'],
2929
languageSymbol: 'tree_sitter_haskell',

0 commit comments

Comments
 (0)