mirror of
https://github.com/foomo/next-utils.git
synced 2025-10-16 12:35:36 +00:00
31 lines
666 B
JavaScript
31 lines
666 B
JavaScript
module.exports = {
|
|
env: {
|
|
es6: true,
|
|
node: true,
|
|
jest: true,
|
|
browser: true,
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: 'detect',
|
|
},
|
|
},
|
|
extends: ['plugin:react/recommended', 'plugin:@typescript-eslint/eslint-recommended', 'prettier'],
|
|
ignorePatterns: ['**/node_modules/**', '**/dist/**'],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module',
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
},
|
|
plugins: ['react', '@typescript-eslint'],
|
|
rules: {
|
|
'react/prop-types': 'off',
|
|
'react/react-in-jsx-scope': 'off',
|
|
'no-unreachable': 'off',
|
|
'no-console': ['warn'],
|
|
},
|
|
};
|