How to use the eslint-config-xo.rules function in eslint-config-xo

To help you get started, we’ve selected a few eslint-config-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 ChocPanda / eslint-config-xo-vue / src / base.js View on Github external
const xoConfigRules = require('eslint-config-xo').rules;

module.exports = indent => {
	const defaultConfig = {
		parser: require.resolve('vue-eslint-parser'),
		parserOptions: {
			ecmaVersion: 2018,
			sourceType: 'module',
			ecmaFeatures: {
				jsx: true
			}
		},
		env: {
			browser: true,
			es6: true
		},
		plugins: ['vue'],

eslint-config-xo

ESLint shareable config for XO

MIT
Latest version published 3 months ago

Package Health Score

77 / 100
Full package analysis