2018-11-14 08:10:14 -05:00
|
|
|
module.exports = {
|
2020-04-11 07:01:06 -04:00
|
|
|
'root': true,
|
|
|
|
'parser': '@typescript-eslint/parser',
|
|
|
|
'parserOptions': {
|
|
|
|
'tsconfigRootDir': __dirname,
|
|
|
|
'project': ['./tsconfig.json'],
|
2018-11-14 08:10:14 -05:00
|
|
|
},
|
2020-04-11 07:01:06 -04:00
|
|
|
'plugins': [
|
|
|
|
'@typescript-eslint',
|
|
|
|
],
|
|
|
|
'extends': [
|
|
|
|
'standard',
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
2020-04-12 07:40:07 -04:00
|
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
|
|
'plugin:import/recommended',
|
|
|
|
'plugin:import/typescript'
|
2020-04-11 07:01:06 -04:00
|
|
|
],
|
|
|
|
'env': {
|
|
|
|
'node': true
|
|
|
|
},
|
|
|
|
'rules': {
|
2018-11-14 08:10:14 -05:00
|
|
|
// at some point all of these should return to their default "error" state
|
|
|
|
// but right now, this is not a good choice, because too many places are
|
|
|
|
// wrong.
|
2020-04-11 07:01:06 -04:00
|
|
|
'import/first': ['warn'],
|
|
|
|
'indent': ['warn'],
|
|
|
|
'no-console': ['warn'],
|
|
|
|
'no-multiple-empty-lines': ['warn'],
|
|
|
|
'no-multi-spaces': ['warn'],
|
|
|
|
'object-curly-spacing': ['warn'],
|
|
|
|
'one-var': ['warn'],
|
|
|
|
'quotes': ['warn'],
|
2020-04-12 07:40:07 -04:00
|
|
|
'space-infix-ops': ['warn'],
|
2020-04-12 08:00:02 -04:00
|
|
|
'import/no-default-export': ['error'],
|
|
|
|
'@typescript-eslint/no-unused-vars': ['warn', { "argsIgnorePattern": "^_+$" }],
|
2018-11-14 08:10:14 -05:00
|
|
|
}
|
2020-04-11 07:01:06 -04:00
|
|
|
}
|