eslint-config-formio
Version:
ESLint configuration for formio
52 lines (51 loc) • 1.64 kB
JavaScript
/* eslint-env node */
module.exports = {
'extends': 'eslint:recommended',
'rules': {
'array-bracket-spacing': [2, 'never'],
'block-scoped-var': 2,
'brace-style': [2, 'stroustrup', {'allowSingleLine': false}],
'camelcase': 2,
'callback-return': [2, ["callback", "_callback", "_cb", "cb", "next", "_next"]],
'comma-style': 2,
'curly': [2, 'multi-line'],
'eol-last': 2,
'eqeqeq': [2, 'smart'],
'import/prefer-default-export': 0,
'jsx-a11y/no-noninteractive-element-interactions': 0,
'max-depth': [1, 3],
'max-statements': [1, 30],
'max-len': [1, 120, 4, {"ignoreComments": true, "ignoreUrls": true}],
'new-cap': [
2,
{
newIsCap: true,
capIsNew: true,
newIsCapExceptions: [],
capIsNewExceptions: ['Router', 'Resource', 'Schema', 'ObjectId', 'Q', 'Chance']
}
],
'no-cond-assign': 2,
'no-extend-native': 2,
'no-extra-semi': 2,
'no-mixed-spaces-and-tabs': 2,
'no-multiple-empty-lines': [2, {max: 1}],
'no-spaced-func': 2,
'no-trailing-spaces': 2,
'no-underscore-dangle': 0,
'no-use-before-define': [2, 'nofunc'],
'no-unexpected-multiline': 2,
'no-unused-vars': 1,
'object-curly-spacing': [2, 'never'],
'padded-blocks': [2, 'never'],
'react/forbid-prop-types': 0,
'react/jsx-filename-extension': 0,
'react/prefer-stateless-function': 0,
'quotes': [2, 'single', 'avoid-escape'],
'semi': [2, 'always'],
'keyword-spacing': [2, {"after": true}],
'space-before-blocks': 2,
'space-before-function-paren': [2, 'never'],
'space-unary-ops': 2,
}
};