Skip to content

Instantly share code, notes, and snippets.

@barklund
Created April 19, 2018 08:08
Show Gist options
  • Save barklund/c1fa1b811a04859a6d6ddbf2c161c7a1 to your computer and use it in GitHub Desktop.
Save barklund/c1fa1b811a04859a6d6ddbf2c161c7a1 to your computer and use it in GitHub Desktop.
Pt. godkendt .eslintrc
{
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"node": true,
"mocha": true,
"jest": true,
},
"rules": {
"no-console": 0,
"jsx-a11y/anchor-is-valid": ["error", {
"components": ["Link"],
"specialLink": ["to"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}],
"max-len": [1, 130, 2],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
"react/destructuring-assignment": ["error", "always"],
"react/forbid-prop-types": [2, { "forbid": ["any"] }],
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx"] }],
"semi": [2, "never"]
},
"plugins": [
"react", "import"
],
"settings": {
"import/parser": "babel-eslint",
"import/resolve": {
"moduleDirectory": ["node_modules", "src"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment