Skip to content

Instantly share code, notes, and snippets.

@bonjourmauko
Created May 5, 2019 17:39
Show Gist options
  • Save bonjourmauko/655d3e23712c9eb4918f745c2237a8e5 to your computer and use it in GitHub Desktop.
Save bonjourmauko/655d3e23712c9eb4918f745c2237a8e5 to your computer and use it in GitHub Desktop.
.eslintrc nextjs v1
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 9,
"ecmaFeatures": {
"jsx": true,
},
"sourceType": "module",
},
"env": {
"browser": true,
"es6": true,
"node": true,
},
"plugins": [
"react",
"fp",
],
"extends": [
"airbnb",
"eslint:recommended",
"plugin:react/recommended",
"plugin:fp/recommended",
],
"settings": {
"react": {
"version": "detect",
},
},
"rules": {
"arrow-spacing": ["error", { "before": true, "after": true }],
"comma-dangle": ["error", "always-multiline"],
"eol-last": ["error", "always"],
"import/no-unresolved": "off",
"indent": ["error", 4],
"jsx-quotes": ["error", "prefer-double"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"no-trailing-spaces": ["error", { "skipBlankLines": false, "ignoreComments": false }],
"quotes": ["error", "double", { "avoidEscape": false }],
"react/jsx-indent": ["error", 4, { checkAttributes: false, indentLogicalExpressions: true }],
"react/jsx-indent-props": ["error", 4],
"react/react-in-jsx-scope": "off",
"semi": ["error", "never"],
"space-before-blocks": ["error", "always"],
"space-infix-ops": ["error", {"int32Hint": false}],
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment