scratch-paint/src/.eslintrc.js
2022-08-25 14:02:19 -07:00

20 lines
544 B
JavaScript

/* eslint-disable import/no-commonjs */
module.exports = {
/* eslint-enable import/no-commonjs */
root: true,
extends: ['scratch', 'scratch/es6', 'scratch/react', 'plugin:import/recommended'],
env: {
browser: true
},
rules: {
'import/no-mutable-exports': 'error',
'import/no-commonjs': 'error',
'import/no-amd': 'error',
'import/no-nodejs-modules': 'error'
},
settings: {
react: {
version: '16.2' // Prevent 16.3 lifecycle method errors
}
}
};