Skip to content

Commit

Permalink
feat(eslint-config): no delete and arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed Feb 7, 2024
1 parent 060128e commit f7f8b93
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/tender-glasses-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@git-validator/eslint-config": patch
"git-validator": patch
---

feat(eslint-config): no delete and arguments
1 change: 1 addition & 0 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-fp": "^2.3.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.5.0",
"eslint-plugin-promise": "^6.1.1",
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-config/src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import process from "node:process";
import gitValidatorPlugin from "@git-validator/eslint-plugin";
import { gitignoreToMinimatch } from "@humanwhocodes/gitignore-to-minimatch";
import tsPlugin from "@typescript-eslint/eslint-plugin";
import fpPlugin from "eslint-plugin-fp";
import importPlugin from "eslint-plugin-import";
import nPlugin from "eslint-plugin-n";
import promisePlugin from "eslint-plugin-promise";
Expand Down Expand Up @@ -49,6 +50,7 @@ export default [
reportUnusedDisableDirectives: true,
},
plugins: {
fp: fpPlugin,
n: nPlugin,
import: importPlugin,
promise: promisePlugin,
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-config/src/js-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export default {
"import/no-relative-packages": "error", // forbid to import module from other monorepo packages by relative paths
"import/no-mutable-exports": "error", // forbid code like `export let count = 3`
// "import/no-named-as-default-member": "error", // forbid code like `import foo from './foo.js'; const bar = foo.bar;`
"fp/no-arguments": "error",
"fp/no-delete": "error",
"n/prefer-global/process": ["error", "never"],
"n/prefer-global/buffer": ["error", "never"],
"n/no-sync": "error",
Expand Down

0 comments on commit f7f8b93

Please sign in to comment.