2021-09-16 21:07:22 +00:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es6: true,
|
|
|
|
node: true,
|
2021-09-20 20:53:49 +00:00
|
|
|
jasmine: true,
|
2021-09-16 21:07:22 +00:00
|
|
|
},
|
2022-03-04 00:54:44 +00:00
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
|
|
'plugin:prettier/recommended',
|
|
|
|
],
|
2021-09-16 21:07:22 +00:00
|
|
|
globals: {
|
|
|
|
Atomics: 'readonly',
|
|
|
|
SharedArrayBuffer: 'readonly',
|
|
|
|
},
|
|
|
|
parser: '@typescript-eslint/parser',
|
2022-03-04 00:54:44 +00:00
|
|
|
parserOptions: {
|
|
|
|
tsconfigRootDir: __dirname,
|
|
|
|
project: ['tsconfig.json'],
|
|
|
|
},
|
2021-09-20 20:53:49 +00:00
|
|
|
plugins: ['@typescript-eslint', 'jasmine'],
|
2021-09-16 21:07:22 +00:00
|
|
|
rules: {
|
|
|
|
'no-mixed-spaces-and-tabs': ['off'],
|
|
|
|
'no-unused-vars': ['off'],
|
|
|
|
'@typescript-eslint/no-unused-vars-experimental': ['error'],
|
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
2021-09-20 20:53:49 +00:00
|
|
|
files: ['src/**/*.ts', 'tests/*.ts'],
|
2021-09-16 21:07:22 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|