From 316c6443b4dfb2050a524ed64e07f93a419315b7 Mon Sep 17 00:00:00 2001 From: Dominik Piatek Date: Mon, 7 Aug 2023 09:45:04 +0200 Subject: [PATCH] Use json eslint config The parser used for eslint was not happy with using a commonjs module as config. --- .eslintrc.js | 2 +- demo-react/.eslintrc | 20 ++++++++++++++++++++ demo-react/.eslintrc.js | 20 -------------------- 3 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 demo-react/.eslintrc delete mode 100644 demo-react/.eslintrc.js diff --git a/.eslintrc.js b/.eslintrc.js index 3cf642e9..b48ec11c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -42,7 +42,7 @@ module.exports = { extends: ['plugin:jsdoc/recommended'], }, ], - ignorePatterns: ['dist', 'build', 'demo-react'], + ignorePatterns: ['dist', 'build'], settings: { jsdoc: { tagNamePreference: { diff --git a/demo-react/.eslintrc b/demo-react/.eslintrc new file mode 100644 index 00000000..2e700580 --- /dev/null +++ b/demo-react/.eslintrc @@ -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"] + } + } + ] +} diff --git a/demo-react/.eslintrc.js b/demo-react/.eslintrc.js deleted file mode 100644 index 52aecaab..00000000 --- a/demo-react/.eslintrc.js +++ /dev/null @@ -1,20 +0,0 @@ -module.exports = { - env: { - es6: true, - node: true, - browser: true, - }, - parser: '@typescript-eslint/parser', - parserOptions: { - sourceType: 'module', - }, - plugins: ['import'], - overrides: [ - { - files: ['**/*.{ts,tsx}'], - rules: { - 'import/extensions': ['off'], - }, - }, - ], -};