Skip to content

Instantly share code, notes, and snippets.

@SOSANA
Last active March 21, 2022 20:45
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 SOSANA/997b4ac278b5c55ddd2d8e234f102c50 to your computer and use it in GitHub Desktop.
Save SOSANA/997b4ac278b5c55ddd2d8e234f102c50 to your computer and use it in GitHub Desktop.
ESLint rules
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"plugin:react/recommended",
"plugin:@next/next/recommended",
"airbnb",
"prettier"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "prettier"],
"rules": {
"prettier/prettier": "error",
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react/forbid-prop-types": "off",
"react/require-default-props": [
"error",
{
"ignoreFunctionalComponents": true
}
]
},
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "always",
"asyncArrow": "always"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment