Gathering detailed insights and metrics for eslint-plugin-enact
Gathering detailed insights and metrics for eslint-plugin-enact
Gathering detailed insights and metrics for eslint-plugin-enact
Gathering detailed insights and metrics for eslint-plugin-enact
npm install eslint-plugin-enact
Typescript
Module System
Min. Node Version
Node Version
NPM Version
82.9
Supply Chain
93.3
Quality
82.5
Maintenance
100
Vulnerability
98.6
License
JavaScript (100%)
Total Downloads
1,354,778
Last Day
385
Last Week
13,016
Last Month
42,689
Last Year
470,745
Apache-2.0 License
109 Commits
1 Forks
100 Watchers
18 Branches
34 Contributors
Updated on Jun 10, 2025
Minified
Minified + Gzipped
Latest Version
2.0.0
Package Id
eslint-plugin-enact@2.0.0
Unpacked Size
55.10 kB
Size
12.71 kB
File Count
11
NPM Version
10.8.2
Node Version
20.19.2
Published on
Jun 10, 2025
Cumulative downloads
Total Downloads
Last Day
12.9%
385
Compared to previous day
Last Week
16.1%
13,016
Compared to previous week
Last Month
11%
42,689
Compared to previous month
Last Year
8.3%
470,745
Compared to previous year
Enact specific linting rules for ESLint
Install ESLint either locally or globally.
1$ npm install eslint
If you installed ESLint
globally, you have to install React plugin globally too. Otherwise, install it locally.
1$ npm install eslint-plugin-enact
Add plugins
section and specify ESLint-plugin-Enact as a plugin.
1{ 2 "plugins": [ 3 "enact" 4 ] 5}
You can also specify some settings that will be shared across all the plugin rules.
1{ 2 "settings": { 3 "enact": { 4 "kind": "kind", // Regex for Component Factory to use, default to "kind" 5 "hoc": "hoc" // Regex for HoC Factory to use, default to "hoc" 6 } 7 } 8}
If it is not already the case you must also configure ESLint
to support JSX.
With ESLint 1.x.x:
1{ 2 "ecmaFeatures": { 3 "jsx": true 4 } 5}
With ESLint 2.x.x+:
1{ 2 "parserOptions": { 3 "ecmaFeatures": { 4 "jsx": true 5 } 6 } 7}
Finally, enable all the rules that you would like to use:
1 "rules": { 2 "enact/kind-name": 1, 3 "enact/display-name": 1, 4 "enact/no-module-exports-import": 2 5 }
name
in an Enact component definitiondisplayName
in a React component definitions without false-flagging Enact kindsNote:
enact/display-name
supersedereact/display-name
, respectively. The latter two should be disabled when used with Enact.
ESLint-plugin-Enact is based on work from ESLint-plugin-React and is licensed under the MIT License.
Unless otherwise specified, all content, including all source code files and documentation files in this repository are:
Copyright (c) 2016-2025 LG Electronics
Unless otherwise specified or set forth in the NOTICE file, all content, including all source code files and documentation files in this repository are: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this content except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
8 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 6
Reason
Found 9/30 approved changesets -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More