Skip to content

Instantly share code, notes, and snippets.

@stepankuzmin
Last active November 1, 2021 10:41
Show Gist options
  • Save stepankuzmin/ddccf34d0841e75d91a08621feaceace to your computer and use it in GitHub Desktop.
Save stepankuzmin/ddccf34d0841e75d91a08621feaceace to your computer and use it in GitHub Desktop.
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"airbnb",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier",
"prettier/react",
"prettier/@typescript-eslint"
],
"plugins": ["@typescript-eslint", "import", "react", "jsx-a11y", "prettier"],
"env": {
"browser": true,
"jest": true
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".ts", ".tsx"]
}
}
},
"rules": {
"arrow-parens": ["error", "always"],
"max-len": [
"error",
{
"code": 100,
"ignoreStrings": true,
"ignoreUrls": true
}
],
"quotes": ["error", "single"],
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
"react/jsx-props-no-spreading": 0,
"@typescript-eslint/explicit-function-return-type": 0
}
}
{
"compilerOptions": {
"baseUrl": "src",
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
},
"include": ["src", "src/types/**/*"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment