ungleich-staticcms/assets/u/static/popper.js-1.16.0/packages/eslint-config-popper/index.js
Nico Schottelius 16fb2bb919 import popper.js
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2019-12-31 01:21:21 +01:00

40 lines
938 B
JavaScript

module.exports = {
parser: require.resolve('babel-eslint'),
parserOptions: {
sourceType: 'module',
},
env: {
browser: true,
node: true,
es6: true,
},
globals: {},
rules: {
quotes: ['error', 'single'],
'no-cond-assign': ['error', 'except-parens'],
curly: 'error',
eqeqeq: 'error',
'no-eq-null': 'error',
'wrap-iife': ['error', 'any'],
'no-use-before-define': 'error',
'new-cap': 'error',
'no-caller': 'error',
'dot-notation': 'error',
'no-undef': 'error',
'no-unused-vars': 'error',
'no-const-assign': 'error',
'prefer-const': 'error',
'no-var': 'error',
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'ignore',
},
],
'object-curly-spacing': ['error', 'always'],
},
};