How to use the xo/lib/options-manager.preprocess function in xo

To help you get started, we’ve selected a few xo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github t2t2 / obs-tablet-remote / .eslintrc.js View on Github external
const path = require('path') // eslint-disable-line import/no-extraneous-dependencies
const {buildConfig, preprocess} = require('xo/lib/options-manager')

const xoConfig = buildConfig(preprocess({
	semicolon: false,
	extends: [
		'plugin:vue/recommended'
	],
	rules: {
		// 'object-curly-spacing': ['error', 'always'],
		'valid-jsdoc': 0,
		'vue/html-indent': ['error', 'tab']
	},
	settings: {
		'import/resolver': {
			webpack: {
				config: path.resolve('./node_modules/@vue/cli-service/webpack.config.js')
			}
		}
	}

xo

JavaScript/TypeScript linter (ESLint wrapper) with great defaults

MIT
Latest version published 4 months ago

Package Health Score

77 / 100
Full package analysis