Skip to content

Commit

Permalink
Use json eslint config
Browse files Browse the repository at this point in the history
The parser used for eslint was not happy with using a commonjs module as config.
  • Loading branch information
Dominik Piatek committed Aug 7, 2023
1 parent 36a0faa commit 316c644
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = {
extends: ['plugin:jsdoc/recommended'],
},
],
ignorePatterns: ['dist', 'build', 'demo-react'],
ignorePatterns: ['dist', 'build'],
settings: {
jsdoc: {
tagNamePreference: {
Expand Down
20 changes: 20 additions & 0 deletions demo-react/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"env": {
"es6": true,
"node": true,
"browser": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"plugins": ["import"],
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"rules": {
"import/extensions": ["off"]
}
}
]
}
20 changes: 0 additions & 20 deletions demo-react/.eslintrc.js

This file was deleted.

0 comments on commit 316c644

Please sign in to comment.