2020-04-28 09:47:35 +00:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es6: true,
|
|
|
|
node: true,
|
2020-09-03 07:36:15 +00:00
|
|
|
mocha: true,
|
2020-04-28 09:47:35 +00:00
|
|
|
},
|
|
|
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
|
|
|
globals: {
|
|
|
|
Atomics: 'readonly',
|
2020-09-03 07:36:15 +00:00
|
|
|
SharedArrayBuffer: 'readonly',
|
2020-04-28 09:47:35 +00:00
|
|
|
},
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2018,
|
|
|
|
sourceType: 'module',
|
2020-09-03 07:36:15 +00:00
|
|
|
project: __dirname + '/tsconfig-base.json',
|
2020-04-28 09:47:35 +00:00
|
|
|
},
|
|
|
|
plugins: ['@typescript-eslint'],
|
|
|
|
rules: {
|
|
|
|
'no-mixed-spaces-and-tabs': ['off'],
|
|
|
|
'no-unused-vars': ['off'],
|
2020-09-03 07:36:15 +00:00
|
|
|
'@typescript-eslint/no-unused-vars-experimental': ['error'],
|
2020-04-28 09:47:35 +00:00
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
2020-09-03 07:36:15 +00:00
|
|
|
files: ['src/**/*.ts', 'tests/**/*.ts'],
|
|
|
|
},
|
|
|
|
],
|
2020-04-28 09:47:35 +00:00
|
|
|
};
|