Skip to content

Commit

Permalink
Typescript linter (#68)
Browse files Browse the repository at this point in the history
* add extension

* add example.ts
  • Loading branch information
dzencot committed May 12, 2023
1 parent 2c874fa commit 61e2857
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions eslint/app/example.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// import { cons, car, cdr, pair, } from 'hexlet-pairs';
// import f from './f';

// f();
// const b = A();

// const square = a => a ** 2;

// export { square };

const _jopa = 'lala';

console.log(__dirname);
console.log(__filename);
console.log(_jopa);
2 changes: 1 addition & 1 deletion eslint/linter
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
ESLINT_FORMAT="${ESLINT_FORMAT:-stylish}"
LINTER_HOME=$(dirname $0)

NODE_PATH=$LINTER_HOME/node_modules $LINTER_HOME/node_modules/.bin/eslint -f $ESLINT_FORMAT -c $LINTER_HOME/.eslintrc.yml --ext .js,.jsx /usr/src/app
NODE_PATH=$LINTER_HOME/node_modules $LINTER_HOME/node_modules/.bin/eslint -f $ESLINT_FORMAT -c $LINTER_HOME/.eslintrc.yml --ext .js,.jsx,.ts /usr/src/app

0 comments on commit 61e2857

Please sign in to comment.