update dependencies & adopt eslint
This commit is contained in:
Родитель
1fadf89f29
Коммит
fbdc727b03
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"root": true,
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 6,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": [
|
||||
"@typescript-eslint"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/class-name-casing": "warn",
|
||||
"@typescript-eslint/semi": "warn",
|
||||
"curly": "warn",
|
||||
"eqeqeq": "warn",
|
||||
"no-throw-literal": "warn",
|
||||
"semi": "off"
|
||||
}
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
lib/
|
||||
node_modules/
|
||||
|
||||
.nyc_output/
|
||||
coverage/
|
||||
yarn.lock
|
||||
yarn.lock
|
||||
|
|
|
@ -8,5 +8,5 @@ src/
|
|||
test/
|
||||
.gitignore
|
||||
.travis.yml
|
||||
tslint.json
|
||||
.eslintrc.json
|
||||
gulpfile.js
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
14
package.json
14
package.json
|
@ -15,19 +15,21 @@
|
|||
"url": "https://github.com/Microsoft/vscode-json-languageservice"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/mocha": "^7.0.1",
|
||||
"@types/mocha": "^7.0.2",
|
||||
"@types/node": "^10.12.21",
|
||||
"mocha": "^7.0.1",
|
||||
"@typescript-eslint/eslint-plugin": "^2.30.0",
|
||||
"@typescript-eslint/parser": "^2.30.0",
|
||||
"eslint": "^6.8.0",
|
||||
"mocha": "^7.1.2",
|
||||
"nyc": "^15.0.1",
|
||||
"rimraf": "^3.0.2",
|
||||
"tslint": "^6.0.0",
|
||||
"typescript": "^3.8.2"
|
||||
"typescript": "^3.8.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"jsonc-parser": "^2.2.1",
|
||||
"vscode-languageserver-textdocument": "^1.0.1",
|
||||
"vscode-languageserver-types": "^3.15.1",
|
||||
"vscode-nls": "^4.1.1",
|
||||
"vscode-nls": "^4.1.2",
|
||||
"vscode-uri": "^2.1.1"
|
||||
},
|
||||
"scripts": {
|
||||
|
@ -42,7 +44,7 @@
|
|||
"test": "mocha",
|
||||
"posttest": "npm run lint",
|
||||
"coverage": "nyc -r lcov npm run test",
|
||||
"lint": "tslint src/**/*.ts",
|
||||
"lint": "eslint src/**/*.ts",
|
||||
"install-types-next": "npm install vscode-languageserver-types@next -f -S && npm install vscode-languageserver-textdocument@next -f -S",
|
||||
"preversion": "npm test",
|
||||
"postversion": "git push && git push --tags"
|
||||
|
|
19
tslint.json
19
tslint.json
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"rules": {
|
||||
"no-unused-expression": true,
|
||||
"no-duplicate-imports": true,
|
||||
"no-require-imports": true,
|
||||
"new-parens": true,
|
||||
"no-invalid-this": true,
|
||||
"no-string-throw": true,
|
||||
"no-duplicate-variable": true,
|
||||
"curly": true,
|
||||
"indent": [true, "tabs", 2],
|
||||
"class-name": true,
|
||||
"semicolon": [
|
||||
true,
|
||||
"always"
|
||||
],
|
||||
"triple-equals": true
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче