Skip to content

Commit

Permalink
Use common eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleect committed Sep 15, 2023
1 parent 095251d commit d4962f1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 63 deletions.
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -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: "^_",
},
],
},
};
22 changes: 1 addition & 21 deletions apps/cidlang/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -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"],
};
22 changes: 1 addition & 21 deletions apps/cidrepl/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -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"],
};
22 changes: 1 addition & 21 deletions packages/lib/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -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"],
};

0 comments on commit d4962f1

Please sign in to comment.