b8b1c0d056
* Add tsconfig.json for common * Prefer `const` over `let` over `var` * Kill dead code * Fix some trivial Typescript issues * Turn on Typescript linting in common except for no-explicit-any * Correctly specify tsconfig dir name in functions eslintrc
28 lines
631 B
JavaScript
28 lines
631 B
JavaScript
module.exports = {
|
|
plugins: ['lodash'],
|
|
extends: ['eslint:recommended'],
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**/*.ts'],
|
|
plugins: ['@typescript-eslint'],
|
|
extends: ['plugin:@typescript-eslint/recommended'],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: ['./tsconfig.json'],
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
},
|
|
},
|
|
],
|
|
rules: {
|
|
'no-constant-condition': ['error', { checkLoops: false }],
|
|
'lodash/import-scope': [2, 'member'],
|
|
},
|
|
}
|