UNPKG

995 BJavaScriptView Raw
1module.exports = {
2 env: {
3 browser: true,
4 es6: true,
5 mocha: true,
6 jest: true,
7 node: true,
8 },
9 extends: [
10 'eslint:recommended',
11 'plugin:@typescript-eslint/eslint-recommended',
12 'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
13 'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
14 ],
15 globals: {
16 Atomics: 'readonly',
17 SharedArrayBuffer: 'readonly',
18 },
19 parser: '@typescript-eslint/parser',
20 parserOptions: {
21 ecmaVersion: 2018,
22 sourceType: 'module',
23 },
24 plugins: ['@typescript-eslint', 'prettier'],
25 rules: {
26 'no-unused-vars': 0,
27 "@typescript-eslint/no-unused-vars": ["error", { "args": "none" }]
28 },
29}