diff --git a/.eslintrc.js b/.eslintrc.js index 1e77ac8..dd7dceb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,37 +1,38 @@ module.exports = { - parser: '@typescript-eslint/parser', - extends: [ - 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:prettier/recommended', + root: true, + parser: '@typescript-eslint/parser', + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:prettier/recommended', + ], + plugins: ['prettier'], + env: { + node: true, + browser: true, + worker: true, + es2022: true, + }, + rules: { + 'prettier/prettier': 'error', + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': [ + 'error', + { ignoreRestSiblings: true, argsIgnorePattern: '^_' }, ], - plugins: ['prettier'], - env: { - node: true, - browser: true, - worker: true, - es2022: true, - }, - rules: { - 'prettier/prettier': 'error', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': [ - 'error', - { ignoreRestSiblings: true, argsIgnorePattern: '^_' }, - ], - }, - overrides: [ - { - files: ['*d.ts'], - rules: { - 'no-undef': 'off', - }, + }, + overrides: [ + { + files: ['*d.ts'], + rules: { + 'no-undef': 'off', }, - { - files: ['*js'], - globals: { - webcm: 'writable', - }, + }, + { + files: ['*js'], + globals: { + webcm: 'writable', }, - ], - } \ No newline at end of file + }, + ], +}