Skip to content

Commit 0c66819

Browse files
committed
Remove tslint and add eslint and prettier
1 parent ed20e44 commit 0c66819

10 files changed

+1478
-629
lines changed

.eslintrc.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
ecmaVersion: 2020,
5+
sourceType: 'module',
6+
},
7+
extends: ['plugin:@typescript-eslint/recommended', 'prettier/@typescript-eslint'],
8+
rules: {},
9+
};

.prettierrc

Whitespace-only changes.

.prettierrc.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
semi: true,
3+
trailingComma: "all",
4+
singleQuote: true,
5+
printWidth: 120
6+
};

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ This project adheres to the Contributor Covenant [code of conduct](.github/CODE_
66
By participating, you are expected to uphold this code.
77

88
* Clone this repo and run `npm install`.
9-
* Write tests for your changes in `test/IBANToolsTest.ts`.
9+
* Write tests for your changes in `test/ibantools_test.js`.
1010
* Do not write more tests in `karma/ibantoolsSpec.js` unless module have problem with loading using AMD.
11-
* Before making pull requests run `gulp all && gulp test && gulp karma`.
11+
* Before making pull requests run `gulp all && gulp test && gulp karma && gulp lint`.
1212
* Make sure that test coverage stays at 100%.
1313
* Try not to make pull requests with changes in `dist`, `jsnext` or `build` directories.

gulpfile.js

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ gulp.task("karma", function(done) {
1919
).start();
2020
});
2121

22+
// lint files
23+
gulp.task("lint", shell.task(["eslint 'src/**/*.ts' 'test/**/*.js'"]));
24+
2225
// generate coverage report
2326
gulp.task(
2427
"nyc",

0 commit comments

Comments
 (0)