Skip to content

Commit

Permalink
remove fp plugin (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
nowyDEV authored Jun 30, 2022
1 parent d823c52 commit c5f93ac
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 149 deletions.
1 change: 0 additions & 1 deletion mixins/cypress.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module.exports = {
"promise/catch-or-return": "off",
"promise/no-nesting": "off",
"promise/always-return": "off",
"fp/no-loops": "off",
},
},
],
Expand Down
16 changes: 0 additions & 16 deletions mixins/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,6 @@ module.exports = {
],

rules: {
"fp/no-mutation": [
"warn",
{
commonjs: true,
exceptions: [
{ object: "window", property: "location" },
// Usage with React refs
{ property: "current" },
],
},
],

// avoid false-positives for module bundlers resolution
"import/no-unresolved": "off",

Expand Down Expand Up @@ -146,10 +134,6 @@ module.exports = {

// eslint-plugin-testing-library
"testing-library/prefer-screen-queries": "warn",

// eslint-plugin-fp
// for...of loops are useful for awaiting multiple testing library queries
"fp/no-loops": "off",
},
},
],
Expand Down
106 changes: 2 additions & 104 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nordcloud/eslint-config-pat",
"version": "2.1.2",
"version": "3.0.0",
"description": "Shareable ESLint config for PAT projects",
"author": "Nordcloud Engineering",
"license": "MIT",
Expand Down Expand Up @@ -54,7 +54,6 @@
"@typescript-eslint/parser": "^4.22.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-cypress": "^2.11.2",
"eslint-plugin-fp": "^2.3.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^24.3.4",
"eslint-plugin-jest-dom": "^4.0.1",
Expand Down
26 changes: 0 additions & 26 deletions profile/_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ function buildRules(profile) {
// Disable the parser by default
parser: "",

plugins: ["fp"],

// Manually authored .d.ts files are generally used to describe external APIs that are not expected
// to follow our coding conventions. Linting those files tends to produce a lot of spurious suppressions,
// so we simply ignore them.
Expand Down Expand Up @@ -74,7 +72,6 @@ function buildRules(profile) {
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:promise/recommended",
"plugin:fp/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
Expand Down Expand Up @@ -104,29 +101,6 @@ function buildRules(profile) {
"promise/catch-or-return": "off",
"promise/always-return": "error",

// eslint-plugin-fp
"fp/no-unused-expression": "off",
"fp/no-rest-parameters": "off",
"fp/no-nil": "off",
"fp/no-throw": "off",
"fp/no-loops": "warn",
"fp/no-let": "warn",
"fp/no-mutating-methods": [
"warn",
{
...(isWebAppProfile && { allowedObjects: ["history"] }),
},
],
"fp/no-mutation": [
"warn",
{
commonjs: true,
exceptions: isWebAppProfile
? [{ object: "window", property: "location" }]
: [],
},
],

// eslint-plugin-import
"import/no-extraneous-dependencies": "off",
"import/no-relative-parent-imports": "off",
Expand Down

0 comments on commit c5f93ac

Please sign in to comment.