mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-05 22:56:11 +00:00
PR based on https://github.com/software-mansion/react-native-svg/pull/1452 extracting `css` related components to different package to reduce the size of the package. ***THIS IS A BREAKING CHANGE***. From now on, you should import ``` SvgCss, SvgCssUri, SvgWithCss, SvgWithCssUri, inlineStyles, LocalSvg, WithLocalSvg, loadLocalRawResource, ``` from `react-native-svg/css` package instead.
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: '@typescript-eslint/parser',
|
|
extends: [
|
|
'standard',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'prettier',
|
|
'plugin:import/typescript',
|
|
],
|
|
plugins: ['react', 'react-native', 'import', '@typescript-eslint', 'react-hooks'],
|
|
env: {
|
|
'react-native/react-native': true,
|
|
},
|
|
settings: {
|
|
'import/core-modules': [
|
|
'react-native-svg',
|
|
'react-native-svg/css',
|
|
],
|
|
'import/resolver': {
|
|
'babel-module': {
|
|
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
},
|
|
},
|
|
},
|
|
rules: {
|
|
'import/no-unresolved': 'error',
|
|
'react/jsx-uses-vars': 'error',
|
|
'react/jsx-uses-react': 'error',
|
|
'no-use-before-define': 'off',
|
|
'@typescript-eslint/ban-ts-comment': [
|
|
'error',
|
|
{
|
|
'ts-ignore': 'allow-with-description',
|
|
'ts-expect-error': 'allow-with-description',
|
|
},
|
|
],
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
'@typescript-eslint/no-var-requires': 'warn',
|
|
eqeqeq: 'error',
|
|
'no-unreachable': 'error',
|
|
},
|
|
};
|