Skip to content

Commit

Permalink
Set up ESLint (r0adkll#138)
Browse files Browse the repository at this point in the history
* Add eslint and config

* Refactor edits.ts to comply with eslint

* Refactor whatsnew.ts to comply with eslint

* Fix final ESLint issues

* Run build
  • Loading branch information
boswelja authored Sep 12, 2022
1 parent 5427bcb commit b028ed8
Show file tree
Hide file tree
Showing 7 changed files with 1,909 additions and 143 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
ignorePatterns: ["lib/*.js", "jest.config.js", "__tests__/**"]
};
2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit b028ed8

Please sign in to comment.