Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.eslintrc.js
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
},
extends: ['plugin:react/recommended', 'airbnb'],
plugins: ['prettier'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
rules: {
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'prettier/prettier': [
'error',
{
trailingComma: 'es5',
singleQuote: true,
endOfLine: 'auto',
},
],
'comma-dangle': 0,
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment