eslint-config-colourbox
Version:
This package provides Colourbox's .eslintrc as an extensible shared config.
55 lines (54 loc) • 1.51 kB
JavaScript
module.exports = {
env: {
es6: true,
browser: true,
node: true,
},
globals: {
window: true,
console: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
rules: {
indent: [2, 4, { SwitchCase: 1 }],
'react/forbid-prop-types': [1, { forbid: ['any'] }],
'react/jsx-indent': [2, 4],
'react/jsx-indent-props': [2, 'first'],
'react/jsx-boolean-value': 0,
'react/jsx-one-expression-per-line': 0,
'import/no-unresolved': 0,
'class-methods-use-this': 0,
'max-len': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-static-element-interactions': 0,
'jsx-a11y/no-noninteractive-element-interactions': 0,
'jsx-a11y/media-has-caption': 0,
'react/no-danger': 0,
'react/jsx-curly-brace-presence': 0,
'no-restricted-syntax': [
'error',
'ForStatement',
'ForInStatement',
'ForOfStatement',
'LabeledStatement',
'WithStatement',
],
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
'react/jsx-props-no-spreading': 0,
'react/jsx-curly-newline': 0,
},
plugins: [
'react',
],
settings: {
'import/resolver': {
webpack: 'webpack.config.js',
},
},
};