Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
feat: add sonar config, eslint-plugin-sonarjs replaces tslint-sonarts
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Nov 6, 2019
1 parent e821e8d commit 2f6fe5d
Show file tree
Hide file tree
Showing 3 changed files with 4,593 additions and 835 deletions.
35 changes: 12 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,35 @@
{
"name": "tslint-config-eslint",
"version": "0.1.1",
"version": "0.2.0",
"description": "Yet another TSLint Configuration which disables all rules which has been handled by `eslint` or `@typescript-eslint`.",
"repository": "git@github.com:rx-ts/tslint-config-eslint.git",
"author": "JounQin <admin@1stg.me>",
"license": "MIT",
"main": "base.json",
"files": [
"base.json",
"prettier.json"
"prettier.json",
"sonar.json"
],
"scripts": {
"build": "ts-node build",
"lint": "eslint . --ext jd,md,ts -f friendly",
"type-coverage": "type-coverage --cache --detail --ignore-files *.d.ts --strict"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": "^2.3.1",
"tslint": "^5.20.0",
"typescript": ">=3.5.3"
"@typescript-eslint/eslint-plugin": ">=2.0.0",
"tslint": ">=5.0.0",
"typescript": ">=3.0.0"
},
"devDependencies": {
"@1stg/babel-preset": "^0.7.0",
"@1stg/commitlint-config": "^0.1.0",
"@1stg/eslint-config": "^0.12.12",
"@1stg/husky-config": "^0.3.0",
"@1stg/lint-staged": "^0.8.0",
"@1stg/prettier-config": "^0.3.1",
"@1stg/remark-config": "^0.2.1",
"@1stg/tsconfig": "^0.6.0",
"@1stg/tslint-config": "^0.4.0",
"@babel/core": "^7.6.2",
"@commitlint/cli": "^8.2.0",
"@types/node": "^12.7.7",
"eslint": "^6.4.0",
"husky": "^3.0.5",
"lint-staged": "^9.3.0",
"prettier": "^1.18.2",
"@1stg/lib-config": "^0.1.9",
"@1stg/tslint-config": "^0.5.5",
"@babel/core": "^7.7.0",
"@types/node": "^12.12.6",
"ts-node": "^8.4.1",
"tslint": "^5.20.0",
"tslint": "^5.20.1",
"type-coverage": "^2.3.0",
"typescript": "^3.6.3"
"typescript": "^3.7.2"
},
"typeCoverage": {
"atLeast": 100
Expand Down
18 changes: 18 additions & 0 deletions sonar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "http://json.schemastore.org/tslint",
"extends": "./base.json",
"rules": {
"cognitive-complexity": false,
"max-switch-cases": false,
"no-big-function": false,
"no-collapsible-if": false,
"no-duplicate-string": false,
"no-duplicated-branches": false,
"no-identical-functions": false,
"no-inverted-boolean-check": false,
"no-redundant-boolean": false,
"no-small-switch": false,
"no-useless-catch": false,
"prefer-immediate-return": false
}
}
Loading

0 comments on commit 2f6fe5d

Please sign in to comment.