How to use the eslint-config-xo.rules.camelcase 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
},
		env: {
			browser: true,
			es6: true
		},
		plugins: ['vue'],
		rules: {
			// 'vue/no-deprecated-scope-attribute': 'warn',
			// 'vue/keyword-spacing': xoConfigRules['keyword-spacing'],
			// 'vue/dot-location': xoConfigRules['dot-location'],
			// 'vue/no-empty-pattern': xoConfigRules['no-empty-pattern'],
			'vue/attribute-hyphenation': ['error', 'always'],
			'vue/attributes-order': 'warn',
			'vue/block-spacing': 'warn',
			'vue/brace-style': xoConfigRules['brace-style'],
			'vue/camelcase': xoConfigRules.camelcase,
			'vue/comma-dangle': xoConfigRules['comma-dangle'],
			'vue/comment-directive': ['error'],
			'vue/component-name-in-template-casing': [
				'error',
				'PascalCase',
				{ registeredComponentsOnly: false }
			],
			'vue/eqeqeq': xoConfigRules.eqeqeq,
			'vue/html-closing-bracket-newline': [
				'error',
				{
					singleline: 'never',
					multiline: 'always'
				}
			],
			'vue/html-closing-bracket-spacing': [

eslint-config-xo

ESLint shareable config for XO

MIT
Latest version published 4 months ago

Package Health Score

77 / 100
Full package analysis