Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/typehut/eslint-config
This is eslint-config for me.
https://github.com/typehut/eslint-config
Last synced: 30 days ago
JSON representation
This is eslint-config for me.
- Host: GitHub
- URL: https://github.com/typehut/eslint-config
- Owner: typehut
- License: mit
- Created: 2020-10-21T03:57:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-30T08:24:14.000Z (over 3 years ago)
- Last Synced: 2024-12-18T18:50:52.053Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 403 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @typehut/eslint-config
[![npm version](https://img.shields.io/github/v/release/typehut/eslint-config)](https://github.com/typehut/eslint-config/packages/817063)
[![Build Status](https://img.shields.io/github/workflow/status/typehut/eslint-config/Test)](https://travis-ci.org/typehut/eslint-config)
[![Dependency Status](https://david-dm.org/typehut/eslint-config.svg)](https://david-dm.org/typehut/eslint-config)This is eslint-config for us.
## Usage
```json
{
"root": true,
"env": {
"es6": true,
"browser": true,
"jest": true,
"node": true
},
"extends": ["@typehut/eslint-config/javascript-react-loose"],
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": ["@typehut/eslint-config/typescript-react-loose"]
},
{
"files": ["**/*.d.ts"],
"extends": ["@typehut/eslint-config/typescript-declare"]
},
{
"files": [
"**/test/**/*.ts",
"**/test/**/*.tsx",
"**/tests/**/*.ts",
"**/tests/**/*.tsx",
"**/__tests__/**/*.ts",
"**/__tests__/**/*.tsx",
"**/*.test.ts",
"**/*.test.tsx",
"**/*.spec.ts",
"**/*.spec.tsx"
],
"extends": ["@typehut/eslint-config/typescript-test"]
},
{
"files": [
"**/test/**/*.js",
"**/test/**/*.jsx",
"**/tests/**/*.js",
"**/tests/**/*.jsx",
"**/__tests__/**/*.js",
"**/__tests__/**/*.jsx",
"**/*.test.js",
"**/*.test.jsx",
"**/*.spec.js",
"**/*.spec.jsx"
],
"extends": ["@typehut/eslint-config/javascript-test"]
}
]
}
```