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

Commit c3c9031

Browse files
committed
feat: convert to typescript
1 parent 76868ce commit c3c9031

File tree

8 files changed

+96
-4
lines changed

8 files changed

+96
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
npm-debug.log
33
node_modules
4+
dist

lib/main.js renamed to lib/main.ts

File renamed without changes.

lib/tsconfig.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"compilerOptions": {
3+
"strict": false,
4+
"strictNullChecks": false,
5+
"noUnusedLocals": false,
6+
"noUnusedParameters": false,
7+
"noImplicitReturns": false,
8+
"noImplicitAny": false,
9+
"noImplicitThis": false,
10+
"noFallthroughCasesInSwitch": false,
11+
"declaration": true,
12+
"emitDecoratorMetadata": true,
13+
"experimentalDecorators": true,
14+
"incremental": true,
15+
"inlineSourceMap": true,
16+
"inlineSources": true,
17+
"preserveSymlinks": true,
18+
"removeComments": true,
19+
"lib": ["ES2018", "dom"],
20+
"target": "ES2018",
21+
"allowJs": true,
22+
"esModuleInterop": true,
23+
"module": "commonjs",
24+
"moduleResolution": "node",
25+
"importHelpers": false,
26+
"outDir": "../dist"
27+
},
28+
"compileOnSave": true
29+
}
File renamed without changes.
File renamed without changes.

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linter-tslint",
3-
"main": "./lib/main.js",
3+
"main": "./dist/main.js",
44
"version": "1.10.43",
55
"description": "Linter plugin for Typescript, using tslint",
66
"repository": {
@@ -12,7 +12,12 @@
1212
"test.format": "prettier . --check",
1313
"lint": "eslint . --fix",
1414
"test.lint": "eslint .",
15-
"test": "atom --test spec"
15+
"test": "npm run build && atom --test spec",
16+
"clean": "shx rm -rf dist",
17+
"dev": "npm run build -- --watch",
18+
"build": "tsc -p lib/tsconfig.json || echo done",
19+
"build-commit": "build-commit -o dist",
20+
"prepare": "npm run build"
1621
},
1722
"license": "MIT",
1823
"engines": {
@@ -101,9 +106,11 @@
101106
"@types/atom": "^1.40.10",
102107
"@types/node": "^14.14.37",
103108
"@types/resolve": "^1.20.0",
109+
"build-commit": "^0.1.4",
104110
"eslint": "7.23.0",
105111
"eslint-config-atomic": "^1.12.5",
106-
"jasmine-fix": "1.3.1"
112+
"jasmine-fix": "1.3.1",
113+
"shx": "^0.3.3"
107114
},
108115
"eslintConfig": {
109116
"extends": "eslint-config-atomic"

pnpm-lock.yaml

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/linter-tslint-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

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

0 commit comments

Comments
 (0)