Skip to content

Commit

Permalink
Updating package.json and adding eslint + jest
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdowns committed Jun 2, 2021
1 parent 6ed35a7 commit d71a519
Show file tree
Hide file tree
Showing 6 changed files with 8,907 additions and 174 deletions.
9 changes: 9 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dist/
docs/
node_modules/
public/
scripts/
src/stories/

jest.config.js
webpack.config.js
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
settings: {
browser: true,
jest: true,
react: {
version: 'detect'
}
},
extends: [
'plugin:@typescript-eslint/recommended'
],
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
}
};
Loading

0 comments on commit d71a519

Please sign in to comment.