Detalhes do pacote

eslint-plugin-censor

pustovitDmytro607MIT1.5.3

The plugin will prevent you from using swear pejoratives and abuse words

eslint, bad, words, abuse

readme (leia-me)

Logo

eslint-plugin-censor

The plugin will prevent you from using swear pejoratives and abuse words.

Version Bundle size Downloads

CodeFactor SonarCloud Codacy Scrutinizer

Dependencies Security Build Status Coverage Status

Commit activity FOSSA License Made in Ukraine

🇺🇦 Help Ukraine

I woke up on my 26th birthday at 5 am from the blows of russian missiles. They attacked the city of Kyiv, where I live, as well as the cities in which my family and friends live. Now my country is a war zone.

We fight for democratic values, freedom, for our future! Once again Ukrainians have to stand against evil, terror, against genocide. The outcome of this war will determine what path human history is taking from now on.

💛💙 Help Ukraine! We need your support! There are dozen ways to help us, just do it!

Table of Contents

Requirements

Platform Status

To use library you need to have node and npm installed in your machine:

  • node >=10
  • npm >=6

Package is continuously tested on darwin, linux and win32 platforms. All active and maintenance LTS node releases are supported.

Installation

To install the library run the following command

  npm i --save-dev eslint-plugin-censor

Usage

After installation, add plugin to eslint config:

{
    "extends": [...],
    "env": {...},
    "plugins": [ "censor" ],
    "rules": {...}
}

And enable rule:

{
    "extends": [...],
    "env": {...},
    "plugins": [ "censor" ],
    "rules": {
      ...
      "censor/no-swear": 2
    }
}

Now you can check your courtesy by running eslint.

Sources

Contribute

Make the changes to the code and tests. Then commit to your branch. Be sure to follow the commit message conventions. Read Contributing Guidelines for details.

changelog (log de mudanças)

1.5.3 (2023-02-24)

Chore

  • anti-terrorism disclaimer (96327fe)
  • fixes eslint-plugin-unicorn version (dd45e9a)
  • fixes npm audit (0500470)
  • fixes some npm audit vulnerabilities (b913fee)
  • fixes some npm audit vulnerabilities (#48) (ea3c3f5), closes #48
  • fixes some npm audit vulnerabilities (#51) (38c966d), closes #51
  • fixes some npm audit vulnerabilities (#86) (eb549de), closes #86
  • Lock file maintenance (85b7c09)
  • Lock file maintenance (#44) (efa7fd4), closes #44
  • Lock file maintenance (#47) (1137690), closes #47
  • Update dependency danger to v11 (1779a27)
  • Update dependency nanoid to 3.1.31 [SECURITY] (#83) (89d3014), closes #83
  • Update dependency node-fetch to 2.6.7 [SECURITY] (#84) (11e82bc), closes #84
  • Update devDependencies (non-major) (01bd6c0)
  • Update devDependencies (non-major) (85a0161)
  • Update devDependencies (non-major) (#65) (d60ef28), closes #65
  • Update devDependencies (non-major) (#66) (69aac8f), closes #66
  • Update devDependencies (non-major) (#92) (f492769), closes #92

Docs

1.5.2 (2022-01-22)

Chore

  • (ci) fix gitleaks version (badd1c1)
  • adds a security policy (ed86aba)
  • adds 'typo' PR template (e20404d)
  • adds bump strategy for devDependencies (non-major) (03c9587)
  • adds circle-ci conditions (5a40980)
  • adds CODE_OF_CONDUCT (a969a8d)
  • adds gitleaks to circle pipeline (114946e)
  • adds sponsorships (35ed8e0)
  • adds telegra.ph release notes (aa811a5)
  • adds whitesorce bolt bot (0888eee)
  • calc fossa results in cirrus (b2b48c1)
  • change renovate schedule (b983eab)
  • combine mine packages in renovate updates (54c97b8)
  • create auto pr for major dependencies (d2583a6)
  • drop semantic-release preinstalled plugins (69b1950)
  • enhance own updates commit messages (49a2365)
  • fixes audit (14597ff)
  • fixes audit [devDependencies] (d08b1fc)
  • fixes later schedule (a0cfb5c)
  • fixes renovate config (982abaf)
  • fixes some npm audit vulnerabilities (9330c38)
  • fixes some npm audit vulnerabilities (f7a14d5)
  • integrate lalaps (dd4f238)
  • Lock file maintenance (d2b480e)
  • Lock file maintenance (29fe760)
  • Lock file maintenance (9892cc5)
  • Lock file maintenance (98e62b3)
  • Lock file maintenance (7af4484)
  • Lock file maintenance (1ffc991)
  • Lock file maintenance (0ecf2f0)
  • Lock file maintenance (47bfacf)
  • Lock file maintenance (19c2389)
  • Lock file maintenance (2b00aec)
  • Lock file maintenance (dea06c9)
  • Lock file maintenance (e0043d8)
  • Lock file maintenance (c5e57e5)
  • Lock file maintenance (5d305a8)
  • not allow to fail on node 16 (22ed683)
  • replace appveyor to actions (13aff75)
  • test-security in separete ci job (a4bd846)
  • test-security in separete ci job (9559dbc)
  • Update commitlint monorepo to v13 (969e9a9)
  • Update dependency eslint-plugin-regexp to v1 (f8b2806)
  • Update dependency eslint-plugin-sonarjs to ^0.10.0 (374784c)
  • Update dependency eslint-plugin-unicorn to v35 (55b91e6)
  • Update dependency eslint-plugin-unicorn to v36 (020b503)
  • update deps badge (0836169)
  • Update devDependencies (non-major) (609151a)
  • Update devDependencies (non-major) (5b1a6c3)
  • Update devDependencies (non-major) (51200bf)
  • Update devDependencies (non-major) (33211c3)
  • Update devDependencies (non-major) (#48) (b3f6184), closes #48
  • Update devDependencies (non-major) to v13 (6894ad9)
  • Update semantic-release monorepo (e8ea64d)
  • upgrade semantic-release to v.19 [security] (0888454)

Docs

1.5.1 (2021-07-10)

Chore

  • adds sonarcloud config (c92973d)
  • Lock file maintenance (4af079e)
  • Lock file maintenance (cdf4f11)
  • Update dependency eslint-plugin-regexp to ^0.12.0 (51ff304)
  • Update dependency eslint-plugin-regexp to ^0.12.0 (f146dc5)
  • Update dependency eslint-plugin-regexp to ^0.13.0 (27c7549)
  • Update dependency eslint-plugin-regexp to ^0.13.0 (#36) (3a8d3ec), closes #36
  • Update dependency eslint-plugin-sonarjs to ^0.9.0 (81d9681)
  • Update dependency eslint-plugin-sonarjs to ^0.9.0 (091af35)
  • Update dependency eslint-plugin-unicorn to v34 (#22) (69f2020), closes #22
  • Update dependency eslint-plugin-unicorn to v34 (#34) (86efbac), closes #34
  • Update dependency husky to v7 (a5b4cbf)
  • Update dependency husky to v7 (3578711)

Docs

Fix

  • adds isExists to ignore (c39c1b0)

1.5.0 (2021-06-14)

Chore

  • adds stabilityDays to renovate (3b262bc)
  • fix json in renovate (8ad7928)
  • fixes npm audit (c3beccd)
  • integrate fossa (b65e961)
  • integrate node-package-tester (9d53bf3)
  • Lock file maintenance (3291a21)
  • Lock file maintenance (817034a)
  • removes unused devDependencies (ddb100a)
  • set YARGS_MIN_NODE_VERSION 10 (9b6bef9)
  • Update dependency eslint-plugin-unicorn to v33 (c8638b0)
  • Update dependency eslint-plugin-unicorn to v33 (bfa00ff)
  • Update dependency glob-parent to 5.1.2 [SECURITY] (c957512)
  • Update dependency mocha to v9 (93b7a17)

Fix

  • set babel target node version to 10 (f736568)

New

1.4.1 (2021-05-28)

Chore

  • 'Chore' semanticCommitType for updating devDependencies (4bf79e1)
  • (refactor) Update code to match new styleguide (a1cd937)
  • (tests) clearCache on module load is optional (96c2ae5)
  • (tests) moves load to factory (4acb941)
  • additional quotes in glob pattern (f6d15cf)
  • adds appveyor (d560b4e)
  • contributor login in danger message (76349e6)
  • dont store package-tests artifacts (50ebff1)
  • export default in tests (9d210e6)
  • fixes prevent require handler (7923f0e)
  • integrate APPVEYOR_BUILD_ID to build tests (16cdd48)
  • not fail package if no tmp exists (5693813)
  • package-tester improvements (d5d868b)
  • prevent package:test from using devdependencies (dc896f3)
  • update default renovate rules (7e83bc4)
  • update eslint (6b174b1)
  • update eslint-config-incredible (2f39edb)
  • update eslint-config-incredible (58c31d2)

Docs

  • adds node releases roadmap (ba16142)
  • move Contributing Guidelines to separate file. (081e4ed)

1.4.0 (2021-05-08)

New

  • adds accum to whitelist (7e5038c)

1.3.1 (2021-05-08)

Chore

  • fixes spellcheck in bugreport (7d754b6)
  • set myself as default assignee in pr (0dcd0ce)
  • tests/entry.js module resolving (c840f8b)
  • Update dependency @rollup/plugin-commonjs to v19 (bf29948)
  • Update dependency @rollup/plugin-node-resolve to v13 (265fd82)
  • update eslint (4aac03c)
  • update lock file (4ffb878)

Fix

  • remove stemming on whitelist generation (4322e23)

1.3.0 (2021-05-08)

Chore

  • adds pr context (ce163d9)
  • adds trusted bots to danger (892f4a1)
  • fixes ci (0576a01)
  • Update dependency @rollup/plugin-node-resolve to v13 (88ba640)
  • Update dependency fs-extra to v10 (7a215f8)
  • Update dependency fs-extra to v10 (a0adecc)
  • Update dependency yargs to v17 (29040f1)
  • Update issue templates (8fdb1af)
  • Update pr template (1d4eb34)
  • use incredible eslint config (b03d74a)

New

  • adds 'assert parse apiKey charset spacing CLITest atlassian' words to ignore list (89cdee5)

1.2.0 (2021-05-03)

Chore

  • (refactor) remove unused argument (6f28b59)
  • adds CIRCLE_SKIP_DEPLOY variable (231549d)
  • adds danger to circle-ci (ae48ac3)
  • adds danger to validate pr (7fb7040)
  • adds danger token to circle (82f4156)
  • adds dangerfile to npm ignore (8842c70)
  • adds dummy line to calc coverage (800de67)
  • adds empty line to pr comment (36d8a09)
  • adds jscpd to ignore (8520cea)
  • adds lock file lint (f5a4679)
  • adds technical dept check (e16a8e2)
  • adds test-results to circle-ci (767c5b3)
  • adds tests for prior node versions (4b00012)
  • copy json on build (321940a)
  • deploy ci as single command (96c2800)
  • deploy in circle-ci (a62a5f2)
  • dont pin devDeps in renovate (5fb0e8d)
  • exit code 0 when skip (f6ee0bf)
  • fill test entry with template (9177859)
  • fixes Breaking increment in semantic-release (d1c4d53)
  • Fixes danger-pr in circe-ci (adff8b3)
  • fixes debt typo in travis job (f9fd463)
  • fixes renovate config (05c5bc5)
  • ignoring all for npm packaging (409201a)
  • inverse logical condition (65dd0ad)
  • multi os tests for travis (7c8ce28)
  • run pr workflow only for pull requests (03e0b08)
  • split circle ci jobs (9f75a6b)
  • telegram notifications on release (3a8036a)
  • update .renovaterc to automerge after successfull checks (2e76ceb)
  • Update dependency babel-plugin-module-resolver to v4 (b8eb86f)
  • Update dependency eslint to v7 (0e79e0f)
  • Update dependency mocha to v8 (627a45b)
  • Update dependency nyc to v15 (1caf199)
  • Update dependency uuid to v8 (ebae34b)
  • update semantic to use commit convention (7e079b2)
  • Update semantic-release monorepo (b7ab2b1)
  • update travis badge (e159104)
  • updates semanticCommitType rule (1a1d119)
  • upgrade circle-ci to 2.1 (fab79a9)
  • use danger for internall pr (d838ede)
  • using static test entry (21e5b7d)

Docs

New

1.1.2 (2021-04-16)

Docs

  • adds usage documentation (a9979ff)

Fix

1.1.1 (2021-04-16)

Chore

Fix

  • move multilingual-stemmer to devdependencies (4dd5b10)

1.1.0 (2021-04-15)

Chore

  • adds tests for packing process (9b9602d)
  • corrected extglob matching (72a2201)
  • corrected pack pattern (273497a)
  • fixes package process (364e26b)

New

Upgrade

1.0.0 (2021-04-10)

Chore

  • (git) Add logs to gitignore (d4d2077)
  • (test) helper packages for tests (e195b58)
  • (test) working with tmp dir for test factory (cfeafbc)
  • adds commitlint (38ded63)
  • adds keywords (bf1cf0e)
  • adds target branch to semantic release (c4fb3f1)
  • change extention of test files to .test.js (d84ac03)
  • disable build for coverage check (0b6e984)
  • update semantic release rules (a075dab)

Fix

New

Upgrade