UNPKG

svg-loaders-react

Version:

React implementation of the SVG Loaders library by Sam Herbert

64 lines (53 loc) 1.35 kB
// ESLint configuration // http://eslint.org/docs/user-guide/configuring module.exports = { parser: 'babel-eslint', extends: [ 'airbnb', ], globals: { __DEV__: true, }, env: { node: true, browser: true, amd: true, es6: true, jest: true }, rules: { // `js` and `jsx` are common extensions 'import/extensions': [ 'error', 'always', { js: 'never', jsx: 'never', }, ], 'react/jsx-filename-extension': [ 1, { 'extensions': ['.js', '.jsx'], }, ], // Not supporting nested package.json yet // https://github.com/benmosher/eslint-plugin-import/issues/458 'import/no-extraneous-dependencies': 'off', // Recommend not to leave any console.log in your code // Use console.error, console.warn and console.info instead 'no-console': [ 'error', { allow: ['warn', 'error', 'info'], }, ], // Switching off checks for linebreaks 'linebreak-style': 'off', // Switching off default exports 'import/prefer-default-export': 'off', // Switching off prop-types, which is disabled in React 18 and removed in React 19 // See https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-proptypes-and-defaultprops "react/prop-types": "off" }, };