Add eslint config file
Opened this issue · 1 comments
joemaller commented
This is in use on the IOP site. Should probably just add it:
//.eslint.js
module.exports = {
env: {
es2021: true,
node: true,
},
extends: ["eslint:recommended", "plugin:react/recommended"],
parserOptions: {
ecmaFeatures: { jsx: true },
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react"],
rules: {
"react/react-in-jsx-scope": "off",
"sort-imports": ["error", { allowSeparatedGroups: true }],
},
};
joemaller commented
If we do this, we'll also need to include eslint and eslint-plugin-react in the default package.json file