aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authorUri Shaked2019-12-07 22:18:00 +0200
committerUri Shaked2019-12-07 22:18:00 +0200
commit07ddaa7d22f31de5d5c3b9c6d4626c59cf25a244 (patch)
tree12a64bfbc4ea18997923f14b44725cb0e118c949 /.eslintrc.json
parentfeat: publish both CJS and ESM to npm (diff)
downloadavr8js-07ddaa7d22f31de5d5c3b9c6d4626c59cf25a244.tar.gz
avr8js-07ddaa7d22f31de5d5c3b9c6d4626c59cf25a244.tar.bz2
avr8js-07ddaa7d22f31de5d5c3b9c6d4626c59cf25a244.zip
refactor: tslint → eslint
Diffstat (limited to '')
-rw-r--r--.eslintrc.json25
1 files changed, 25 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000..04b822e
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,25 @@
+{
+ "parser": "@typescript-eslint/parser",
+ "parserOptions": {
+ "ecmaVersion": 2018,
+ "sourceType": "module"
+ },
+ "plugins": ["jest", "@typescript-eslint", "prettier", "json"],
+ "env": {
+ "browser": true,
+ "es6": true,
+ "node": true,
+ "jest/globals": true
+ },
+ "extends": [
+ "plugin:jest/recommended",
+ "eslint:recommended",
+ "plugin:@typescript-eslint/recommended",
+ "prettier/@typescript-eslint",
+ "plugin:prettier/recommended"
+ ],
+ "rules": {
+ "prettier/prettier": "error",
+ "@typescript-eslint/explicit-function-return-type": 0
+ }
+}