renovate/.eslintrc.js

63 lines
1.8 KiB
JavaScript
Raw Normal View History

Add eslint Closes #17 commit 12d7e50a818720ff2c44e4e9475eef78a1dc0174 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 22:27:56 2017 +0100 Update eslintrc commit f583442dcdf7e3180d2da5464693df12f4419152 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 22:22:15 2017 +0100 Add eslint and config commit 59334f7a7311c451ef7aa4e0759d9c09686e86c6 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 22:20:24 2017 +0100 Refactor promise for linting commit 288f0e753a3d1e93f1b14e3e80692861fab0fff0 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 19:09:48 2017 +0100 Fix more promise lints commit 7f602a149c60da123bc010965ec8be78b3fa7ab1 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 18:30:18 2017 +0100 lint github promises commit dd6b78340e5a9c128e83aa87da8e3714e3947e82 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 18:30:10 2017 +0100 lint npm promises commit 5c48c159c7ab89999e7966d93c4b1c9f1179d95d Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 15:25:13 2017 +0100 Lint packageJson helper commit b440eb83fccdc2c1afbd3e3b74c6798e35b3533f Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 15:04:56 2017 +0100 Fix github helper lint commit 269c84a2be8a2e9cd495d4f90893eaaccd8a2156 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 15:00:48 2017 +0100 Fix typo commit 548ca6c31f3f4417995c65f4466d216a4918387e Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 15:00:29 2017 +0100 Fix npm lint commit f8ea5d5b72745e7cbebad184f46fc3046f57a525 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:56:15 2017 +0100 lint defaults commit 6130092a57d37d62ed8f1274817ce81dfdae84bc Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:52:16 2017 +0100 Finish index commit 9e2b6f5e02fad38904172b40811043a0caab879b Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:40:06 2017 +0100 Fix string concatenation commit 47b7cdac3f0acc6588e403dff3cacfda27789472 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:38:23 2017 +0100 Fix arrow syntax commit 27b8db685f7ee66e914754fd578d421f39656397 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:29:10 2017 +0100 Refactor updateDependency commit 272f012583ac514709c81ffd7a68f50f0b4ed2b3 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:15:43 2017 +0100 Refactor ensureCommit commit 1e1ff56d6b94a8ef6a360213715563452a0957e8 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 13:54:02 2017 +0100 Refactor ensurePr
2017-01-10 21:28:22 +00:00
module.exports = {
env: {
node: true,
},
2019-07-08 13:58:12 +00:00
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
],
parser: '@typescript-eslint/parser',
parserOptions: {
2019-05-21 15:23:30 +00:00
ecmaVersion: 9,
2019-07-08 13:58:12 +00:00
project: './tsconfig.json',
},
2019-07-08 13:58:12 +00:00
plugins: ['import', 'promise', '@typescript-eslint'],
rules: {
'require-await': 'error',
'no-use-before-define': 0,
'no-restricted-syntax': 0,
'no-await-in-loop': 0,
2018-10-05 18:45:24 +00:00
'prefer-destructuring': 'off',
'prefer-template': 'off',
'promise/always-return': 'error',
'promise/no-return-wrap': 'error',
'promise/param-names': 'error',
'promise/catch-or-return': 'error',
'promise/no-native': 'off',
'promise/no-nesting': 'warn',
'promise/no-promise-in-callback': 'warn',
'promise/no-callback-in-promise': 'warn',
'promise/avoid-new': 'warn',
'no-underscore-dangle': 0,
2019-07-08 13:58:12 +00:00
// TODO: fix lint
'@typescript-eslint/camelcase': 'off', // disabled until ??
'@typescript-eslint/no-var-requires': 'off', // disable until all files converted to typescript
'@typescript-eslint/no-use-before-define': 'off', // disable until all files converted to typescript
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/interface-name-prefix': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-non-null-assertion': 0,
},
2019-07-08 13:58:12 +00:00
overrides: [
{
files: ['*.spec.js', '*.spec.ts'],
rules: {
'global-require': 0,
'prefer-promise-reject-errors': 0,
},
},
],
settings: {
'import/resolver': {
node: {
paths: ['lib'],
extensions: ['.js', '.ts'],
},
},
},
Add eslint Closes #17 commit 12d7e50a818720ff2c44e4e9475eef78a1dc0174 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 22:27:56 2017 +0100 Update eslintrc commit f583442dcdf7e3180d2da5464693df12f4419152 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 22:22:15 2017 +0100 Add eslint and config commit 59334f7a7311c451ef7aa4e0759d9c09686e86c6 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 22:20:24 2017 +0100 Refactor promise for linting commit 288f0e753a3d1e93f1b14e3e80692861fab0fff0 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 19:09:48 2017 +0100 Fix more promise lints commit 7f602a149c60da123bc010965ec8be78b3fa7ab1 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 18:30:18 2017 +0100 lint github promises commit dd6b78340e5a9c128e83aa87da8e3714e3947e82 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 18:30:10 2017 +0100 lint npm promises commit 5c48c159c7ab89999e7966d93c4b1c9f1179d95d Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 15:25:13 2017 +0100 Lint packageJson helper commit b440eb83fccdc2c1afbd3e3b74c6798e35b3533f Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 15:04:56 2017 +0100 Fix github helper lint commit 269c84a2be8a2e9cd495d4f90893eaaccd8a2156 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 15:00:48 2017 +0100 Fix typo commit 548ca6c31f3f4417995c65f4466d216a4918387e Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 15:00:29 2017 +0100 Fix npm lint commit f8ea5d5b72745e7cbebad184f46fc3046f57a525 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:56:15 2017 +0100 lint defaults commit 6130092a57d37d62ed8f1274817ce81dfdae84bc Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:52:16 2017 +0100 Finish index commit 9e2b6f5e02fad38904172b40811043a0caab879b Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:40:06 2017 +0100 Fix string concatenation commit 47b7cdac3f0acc6588e403dff3cacfda27789472 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:38:23 2017 +0100 Fix arrow syntax commit 27b8db685f7ee66e914754fd578d421f39656397 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:29:10 2017 +0100 Refactor updateDependency commit 272f012583ac514709c81ffd7a68f50f0b4ed2b3 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 14:15:43 2017 +0100 Refactor ensureCommit commit 1e1ff56d6b94a8ef6a360213715563452a0957e8 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 10 13:54:02 2017 +0100 Refactor ensurePr
2017-01-10 21:28:22 +00:00
};