This is eslint-config for us.
{
"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"]
}
]
}