diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..ec4788a --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,24 @@ +module.exports = { + root: true, + extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], + parser: "@typescript-eslint/parser", + plugins: ["@typescript-eslint"], + root: true, + ignorePatterns: [ + "dist/**/*.*", + ".eslintrc.js", + "jest.config.js", + "docs/**/*.*", + ], + rules: { + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + "warn", // or "error" + { + argsIgnorePattern: "^_", + varsIgnorePattern: "^_", + caughtErrorsIgnorePattern: "^_", + }, + ], + }, +}; diff --git a/apps/cidlang/.eslintrc.js b/apps/cidlang/.eslintrc.js index 687d4af..33335c2 100644 --- a/apps/cidlang/.eslintrc.js +++ b/apps/cidlang/.eslintrc.js @@ -1,23 +1,3 @@ module.exports = { - extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], - parser: "@typescript-eslint/parser", - plugins: ["@typescript-eslint"], - root: true, - ignorePatterns: [ - "dist/**/*.*", - ".eslintrc.js", - "jest.config.js", - "docs/**/*.*", - ], - rules: { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - "warn", // or "error" - { - argsIgnorePattern: "^_", - varsIgnorePattern: "^_", - caughtErrorsIgnorePattern: "^_", - }, - ], - }, + extends: ["../../.eslintrc.js"], }; diff --git a/apps/cidrepl/.eslintrc.js b/apps/cidrepl/.eslintrc.js index 687d4af..33335c2 100644 --- a/apps/cidrepl/.eslintrc.js +++ b/apps/cidrepl/.eslintrc.js @@ -1,23 +1,3 @@ module.exports = { - extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], - parser: "@typescript-eslint/parser", - plugins: ["@typescript-eslint"], - root: true, - ignorePatterns: [ - "dist/**/*.*", - ".eslintrc.js", - "jest.config.js", - "docs/**/*.*", - ], - rules: { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - "warn", // or "error" - { - argsIgnorePattern: "^_", - varsIgnorePattern: "^_", - caughtErrorsIgnorePattern: "^_", - }, - ], - }, + extends: ["../../.eslintrc.js"], }; diff --git a/packages/lib/.eslintrc.js b/packages/lib/.eslintrc.js index 687d4af..33335c2 100644 --- a/packages/lib/.eslintrc.js +++ b/packages/lib/.eslintrc.js @@ -1,23 +1,3 @@ module.exports = { - extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], - parser: "@typescript-eslint/parser", - plugins: ["@typescript-eslint"], - root: true, - ignorePatterns: [ - "dist/**/*.*", - ".eslintrc.js", - "jest.config.js", - "docs/**/*.*", - ], - rules: { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - "warn", // or "error" - { - argsIgnorePattern: "^_", - varsIgnorePattern: "^_", - caughtErrorsIgnorePattern: "^_", - }, - ], - }, + extends: ["../../.eslintrc.js"], };