scratch-paint/src/.eslintrc.js

25 lines
822 B
JavaScript
Raw Normal View History

/* eslint-disable import/no-commonjs */
2017-07-17 14:20:32 -04:00
module.exports = {
/* eslint-enable import/no-commonjs */
2017-07-17 14:20:32 -04:00
root: true,
extends: ['scratch', 'scratch/es6', 'scratch/react', 'plugin:import/recommended'],
2017-07-17 14:20:32 -04:00
env: {
browser: true
2017-07-26 20:39:12 -04:00
},
rules: {
// BEGIN: these caused trouble after upgrading eslint-plugin-react from 7.20.3 to 7.33.2
'react/forbid-prop-types': 'off',
'react/no-unknown-property': 'off',
// END: these caused trouble after upgrading eslint-plugin-react from 7.20.3 to 7.33.2
2017-07-26 20:39:12 -04:00
'import/no-mutable-exports': 'error',
'import/no-commonjs': 'error',
'import/no-amd': 'error',
'import/no-nodejs-modules': 'error'
2018-05-14 14:28:36 -04:00
},
settings: {
react: {
version: '16.2' // Prevent 16.3 lifecycle method errors
}
2017-07-17 14:20:32 -04:00
}
2017-07-25 11:35:56 -04:00
};