Skip to content

Commit

Permalink
Add ESLint Plugin TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 25, 2019
1 parent 2bb4020 commit 3bc641c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
extends:
- openlayers
- plugin:@typescript-eslint/recommended
env:
jquery: true
parserOptions:
ecmaVersion: 2017
project: ./tsconfig.json
rules:
no-console: 0
comma-dangle: 0
Expand All @@ -13,3 +15,23 @@ rules:
- error
- code: 110
ignoreComments: true
'@typescript-eslint/indent': 0
'@typescript-eslint/no-unused-vars': 0
'@typescript-eslint/no-use-before-define': 0
'@typescript-eslint/camelcase': 0
'@typescript-eslint/no-unnecessary-type-assertion':
- error
'@typescript-eslint/no-for-in-array':
- error
'@typescript-eslint/no-this-alias':
- error
'@typescript-eslint/no-useless-constructor':
- error
'@typescript-eslint/prefer-for-of':
- error
'@typescript-eslint/prefer-includes':
- error
'@typescript-eslint/prefer-string-starts-ends-with':
- error
'@typescript-eslint/restrict-plus-operands':
- error
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ gh-pages: .build/python-venv.timestamp
$(GMF_TEST_JS_FILES) \
$(GMF_JS_FILES) \
$(GMF_EXAMPLES_JS_FILES) \
$(GMF_APPS_JS_FILES) \
$(WEBPACK_CONFIG_FILES)
$(GMF_APPS_JS_FILES)
./node_modules/.bin/eslint $(filter-out .build/node_modules.timestamp $(ESLINT_CONFIG_FILES), $^)
touch $@

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"@types/proj4": "^2.5.0",
"@types/sinon": "^7.0.13",
"@types/typeahead": "^0.11.32",
"@typescript-eslint/eslint-plugin": "^1.11.0",
"angular": "1.7.8",
"angular-animate": "^1.7.8",
"angular-dynamic-locale": "^0.1.37",
Expand Down

0 comments on commit 3bc641c

Please sign in to comment.