Skip to content

Instantly share code, notes, and snippets.

@darylldoyle
Created August 7, 2020 07:41
Show Gist options
  • Save darylldoyle/6a60a09ba622b613ed9095275d9faa6d to your computer and use it in GitHub Desktop.
Save darylldoyle/6a60a09ba622b613ed9095275d9faa6d to your computer and use it in GitHub Desktop.
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
],
settings: {},
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"semi": ["error", "never"],
"indent": ["error", 2],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}],
"quotes": [ "error", "single", {
"avoidEscape": true,
"allowTemplateLiterals": true,
}],
"object-curly-newline": ["error", {
"ImportDeclaration": { "minProperties": 2, "consistent": false, "multiline": true },
}],
"max-len": ["error", {
"code": 80,
"ignoreComments": true,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true,
}],
"arrow-parens": ["error", "as-needed"],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"eol-last": ["error", "always"],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}]
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment