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

Commit

Permalink
feat: convert to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Apr 5, 2021
1 parent 76868ce commit c3c9031
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
npm-debug.log
node_modules
dist
File renamed without changes.
29 changes: 29 additions & 0 deletions lib/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"compilerOptions": {
"strict": false,
"strictNullChecks": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noImplicitReturns": false,
"noImplicitAny": false,
"noImplicitThis": false,
"noFallthroughCasesInSwitch": false,
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"incremental": true,
"inlineSourceMap": true,
"inlineSources": true,
"preserveSymlinks": true,
"removeComments": true,
"lib": ["ES2018", "dom"],
"target": "ES2018",
"allowJs": true,
"esModuleInterop": true,
"module": "commonjs",
"moduleResolution": "node",
"importHelpers": false,
"outDir": "../dist"
},
"compileOnSave": true
}
File renamed without changes.
File renamed without changes.
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linter-tslint",
"main": "./lib/main.js",
"main": "./dist/main.js",
"version": "1.10.43",
"description": "Linter plugin for Typescript, using tslint",
"repository": {
Expand All @@ -12,7 +12,12 @@
"test.format": "prettier . --check",
"lint": "eslint . --fix",
"test.lint": "eslint .",
"test": "atom --test spec"
"test": "npm run build && atom --test spec",
"clean": "shx rm -rf dist",
"dev": "npm run build -- --watch",
"build": "tsc -p lib/tsconfig.json || echo done",
"build-commit": "build-commit -o dist",
"prepare": "npm run build"
},
"license": "MIT",
"engines": {
Expand Down Expand Up @@ -101,9 +106,11 @@
"@types/atom": "^1.40.10",
"@types/node": "^14.14.37",
"@types/resolve": "^1.20.0",
"build-commit": "^0.1.4",
"eslint": "7.23.0",
"eslint-config-atomic": "^1.12.5",
"jasmine-fix": "1.3.1"
"jasmine-fix": "1.3.1",
"shx": "^0.3.3"
},
"eslintConfig": {
"extends": "eslint-config-atomic"
Expand Down
55 changes: 55 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spec/linter-tslint-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as path from 'path';
import { it, beforeEach, afterEach } from 'jasmine-fix';
import linterTslint from '../lib/main';
import linterTslint from '../dist/main';

// Fixture paths
const invalidPath = path.join(__dirname, 'fixtures', 'invalid', 'invalid.ts');
Expand Down

0 comments on commit c3c9031

Please sign in to comment.