Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trendmicro-frontend/eslint-config-trendmicro
This package provides .eslintrc as an extensible shared config.
https://github.com/trendmicro-frontend/eslint-config-trendmicro
Last synced: 27 days ago
JSON representation
This package provides .eslintrc as an extensible shared config.
- Host: GitHub
- URL: https://github.com/trendmicro-frontend/eslint-config-trendmicro
- Owner: trendmicro-frontend
- License: mit
- Created: 2016-12-08T05:38:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-22T14:01:23.000Z (about 1 year ago)
- Last Synced: 2024-11-11T19:17:42.865Z (about 1 month ago)
- Language: JavaScript
- Size: 47.9 KB
- Stars: 10
- Watchers: 19
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - eslint-config-trendmicro - This package provides .eslintrc as an extensible shared config. (Trend Micro / Linter)
- awesome_frontend_development_resources - eslint-config-trendmicro - This package provides .eslintrc as an extensible shared config. (Trend Micro / Linter)
- awesome_frontend_development_resources - eslint-config-trendmicro - This package provides .eslintrc as an extensible shared config. (Trend Micro / Linter)
README
# eslint-config-trendmicro [![npm version](https://badge.fury.io/js/eslint-config-trendmicro.svg)](http://badge.fury.io/js/eslint-config-trendmicro) [![build status](https://travis-ci.org/trendmicro-frontend/eslint-config-trendmicro.svg?branch=master)](https://travis-ci.org/trendmicro-frontend/eslint-config-trendmicro)
[![NPM](https://nodei.co/npm/eslint-config-trendmicro.png?downloads=true&stars=true)](https://www.npmjs.com/package/eslint-config-trendmicro)
This package provides .eslintrc as an extensible shared config.
## Usage
We export three ESLint configurations for your usage.
### eslint-config-trendmicro
1. Install the latest version of [eslint-config-trendmicro](https://github.com/trendmicro-frontend/eslint-config-trendmicro):
```sh
npm install --save-dev eslint-config-trendmicro@latest
```2. Ensure peerDependencies are installed with correct version numbers by running:
```sh
npm info "eslint-config-trendmicro@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs -L1 npm install --save-dev
```Which produces and runs commands like this:
```sh
npm install --save-dev eslint@^7.0.0
npm install --save-dev eslint-plugin-import@latest
npm install --save-dev eslint-plugin-jsx-a11y@latest
npm install --save-dev eslint-plugin-react@latest
```3. Add `"extends": "trendmicro"` to .eslintrc:
```json
{
"extends": "trendmicro",
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"node": true
},
"plugins": [
"@babel"
],
"rules": {
}
}
```