Skip to content

typehut/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@typehut/eslint-config

npm version Build Status Dependency Status

This is eslint-config for us.

Usage

{
  "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"]
    }
  ]
}