Skip to content

Instantly share code, notes, and snippets.

@luooooob
Last active September 1, 2021 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luooooob/5be6dd3889cd787f70aaafd42491d1a0 to your computer and use it in GitHub Desktop.
Save luooooob/5be6dd3889cd787f70aaafd42491d1a0 to your computer and use it in GitHub Desktop.
my-eslint
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"functional"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended"
],
"rules": {
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/consistent-indexed-object-style": "error",
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/quotes": "error",
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
"@typescript-eslint/no-empty-function" : "off",
"functional/immutable-data": "warn",
"functional/no-let": "warn",
"functional/no-method-signature": "warn",
"functional/prefer-readonly-type": "warn",
"functional/no-class": "warn",
"functional/no-loop-statement": "warn",
"react/prop-types": "off",
"react/boolean-prop-naming": "warn",
"react/function-component-definition": ["error", {
"namedComponents": "arrow-function"
}],
"react/no-multi-comp": "warn",
"react/no-unstable-nested-components":"warn",
"react/jsx-boolean-value": "warn"
},
"parserOptions": {
"project": ["./tsconfig.json"]
},
"settings": {
"react": {
"version": "detect"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment