Skip to content

Commit

Permalink
fix: use tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
didoda committed Jan 26, 2022
1 parent fafb535 commit c017fc8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 661 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

12 changes: 0 additions & 12 deletions .eslintrc

This file was deleted.

9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
"description": "A simple BEdita SDK based on axios",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "./node_modules/.bin/tsc",
"test": "TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\" }' mocha -r ts-node/register --require mock-local-storage --require tests/hooks.ts tests/**/*.test.ts",
"coverage": "nyc yarn run test",
"lint": "eslint . --ext .ts"
"lint": "tslint -c tslint.json 'src/**/*{.ts,.tsx}'"
},
"author": "Atlas <dev@atlasconsulting.it> (https://atlasconsulting.it)",
"license": "MIT",
Expand All @@ -24,10 +22,7 @@
"@types/chai": "^4.3.0",
"@types/mocha": "^9.0.0",
"@types/node": "^17.0.4",
"@typescript-eslint/eslint-plugin": "^5.10.1",
"@typescript-eslint/parser": "^5.10.1",
"chai": "^4.3.4",
"eslint": "^8.7.0",
"mocha": "^9.1.3",
"mock-local-storage": "^1.1.11",
"nyc": "^15.0.1",
Expand Down
30 changes: 0 additions & 30 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
{
"extends": "tslint:recommended",
"rulesDirectory": [
"codelyzer"
],
"rules": {
"array-type": false,
"arrow-parens": false,
"deprecation": {
"severity": "warn"
},
"import-blacklist": [
true,
"rxjs/Rx"
Expand Down Expand Up @@ -46,9 +40,7 @@
"ignore-params"
],
"no-non-null-assertion": true,
"no-redundant-jsdoc": true,
"no-switch-case-fall-through": true,
"no-use-before-declare": true,
"no-var-requires": false,
"object-literal-key-quotes": [
true,
Expand All @@ -61,29 +53,7 @@
"single"
],
"trailing-comma": false,
"no-output-on-prefix": true,
"no-inputs-metadata-property": true,
"no-host-metadata-property": true,
"no-input-rename": true,
"no-output-rename": true,
"use-lifecycle-interface": true,
"use-pipe-transform-interface": true,
"one-variable-per-declaration": false,
"component-class-suffix": [true, "Page", "Component"],
"directive-class-suffix": true,
"directive-selector": [
true,
"attribute",
"app",
"camelCase"
],
"component-selector": [
true,
"element",
"app",
"page",
"kebab-case"
],
"indent": [
true,
"spaces",
Expand Down
Loading

0 comments on commit c017fc8

Please sign in to comment.