penguinmod-editor-2 / src /.eslintrc.js
soiz1's picture
Upload 2891 files
6bcb42f verified
raw
history blame contribute delete
954 Bytes
const path = require('path');
module.exports = {
root: true,
extends: ['scratch', 'scratch/es6', 'scratch/react', 'plugin:import/errors'],
env: {
browser: true
},
globals: {
process: true
},
rules: {
'import/no-mutable-exports': 'error',
'import/no-commonjs': 'error',
'import/no-amd': 'error',
'import/no-nodejs-modules': 'error',
'react/jsx-no-literals': 'error',
'no-confusing-arrow': ['error', {
'allowParens': true
}],
'operator-linebreak': 'off',
'no-console': 'off',
'space-before-function-paren': 'off',
'no-lonely-if': 'off'
},
settings: {
react: {
version: '16.2' // Prevent 16.3 lifecycle method errors
},
'import/resolver': {
webpack: {
config: path.resolve(__dirname, '../webpack.config.js')
}
}
}
};