Skip to content

Instantly share code, notes, and snippets.

@psiphi75
Last active July 26, 2018 21:02
Show Gist options
  • Save psiphi75/a3d42ff28c00a8bc488941002b34549e to your computer and use it in GitHub Desktop.
Save psiphi75/a3d42ff28c00a8bc488941002b34549e to your computer and use it in GitHub Desktop.
TypeScript + JSDoc + ESLint + Prettier. ESLint rc file.
module.exports = {
env: {
'es6': true,
'node': true,
},
extends: 'airbnb-base',
plugins: ['jsdoc', 'prettier'],
rules: {
'prettier/prettier': 'error',
'jsdoc/check-param-names': 1,
'jsdoc/check-tag-names': 1,
'jsdoc/check-types': 1,
'jsdoc/newline-after-description': 1,
'jsdoc/require-description-complete-sentence': 1,
'jsdoc/require-example': 0,
'jsdoc/require-hyphen-before-param-description': 1,
'jsdoc/require-param': 1,
'jsdoc/require-param-description': 1,
'jsdoc/require-param-name': 1,
'jsdoc/require-param-type': 1,
'jsdoc/require-returns-description': 1,
'jsdoc/require-returns-type': 1,
// Some of these options are to make prettier happy.
// Some are just my style.
'indent': ['error', 2],
'linebreak-style': ['error', 'unix'],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'linebreak-style': ['error', 'unix'],
'strict': 'off',
'no-mixed-operators': 'off',
'max-len': 'off',
'object-curly-newline': 'off',
'arrow-parens': 'off',
'function-paren-newline': 'off',
'wrap-iife': 'off',
'no-param-reassign': 'off',
'consistent-return': 'off',
'comma-dangle': 'off',
'space-before-function-paren': 'off',
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment