diff options
author | Matthew Miller <matthew@millerti.me> | 2020-05-25 11:35:42 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-05-25 11:35:42 -0700 |
commit | 0b7223af636ff254b41de385bfd15c7fbbb5cd95 (patch) | |
tree | 4ff8368a4f1761ee268356690b919d12722d4ed5 | |
parent | ba57975ef45d2aa77a69963caebc6d339dcd197f (diff) |
Set up ESLint
-rw-r--r-- | .eslintignore | 6 | ||||
-rw-r--r-- | .eslintrc.js | 15 |
2 files changed, 21 insertions, 0 deletions
diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..3927d49 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,6 @@ +node_modules/ +dist/ +coverage/ +*.test.ts +*.config.js +setupTests.ts diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..c02db6f --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,15 @@ +module.exports = { + root: true, + env: { + browser: true, + node: true, + }, + parser: '@typescript-eslint/parser', + plugins: [ + '@typescript-eslint', + ], + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + ], +}; |