Skip to content

Instantly share code, notes, and snippets.

@dagda1
Last active May 16, 2020 14:03
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 dagda1/769002b986e25ba5d95889dd5e94ab11 to your computer and use it in GitHub Desktop.
Save dagda1/769002b986e25ba5d95889dd5e94ab11 to your computer and use it in GitHub Desktop.
module.exports = {
globals: {
MyGlobal: true,
},
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
'plugin:jest-formatting/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/no-var-requires': ['off'],
'@typescript-eslint/explicit-member-accessibility': ['off'],
'@typescript-eslint/explicit-function-return-type': ['off'],
// TODO: we really should turn this on
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/no-non-null-assertion': ['off'],
'@typescript-eslint/no-parameter-properties': ['off'],
'jest/consistent-test-it': ['error', { fn: 'it' }],
'jest-formatting/padding-before-test-blocks': 2,
'jest-formatting/padding-before-describe-blocks': 2,
'jest/expect-expect': ['off'],
'no-var': 'warn',
'curly': 'error',
'eqeqeq': ["error", "always"],
'prefer-const': 'warn',
'prettier/prettier': [
'error',
{
printWidth: 120,
singleQuote: true,
semi: true,
tabWidth: 2,
trailingComma: 'all',
},
],
semi: ['error', 'always'],
},
overrides: [
{
files: ['**/*.js'],
rules: {
'prettier/prettier': [
'error',
{
printWidth: 140,
singleQuote: true,
semi: true,
tabWidth: 2,
trailingComma: 'all',
},
],
semi: ['error', 'always'],
'@typescript-eslint/no-use-before-define': ['off'],
'@typescript-eslint/camelcase': ['off'],
},
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment