diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..3ee2678 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,27 @@ +/** @type {import('eslint').ESLint.Options} */ +module.exports = { + extends: ["./node_modules/@itsmapleleaf/configs/eslint"], + ignorePatterns: [ + "**/node_modules/**", + "**/.cache/**", + "**/build/**", + "**/dist/**", + "**/coverage/**", + "**/public/**", + ], + parserOptions: { + project: require.resolve("./tsconfig.base.json"), + }, + rules: { + "import/no-unused-modules": "off", + "unicorn/prevent-abbreviations": "off", + }, + overrides: [ + { + files: ["packages/website/cypress/**"], + parserOptions: { + project: require.resolve("./packages/website/cypress/tsconfig.json"), + }, + }, + ], +} diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 82464ae..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "extends": ["./node_modules/@itsmapleleaf/configs/eslint"], - "ignorePatterns": [ - "**/node_modules/**", - "**/.cache/**", - "**/build/**", - "**/dist/**", - "**/coverage/**", - "**/public/**" - ], - "parserOptions": { - "project": "./tsconfig.base.json" - }, - "rules": { - "import/no-unused-modules": "off", - "unicorn/prevent-abbreviations": "off" - }, - "overrides": [ - { - "files": ["packages/website/cypress/**"], - "parserOptions": { - "project": "./packages/website/cypress/tsconfig.json" - } - } - ] -}