diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..6313b56c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5ee91f8b..ba1d31a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,8 +50,8 @@ jobs: - name: Install Node dependencies run: npm install - # - name: Run linter - # run: npm run lint + - name: Run linter + run: npm run lint - name: Build run: npm run build diff --git a/package.json b/package.json index 9dc0cd84..8363ee4c 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "clean": "rimraf dist/**/*", "build": "npm run clean && ttsc", "build:watch": "npm run clean && ttsc -watch", - "lint": "tslint '*/src/**/*.ts' 'spec/**/*.ts'", + "lint": "tslint '*/src/**/*.ts' 'spec/**/*.ts' && prettier --check .", "lint:fix": "tslint '*/src/**/*.ts' 'spec/**/*.ts' --fix", "prettier": "prettier --write .", "test": "karma start ./spec/support/karma.conf.js --single-run",