UNPKG

homebridge-yamaha-home

Version:
71 lines (70 loc) 1.9 kB
export default [ { ignores: ['dist/**', 'node_modules/**', 'coverage/**', 'eslint.config.js'], }, { files: ['eslint.config.js'], languageOptions: { ecmaVersion: 2022, sourceType: 'module', }, }, { files: ['**/*.js'], ignores: ['eslint.config.js'], languageOptions: { ecmaVersion: 2022, sourceType: 'commonjs', globals: { console: 'readonly', process: 'readonly', __dirname: 'readonly', __filename: 'readonly', module: 'readonly', require: 'readonly', exports: 'readonly', Buffer: 'readonly', setTimeout: 'readonly', clearTimeout: 'readonly', setInterval: 'readonly', clearInterval: 'readonly', }, }, rules: { 'quotes': ['warn', 'single', { avoidEscape: true }], 'indent': ['warn', 2, { SwitchCase: 1 }], 'linebreak-style': ['warn', 'unix'], 'semi': ['warn', 'always'], 'comma-dangle': ['warn', 'always-multiline'], 'dot-notation': 'off', 'eqeqeq': 'warn', 'curly': ['warn', 'all'], 'brace-style': ['warn'], 'prefer-arrow-callback': ['warn'], 'max-len': ['warn', { code: 200, ignoreComments: true, ignoreStrings: true }], 'no-console': 'off', 'comma-spacing': ['error'], 'no-multi-spaces': ['warn'], 'no-trailing-spaces': ['warn'], 'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], 'no-var': 'warn', 'prefer-const': 'warn', }, }, { files: ['**/*.test.js', '**/*.spec.js'], languageOptions: { globals: { describe: 'readonly', it: 'readonly', test: 'readonly', expect: 'readonly', jest: 'readonly', beforeEach: 'readonly', afterEach: 'readonly', beforeAll: 'readonly', afterAll: 'readonly', }, }, }, ];