Skip to content

Commit eb0c9c3

Browse files
amiraliesjaredly
authored andcommitted
Add coc.nvim extension (#333)
* Init coc.nvim * Add build deps * Add build config * Add eslint * Add basic extension * Add prettier config * Add babel preset target * Add command extraction impl * Add current release version * Update gitignore * Add npm scripts * Add npmignore * Add npm metadata
1 parent 6282bc9 commit eb0c9c3

File tree

13 files changed

+5052
-0
lines changed

13 files changed

+5052
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib/
2+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
extends: airbnb-base
2+
parser: babel-eslint
3+
4+
rules:
5+
import/no-extraneous-dependencies: 'off'
6+
import/prefer-default-export: 'off'
7+
arrow-parens: 'off'
8+
object-curly-newline: 'off'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[ignore]
2+
3+
[include]
4+
5+
[libs]
6+
7+
[lints]
8+
9+
[options]
10+
11+
[strict]
12+
13+
[version]
14+
0.108.0
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/
2+
lib/
3+
rls/rls-*/
4+
rls/rls-*.zip
5+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.vim/
2+
src/
3+
.eslintignore
4+
.eslintrc.yml
5+
.flowconfig
6+
.prettierrc.yml
7+
babel.config.js
8+
webpack.config.js
9+
*.log
10+
*.tgz
11+
12+
rls/rls-*/
13+
rls/rls-*.zip
14+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
printWidth: 120
2+
tabWidth: 2
3+
semi: true
4+
singleQuote: true
5+
jsxSingleQuote: false
6+
trailingComma: all
7+
bracketSpacing: true
8+
jsxBracketSameLine: false
9+
endOfLine: lf
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "tsserver.enable": false }
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const config = {
2+
presets: [
3+
[
4+
'@babel/env',
5+
{
6+
targets: {
7+
node: '10',
8+
},
9+
},
10+
],
11+
'@babel/flow',
12+
],
13+
};
14+
15+
module.exports = config;
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "coc-reason",
3+
"version": "0.0.1",
4+
"main": "lib/index.js",
5+
"description": "coc.nvim Reason language server extension",
6+
"keywords": [
7+
"coc.nvim",
8+
"reason",
9+
"vim",
10+
"lsp"
11+
],
12+
"author": {
13+
"name": "Amirali Esmaeili",
14+
"email": "[email protected]"
15+
},
16+
"license": "MIT",
17+
"scripts": {
18+
"lint": "eslint .",
19+
"flow": "flow .",
20+
"check": "npm run lint && npm run flow",
21+
"clean": "rm -rf lib/",
22+
"build": "webpack",
23+
"watch": "webpack --watch",
24+
"prepare": "npm run check && npm run clean && npm run build"
25+
},
26+
"engines": {
27+
"coc": "^0.0.4"
28+
},
29+
"devDependencies": {
30+
"@babel/core": "^7.6.0",
31+
"@babel/preset-env": "^7.6.0",
32+
"@babel/preset-flow": "^7.0.0",
33+
"babel-eslint": "^10.0.3",
34+
"babel-loader": "^8.0.6",
35+
"coc.nvim": "^0.0.73",
36+
"eslint": "^6.4.0",
37+
"eslint-config-airbnb-base": "^14.0.0",
38+
"eslint-plugin-import": "^2.18.2",
39+
"flow-bin": "^0.108.0",
40+
"webpack": "^4.40.2",
41+
"webpack-cli": "^3.3.9"
42+
},
43+
"dependencies": {
44+
"adm-zip": "^0.4.13",
45+
"axios": "^0.19.0"
46+
}
47+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
1.7.1
2+

0 commit comments

Comments
 (0)